np complete Flashcards
Traveling salesman Decision problem
Name: Traveling salesman decision problem
Instance: a set of n cities and integer distance d(i,j) between each pair of cities i, j and a target integer k
Question: is there a permutation P of 1 to n such that d(p1,p2) to d(dn,d1) <= k
Hamiltonian Cycle
name Hamiltonian cycle
instance: a graph G
Question : does G contain a cycle that visits each vertex exactly once?
clique problem
name: clique problem
instance: a graph G and a target integer k
Question: does G contain a clique of size k
(edge between all vertices)
Graph coloring problem
Name: Graph coloring problem
Instance: a graph G and a target integer k
Question: can one of k colors be attached to each vertex of G so that adjacent vertices always have different colors