Hamilton path and circuit rounded path problem

In summary: The OP says "we have to cross once and only once at an edge, and the start and the finish must be different locations ", but of course that's not a direct quote from whatever text since he equates "Hamilton path" to that rule.
  • #1
requied
98
3
TL;DR Summary
If it is not helpful to us to know if degree odd or even, how can we think in rounded paths?
1590128075856.png

Here is a graph. I wonder if it has hamilton path or circuit. In hamilton path we have to cross once and only once at an edge, and the start and the finish must be different locations. In hamilton circuit we have to start and finish the same edge. So the circle which B is rounded, which kind of case in there?
 
Mathematics news on Phys.org
  • #2
You can't visit a vertex more than once (unless you start and finish there after visiting all others, for a cycle), so the loop at B is useless, it can't be used.
 
  • #3
It has a Hamilton path, but not a Hamilton circuit.
Your definitions of both above are incorrect. A Hamilton path/circuit says every vertex (not connection) must be visited once.
I was also able to traverse the above graph visiting every path once, but it again wasn't a circuit, which is only possible if every vertex has an even number of connections. I don't know the name of that sort of path.
 
  • #4
Ah, I missed that OP misunderstood the definition.

A path that takes every edge once is an Euler path (or Euler tour, if closed). A loop doesn't make a difference, as long as it is connected to the rest of the graph.
 
  • #5
Halc said:
It has a Hamilton path, but not a Hamilton circuit.
Your definitions of both above are incorrect. A Hamilton path/circuit says every vertex (not connection) must be visited once.
I was also able to traverse the above graph visiting every path once, but it again wasn't a circuit, which is only possible if every vertex has an even number of connections. I don't know the name of that sort of path.
Can we say that the hamilton path is E-B-A-D-C ? And which are my thoughts wrong? the definition or summary?
 
  • #6
requied said:
Can we say that the hamilton path is E-B-A-D-C ?
That is one Hamiltonian path, yes.

And which are my thoughts wrong? the definition or summary?
Both definition and summary seem to speak of Euler paths. Degree of vertices matters for a Euler path, but not for Hamiltonian. Euler paths try to visit the edges, while Hamiltonian paths visit the vertices. Your solution EBADC is a Hamiltonian path, but it doesn't meet any of the definitions of the OP. Some of the vertices have odd degree, and the OP speaks of crossing each edge once and only once, yet your path EBADC misses a lot of them.

Yes, your graph does have a Euler path as well, but not a Euler circuit due to some of the vertices having odd degree.
 
  • Like
Likes requied
  • #7
Thank you for attention Halc.
1590263950522.png

In addition, I couldn't find the euler path in the graph of figure (a). Is there still an euler path if none the degree of vertices is odd or we must find these by trying one by one?
And would you like to control whether my other answers are true? I really appreciate it.
 
  • #8
Looks right.

For (a), every Euler circuit is also an Euler path.
 
  • Informative
Likes requied
  • #9
requied said:
In addition, I couldn't find the euler path in the graph of figure (a). Is there still an euler path if none the degree of vertices is odd or we must find these by trying one by one?
I've seen at least one definition that says that a Euler path must start and end on different verticies, in which case no graph can be both a Euler path and a Euler circuit. Other definitions don't have the vertex restriction, thus any Euler circuit is also a valid Euler path. I think your text above uses the latter less restrictive definition.
And would you like to control whether my other answers are true? I really appreciate it.
All looks fine, including the yellow '?'.
 
  • #10
mfb said:
every Euler circuit is also an Euler path.
Halc said:
at least one definition that says that a Euler path must start and end on different verticies, in which case no graph can be both a Euler path and a Euler circuit

I think there is a little oppositeness here :)
Halc said:
I think your text above uses the latter less restrictive definition.
So can't we actually know which one we need to use? Or the latest definitions be accepted at mathematics?
 
  • #11
requied said:
I think there is a little oppositeness here :)
Oh definitely.

So can't we actually know which one we need to use? Or the latest definitions be accepted at mathematics?
Yea, you use the rules as quoted by the text you're using.

The OP says "we have to cross once and only once at an edge, and the start and the finish must be different locations ", but of course that's not a direct quote from whatever text since he equates "Hamilton path" to that rule.
I googled "Euler path" and the top hit, the one with the summary that comes up, says "An Euler path starts and ends at different vertices" (jlmartin.faculty.ku.edu). I think the OP is using that exact site since his graph comes up very first thing if you click on that link. But wiki mentions no such rule, and I suspect neither did Euler, from whom the definition comes. No other hit on the google search expresses the 'must start and end at different vertices' rule. So why does that one rebel definition manage to propagate to the top of the google search?

The site goes on to make this statement:
JLMartin said:
The inescapable conclusion (“based on reason alone!”): If a graph G has an Euler path, then it must have exactly two odd vertices.
All the other sites prove that a graph has a Euler path iff it has at most two odd vertices.

So I agree with you. A Euler path can start and end anywhere it likes, which makes sense given the basic concept of a path. Figure A has a Euler path. The google search unfortunately hits the jlmartin site which is one of the few rebel ones.
 

1. What is a Hamilton path and circuit rounded path problem?

A Hamilton path and circuit rounded path problem is a graph theory problem that involves finding a path that visits every vertex exactly once. A Hamilton path is a path that starts and ends at different vertices, while a Hamilton circuit is a path that starts and ends at the same vertex.

2. What is the difference between a Hamilton path and a Hamilton circuit?

The main difference between a Hamilton path and a Hamilton circuit is that a Hamilton circuit starts and ends at the same vertex, while a Hamilton path starts and ends at different vertices. Additionally, a Hamilton circuit visits every vertex exactly once, while a Hamilton path can visit some vertices more than once.

3. How do you determine if a graph has a Hamilton path or circuit?

Determining if a graph has a Hamilton path or circuit is a complex problem that involves checking all possible paths and circuits in the graph. In general, there is no efficient algorithm to solve this problem, and it often requires trial and error or advanced mathematical techniques.

4. Can a graph have both a Hamilton path and a Hamilton circuit?

Yes, it is possible for a graph to have both a Hamilton path and a Hamilton circuit. This is known as a Eulerian graph, and it is a special type of graph where every vertex has an even degree (number of edges connected to it).

5. How are Hamilton paths and circuits used in real life?

Hamilton paths and circuits have many real-life applications, including in network routing, DNA sequencing, and scheduling problems. They are also used in computer science and engineering to optimize the efficiency of algorithms and solve complex problems.

Similar threads

Replies
25
Views
1K
Replies
4
Views
1K
Replies
18
Views
3K
Replies
1
Views
470
  • Advanced Physics Homework Help
Replies
1
Views
2K
Replies
17
Views
1K
Replies
1
Views
2K
  • General Math
Replies
18
Views
1K
  • Programming and Computer Science
Replies
19
Views
2K
Replies
2
Views
3K
Back
Top