Exercise 12 Name __________________
Score __/ 12
Document last modified:
Show that the language HAM-PATH={<G,u,v> : there is a Hamiltonian path from u to v in graph G} belongs to NP.
nodes
in the order generated. Recall that backtracking is essentially DFS with
early cutoff, the cutoff occurs when there is no solution compatible with
previous solutions.
a b c d
lower bound = é[(2+5)+(2+3)+(1+5)+(1+3)]/2ù = 11
|