Docsity

Reduction of Hamiltonian Path to Hamiltonian Circuit and vice versa - Prof. Eric Torng, Study notes of Computer Science

Toggle sidebar
bg1
Reduction Worksheet
•Hamiltonian Path ≤pHamiltonian Circuit
–Transformation R
∗Input to R(graph G= (V, E ), an input to HP)
∗Output of R(graph G0= (V0, E0), an input to HC)
·V0=V∪ {x6∈ V)}
·E0=E∪ {(x, v)|v∈V)
–Argument that output of R, namely G0, has polynomial size
∗What is the size of G0relative to G?
–Yes to Yes argument (if Ghas a HP, then G0has a HC)
∗Let (v1, v2, . . . , vV) be the HP in G
∗Then is a HC in G0
∗Briefly argue why
–Yes from yes argument (or No to No argument) (If G’ has a HC, then Ghas a HP)
∗Let (x, v1, v2, . . . , vV, x) be the HC in G0
∗Then is a HP in G
∗Briefly argue why
1
pf3

Partial preview of the text

Download Reduction of Hamiltonian Path to Hamiltonian Circuit and vice versa - Prof. Eric Torng and more Study notes Computer Science in PDF only on Docsity!

Reduction Worksheet

  • Hamiltonian Path ≤p Hamiltonian Circuit
    • Transformation R ∗ Input to R (graph G = (V, E), an input to HP) ∗ Output of R (graph G′^ = (V ′, E′), an input to HC) · V ′^ = V ∪ {x 6 ∈ V )} · E′^ = E ∪ {(x, v) | v ∈ V )
    • Argument that output of R, namely G′, has polynomial size ∗ What is the size of G′^ relative to G?
    • Yes to Yes argument (if G has a HP, then G′^ has a HC) ∗ Let (v 1 , v 2 ,... , vV ) be the HP in G ∗ Then is a HC in G′ ∗ Briefly argue why
    • Yes from yes argument (or No to No argument) (If G’ has a HC, then G has a HP) ∗ Let (x, v 1 , v 2 ,... , vV , x) be the HC in G′ ∗ Then is a HP in G ∗ Briefly argue why
  • Hamiltonian Circuit ≤p Hamiltonian Path
    • Transformation R ∗ Input to R (graph G = (V, E), an input to what?) ∗ Output of R (graph G′^ = (V ′, E′), an input to what?) · Give a possible transformation
    • Argument that output of R, namely G′, has polynomial size ∗ What is the size of G′^ relative to G?
    • Yes to Yes argument
    • Yes from yes argument (or No to No argument)