1 / 7

Graphs and Trees

Graphs and Trees. This handout: Eulerian Cycles: Sufficiency of the condition Hamiltonian tour. 4. 7. 3. 5. More on Euler’s Theorem.

mindy
Download Presentation

Graphs and Trees

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Graphs and Trees • This handout: • Eulerian Cycles: Sufficiency of the condition • Hamiltonian tour

  2. 4 7 3 5 More on Euler’s Theorem Theorem. An undirected graph has an eulerian cycle if and only if (1) every node degree is even and (2) the graph is connected (that is, there is a path from each node to each other node). Sufficiency of the condition • Assume the result is true for all graphs with fewer than m arcs; show that it is true for a graph G=(V,A) with |A|=m. • Start at some node, and take a walk until a cycle C is found. 1 4 7 3 5

  3. 4 7 3 5 More on Euler’s Theorem • Sufficiency of the condition • Start at some node, and take a walk until a cycle C is found. • Consider G’ = (V, A-C) • the degree of each node is even • there are several connected components • So, G’ is a union of Eulerian cycles • Connect G’ into a single eulerian cycle by adding C.

  4. Hamiltonian Cycles • A Hamiltonian cycleis a cycle that passes through each node of the graph exactly once.

  5. Hamilton’s Around the World Game In 1857, Irish mathematician William Rowan Hamilton invented a puzzle that he hoped would be very popular. The objective was to make what we just called a hamiltonian cycle. The game was not a commercial success. But the mathematics of hamiltonian cycles is very popular today.

  6. Hamilton’s Around the World Game

  7. The knight’s tour problem Can a knight visit all squares of a chessboard exactly once, starting at some square, and by making 63 legitimate moves? The knight’s tour problem is a special case of the hamiltonian tour problem. The answer is yes!

More Related