P & NP Flashcards

1
Q

Class P

A

P = Union of TIME(n^k)

Class of decision problems that can be solved by a deterministic TM in polynomial time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Class NP

A

NP = Union of NTIME(n^k)

Class of decision problems with polynomial time verifiers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

L can be decided by some nondeterministic TM in polytime iff ____________

A

L ∈ NP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Clique Decision Problem

A

CLIQUE = {<G, k>: G is an undirected graph with a k-clique}, where a clique is a set of vertices that are all directly connected to each other

CLIQUE ∈ NP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Path Decision Problem

A

PATH = {<G, s, t>: G is a directed graph with path from s to t}

PATH ∈ P

How well did you know this?
1
Not at all
2
3
4
5
Perfectly