NP Verification Runtimes Flashcards

1
Q

Time to verify IS

A

Given an array of vertices S, we can verify that for all (x,y) in E, x or y are in S. This takes O(n+m) time.

We can verify that |S| <= b in O(n) time.

Overall, this takes O(n+m)

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