@@ -37,7 +37,7 @@ some of the paths go into infinite loops. Hence it can to BFS. The first time,
37
37
it finds that the NTM has reached the accept state, the UTM can also accept.
38
38
If it never finds an accept state, the simulating TM rejects.
39
39
40
- ======= NP and Search Problems =======
40
+ ======= Nondeterministic Polynomial Time : NP =======
41
41
42
42
As we disscussed earlier, an NTM can take different paths in the configuration space.
43
43
The length of the path is essentialy the number of steps. Now we will define
@@ -48,4 +48,38 @@ is the length of the longest path in the configuration space on any of the input
48
48
of size $n$.
49
49
50
50
NP or Nondeterministic Polynomial time is the class of descision problems for which,
51
- there is an NTM which decides it in worst case polynomial time.
51
+ there is an NTM which decides it in worst case polynomial time.
52
+
53
+ ======= NP : Verifier Definition =======
54
+
55
+ We will define descision problems that are *verifiable*. A descision problem
56
+ is said to be verifable if there exists a deterministic TM $M$ that takes two
57
+ inputs $(x,y)$ where $x$ is an instance of the descision problem and $y$ is
58
+ called a certificate which has length of atmost $p(n)$ where $p$ is a polynomial.
59
+ For YES-instances $x$, there should exist a certificate
60
+ $y$ such the $M$ accepts the input $(x,y)$. For instances not in the language,
61
+ for every $y$ of length $p(n)$, $M$ should reject on $(x,y)$. Also the running
62
+ time of $M$ must be polynomial time in size of $x$.
63
+
64
+ !bu-problem
65
+ Show that NP is the same as the set of verifable languages.
66
+ !eu-problem
67
+
68
+ An example of a verifiable language is the Clique problem.
69
+
70
+ !bt
71
+ \text{CLIQUE} = \{ (G,k): G \text{ has a clique of size } k \}
72
+ !et
73
+
74
+ A certificate for YES-instance $(G,k)$, is just the list of vertices in a $k$-clique.
75
+ The polynomial time verifier just checks if there is an edge between all pairs of
76
+ vertices. If $(G,k)$ is not in the language, then for any set of $k$ vertices,
77
+ that you can give to the verifier, it will reject, since there will not be an
78
+ edge between some pair in the list.
79
+
80
+ !bu-problem
81
+ Show that the CHROMATIC-NUMBER problem defined in Lecture 1 is verifiable.
82
+ !eu-problem
83
+
84
+
85
+ ======= Descision vs Search Problems =======
0 commit comments