banner



Draw A House Without Lifting Pencil

This question maybe ridiculous but I always found it interesting... Here it is :(I cannot put image so I put you the link of the pictures)When I was in school I used to draw houses when I was bored :

*

You can draw it without lifting the pen. But then I tried to draw two houses side-to-side :

*

Then I realized you cannot actually do it without lifting the pen. I tried any ways I could. You end up all the time with one line missing.

I heard that we have to count the total number of lines and the number of intersections and that this number tells us something but I am not sure at all.

I am a first year cg-tower.coms student so I haven"t studied graph theory yet !

Thanks !

*

*

This sounds like a great excuse to study (just a little) graph theory to me! Check out the conclusions of Euler in this famous problem. It should tell you all you need to know (and more). In particular, the second figure has $4$ nodes of odd degree (that is, an odd number of segments having that common endpoint)--the outer bottom corners and the two nodes where the "houses" meet--so it cannot be traced without lifting the pen or retracing at least one segment of the path.

*

*

Take a vertex with three edges. Assume you do NOT start there. Then there is a first time you will reach this vertex, through one of the possible paths leading to it. It won't be the end of your drawing because two other paths are not yet traversed. Thus, you will leave this vertex, through a second adjacent path. As a result, when you traverse the third path some time, you won't be able to leave this vertex because no untraveled paths will be available. In other words, your drawing will have to end here.

So, we showed that if you don't start at a vertex (with odd number of edges), you will have to end there.

This is similarly true about vertices with 5 edges. Thus, if any graph has more than two vertices with odd degrees, you won"t be able to draw it.

*

Thanks for contributing an answer to cg-tower.comematics Stack Exchange!

Please be sure to answer the question. Provide details and share your research!

But avoid

Asking for help, clarification, or responding to other answers.Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.

Post Your Answer Discard

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy


Not the answer you're looking for? Browse other questions tagged graph-theory eulerian-path or ask your own question.

site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev2021.10.22.40538

Your privacy

By clicking "Accept all cookies", you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Draw A House Without Lifting Pencil

Source: https://cg-tower.com/draw-a-house-without-lifting-pencil/

Posted by: lupientorty1994.blogspot.com

0 Response to "Draw A House Without Lifting Pencil"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel