Skip to content

Commit 098c09a

Browse files
committed
more lec3
1 parent abef43d commit 098c09a

File tree

1 file changed

+36
-2
lines changed

1 file changed

+36
-2
lines changed

3.do.txt

+36-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ some of the paths go into infinite loops. Hence it can to BFS. The first time,
3737
it finds that the NTM has reached the accept state, the UTM can also accept.
3838
If it never finds an accept state, the simulating TM rejects.
3939

40-
======= NP and Search Problems =======
40+
======= Nondeterministic Polynomial Time : NP =======
4141

4242
As we disscussed earlier, an NTM can take different paths in the configuration space.
4343
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
4848
of size $n$.
4949

5050
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

Comments
 (0)