Hamiltonian Circuits - PowerPoint PPT Presentation

1 / 10
About This Presentation
Title:

Hamiltonian Circuits

Description:

Draw a graph where every vertex has valence of at least 3 ... Route for meter readers, bus routes, limo pickups. Note: cost can be in dollars, distance, time ... – PowerPoint PPT presentation

Number of Views:80
Avg rating:3.0/5.0
Slides: 11
Provided by: northernar
Category:

less

Transcript and Presenter's Notes

Title: Hamiltonian Circuits


1
(No Transcript)
2
  • Draw a graph where every vertex has valence of at
    least 3 but where removing a single edge
    disconnects the graph.
  • What are the two conditions necessary for an
    Euler circuit to exist and what do these
    conditions mean?
  • For graph number 1, what is the least number of
    edges that need to be dropped in order to have an
    Euler circuit? Draw the Euler circuit with the
    dropped edges.
  • In graph 2, add one or more edges to produce an
    Euler circuit and draw the circuit.

3
Hamiltonian Circuits
4
Hamiltonian Circuits
  • Hamiltonian circuits tour that starts at a
    vertex of a graph and ends at the same vertex and
    visits each vertex once and only once

5
Using Hamiltonian Circuits to plan for vacation
  • Apply weights weights incorporate factors
    the impact travel plans
  • ex. Distances, cost, time
  • Minimum-cost Hamiltonian Circuit Ham. Circuit
    with the lowest possible sum of weights of its
    edges

6
Procedure
  • Generate all possible Hamiltonian circuits.
  • Add up total weights for each circuit.
  • Choose circuit w/ minimum weight total.

7
Fundamental Principle of Counting
  • If there are a ways of selecting a 1st item,
  • b ways of selecting a 2nd item and ...z ways of
    selecting the last item, then the total number of
    choices for combining ways is
  • a x b x c x .x z

8
Traveling Salesman Problem
  • Goal Determine a trip of minimum cost that a
    salesperson can make by starting and ending in
    the same city.
  • Ex. Route for meter readers, bus routes, limo
    pickups.
  • Note cost can be in dollars, distance, time

9
Solving Traveling Salesman Problems
  • Nearest Neighbor Algorithm continue visiting
    the nearest city until no other choice is
    available then return to start

10
Homework
  • Pg. 61
  • 1,2,3 a,c,e
  • 5a,b
  • 9,19,21
Write a Comment
User Comments (0)
About PowerShow.com