SlideShare a Scribd company logo
Proof of Cook-
Levin Theorem
Team: 921S
Member: Xiechuan Liu
Song Song
Shuo Su
1CS 6212/Arora/Fall 2015Xiechuan/Song/Shuo
The Content of Theorem
• Simply: SAT is NP-complete problem
• Actually, there is an explicit CNF formula f
of length O(𝑓(𝑛)3
) which is satisfiable if
and only if N accepts w. In particular, when
f(n) is a polynomial, f has polynomial
length in terms of n.
CNF f=True
(length= O(𝑓(𝑛)3
) )
NTM N accepts
language w
iff
2CS 6212/Arora/Fall 2015Xiechuan/Song/Shuo
The importance of Cook-Levin
Theorem
• Find the first NPC problem: SAT.
• The theorem shows that every problem in
NP-complete can be reduced to a SAT.
• A breakthrough that if SAT = P, Then NP =
P.
3CS 6212/Arora/Fall 2015Xiechuan/Song/Shuo
The proof process
• 1. SAT is NP
Easily proved because any assignment can be verified
whether is satisfiable in polynomial time.
4CS 6212/Arora/Fall 2015Xiechuan/Song/Shuo
The proof process
• 2. SAT is NP-complete
Proof idea: construct a NTM N that accepts w, and reduce
this accepting process into a CNF formula.
CNF f=True
(length= O(𝑓(𝑛)3
) )
NTM N accepts
language w
iff
5CS 6212/Arora/Fall 2015Xiechuan/Song/Shuo
Definition of NTM N
NTM N (Q, , , , 𝑞0,𝑞 𝑎𝑐𝑐𝑒𝑝𝑡,𝑞 𝑟𝑒𝑗𝑒𝑐𝑡)
1. Q is the set of states.
2.  is the input alphabet not containing the special blank symbol ˽ ,
3.  is the tape alphabet, where ˽∈  and  ⊆ ,
4. : Q ×  → Q ×  × {L,R} is the transition function,
5. 𝑞0 ∈ Q is the start state,
6. 𝑞 𝑎𝑐𝑐𝑒𝑝𝑡 ∈ Q is the accept state, and
7. 𝑞 𝑟𝑒𝑗𝑒𝑐𝑡 ∈ Q is the reject state, where 𝑞 𝑟𝑒𝑗𝑒𝑐𝑡 ≠ 𝑞 𝑎𝑐𝑐𝑒𝑝𝑡
Essence: Use the Boolean formula as the constraints to assure the
whole accepting process is a legal computation history that NTM
accepts w.
6CS 6212/Arora/Fall 2015Xiechuan/Song/Shuo
1→Y,R
A
REJECT
CB
ACCEPT
Any
wrong
symbol
0→X,R
˽ → ˽ ,R
0→X,R
L=01*0
w=01110
1 2 3 4 5 6 7 8 9 10
# state w1 w2 w3 w4 w5 w6 w7 #
1 # A 0 1 1 1 0 ˽ ˽ #
2 # B X 1 1 1 0 ˽ ˽ #
3 # B X Y 1 1 0 ˽ ˽ #
4 # B X Y Y 1 0 ˽ ˽ #
5 # B X Y Y Y 0 ˽ ˽ #
6 # C X Y Y Y X ˽ ˽ #
7 #
ACC
EPT
X Y Y Y X ˽ ˽ #
Constraints: cell ∧ start ∧ accept ∧ move
𝑋𝑖,𝑗,𝑠 (for all 1≤ i, j ≤ 𝑁 𝑘
and s ∈ Q ∪  ∪ {#}) = True iff the cell[i][j]
contains “s”
For example, 𝑋3,5,“1” = True iff the cell[3][5] contains “1”
7Xiechuan/Song/Shuo CS 6212/Arora/Fall 2015
cell
1. Every cell must contains one symbol
s ∈ Q ∪  ∪ {#}
𝑋𝑖,𝑗,𝑠
2. Every cell can only contains one symbol.
𝑠≠𝑡
(¬𝑋𝑖,𝑗,𝑠 ∨ ¬𝑋𝑖,𝑗,𝑡)
means (for example):
𝑋1,1,“#” ∨ 𝑋1,2,“0” ∨ 𝑋1,3,“1” ∨ ……
means (for example):
(¬𝑋1,1,“#” ∨ ¬𝑋1,1,“0” ∨ ¬𝑋1,1,“1” ) ∧
(¬𝑋1,2,“#” ∨ ¬𝑋1,2,“0” ∨ ¬𝑋1,2,“1” ) ∧
(¬𝑋1,3,“#” ∨ ¬𝑋1,3,“0” ∨ ¬𝑋1,3,“1” ) ∧ ….
8CS 6212/Arora/Fall 2015Xiechuan/Song/Shuo
start
1. The first row describes the initial configuration.
start = 𝑋1,1,"#" ∧ 𝑋1,2,"𝐴" ∧ 𝑋1,2,"0" ∧ …
… ∧ 𝑋1,𝑛 𝑘−2,"˽" ∧ 𝑋1,𝑛 𝑘−1,"˽" ∧
𝑋1,𝑛 𝑘−1,"#"
accept
1. The ACCEPT state is reached in the
configuration history.
accept =
1≤ i, j ≤ 𝑁 𝑘
𝑋𝑖,𝑗,"𝑞 𝐴𝐶𝐶𝐸𝑃𝑇"
9Xiechuan/Song/Shuo CS 6212/Arora/Fall 2015
• move
Every configuration can legally follow the
previous configuration according to the details
of the Non-deterministic Turing Machine’s
transition function.
𝑞7 𝑞8
b → a,R
a q7 b
a a q8
b q7 b
b a q8
c q7 b
c a q8
move = 𝑋𝑖,𝑗−1,"𝑎" ∧ 𝑋𝑖,𝑗,"𝑞7" ∧ 𝑋𝑖,𝑗+1,"𝑏" ∧
𝑋𝑖+1,𝑗−1,"𝑎" ∧ 𝑋𝑖+1,𝑗,"𝑎" ∧ 𝑋𝑖+1,𝑗+1,"𝑞8"
10CS 6212/Arora/Fall 2015Xiechuan/Song/Shuo
cell =
1≤ i, j ≤ 𝑁 𝑘
[(
s ∈ Q ∪  ∪ {#}
𝑋𝑖,𝑗,𝑠) ∧ (
𝑠≠𝑡
(¬𝑋𝑖,𝑗,𝑠 ∨ ¬𝑋𝑖,𝑗,𝑡))]
start = 𝑋1,1,s1 ∧ 𝑋1,2,s2 ∧ 𝑋1,3,𝑠3 ∧ …
… ∧ 𝑋1,𝑛 𝑘−2,"˽" ∧ 𝑋1,𝑛 𝑘−1,"˽" ∧ 𝑋1,𝑛 𝑘−1,"#"
accept =
1≤ i, j ≤ 𝑁 𝑘
𝑋𝑖,𝑗,"𝑞 𝐴𝐶𝐶𝐸𝑃𝑇"
move =
1≤ i, j ≤ 𝑁 𝑘
(
𝑎𝑙𝑙 𝑡ℎ𝑒 𝑙𝑒𝑔𝑎𝑙𝑙𝑦 𝑤𝑖𝑛𝑑𝑜𝑤
(𝑋 ∧ 𝑋 ∧ 𝑋 ∧ 𝑋 ∧ 𝑋 ∧ 𝑋))
 = cell ∧ start ∧ accept ∧ move
11Xiechuan/Song/Shuo CS 6212/Arora/Fall 2015
Summary
1. We build a CNF formula
 = cell ∧ start ∧ accept ∧ move
which only contains 𝑋𝑖,𝑗,𝑠(true or false),
ANDs and ORs.
2. The whole process of NTM accepting w is
described by , if and only if the process is
correct, = True
12CS 6212/Arora/Fall 2015Xiechuan/Song/Shuo
The last step-Time Analysis
• The time we consume is the running time
of NTM, set i ≤ f(n)
• cell = O(𝑓(𝑛)2
)
• start = O(f(n))
• accept = O(1)
• move = O(𝑓(𝑛)2
)
So  = cell ∧ start ∧ accept ∧ move
and  = O(𝑓(𝑛)2
)
13CS 6212/Arora/Fall 2015Xiechuan/Song/Shuo
Time Analysis
So  clauses = O(𝑓(𝑛)2
), there are O(𝑓(𝑛)2
)
of 𝑋𝑖,𝑗,𝑠( i × j), each encodeable in space
O(log f(n)), the size of  is
O(log(f(n)) 𝑓(𝑛)2
), which is polynomial.
14CS 6212/Arora/Fall 2015Xiechuan/Song/Shuo

More Related Content

What's hot

Interconnection Network
Interconnection NetworkInterconnection Network
Interconnection Network
Ali A Jalil
 
Cache memory
Cache memoryCache memory
Cache memory
Jay Prajapati
 
Associative memory and set associative memory mapping
Associative memory and set associative memory mappingAssociative memory and set associative memory mapping
Associative memory and set associative memory mapping
SnehalataAgasti
 
Bus aribration
Bus aribrationBus aribration
Bus aribration
Saiyam Agrawal
 
Semophores and it's types
Semophores and it's typesSemophores and it's types
Semophores and it's types
Nishant Joshi
 
Multithreading: Exploiting Thread-Level Parallelism to Improve Uniprocessor ...
Multithreading: Exploiting Thread-Level  Parallelism to Improve Uniprocessor ...Multithreading: Exploiting Thread-Level  Parallelism to Improve Uniprocessor ...
Multithreading: Exploiting Thread-Level Parallelism to Improve Uniprocessor ...
Ahmed kasim
 
Instance Based Learning in Machine Learning
Instance Based Learning in Machine LearningInstance Based Learning in Machine Learning
Instance Based Learning in Machine Learning
Pavithra Thippanaik
 
daa-unit-3-greedy method
daa-unit-3-greedy methoddaa-unit-3-greedy method
daa-unit-3-greedy method
hodcsencet
 
Decision Trees
Decision TreesDecision Trees
Decision Trees
Student
 
Disk allocation methods
Disk allocation methodsDisk allocation methods
Disk allocation methods
ajeela mushtaq
 
Decision Tree - ID3
Decision Tree - ID3Decision Tree - ID3
Decision Tree - ID3
Xueping Peng
 
Chapter 04 the processor
Chapter 04   the processorChapter 04   the processor
Chapter 04 the processor
Bảo Hoang
 
Crash recovery in database
Crash recovery in databaseCrash recovery in database
Crash recovery in database
Prof.Nilesh Magar
 
2. Cache Mapping.pptx
2. Cache Mapping.pptx2. Cache Mapping.pptx
2. Cache Mapping.pptx
KarthikeyanC53
 
Real time scheduling - basic concepts
Real time scheduling - basic conceptsReal time scheduling - basic concepts
Real time scheduling - basic concepts
Student
 
Cache memory
Cache memoryCache memory
Cache memory
Anuj Modi
 
Swap-space Management
Swap-space ManagementSwap-space Management
Swap-space Management
Agnas Jasmine
 
Birch
BirchBirch
Principal source of optimization in compiler design
Principal source of optimization in compiler designPrincipal source of optimization in compiler design
Principal source of optimization in compiler design
Rajkumar R
 
Stream oriented communication
Stream oriented communicationStream oriented communication
Stream oriented communication
Shyama Bhuvanendran
 

What's hot (20)

Interconnection Network
Interconnection NetworkInterconnection Network
Interconnection Network
 
Cache memory
Cache memoryCache memory
Cache memory
 
Associative memory and set associative memory mapping
Associative memory and set associative memory mappingAssociative memory and set associative memory mapping
Associative memory and set associative memory mapping
 
Bus aribration
Bus aribrationBus aribration
Bus aribration
 
Semophores and it's types
Semophores and it's typesSemophores and it's types
Semophores and it's types
 
Multithreading: Exploiting Thread-Level Parallelism to Improve Uniprocessor ...
Multithreading: Exploiting Thread-Level  Parallelism to Improve Uniprocessor ...Multithreading: Exploiting Thread-Level  Parallelism to Improve Uniprocessor ...
Multithreading: Exploiting Thread-Level Parallelism to Improve Uniprocessor ...
 
Instance Based Learning in Machine Learning
Instance Based Learning in Machine LearningInstance Based Learning in Machine Learning
Instance Based Learning in Machine Learning
 
daa-unit-3-greedy method
daa-unit-3-greedy methoddaa-unit-3-greedy method
daa-unit-3-greedy method
 
Decision Trees
Decision TreesDecision Trees
Decision Trees
 
Disk allocation methods
Disk allocation methodsDisk allocation methods
Disk allocation methods
 
Decision Tree - ID3
Decision Tree - ID3Decision Tree - ID3
Decision Tree - ID3
 
Chapter 04 the processor
Chapter 04   the processorChapter 04   the processor
Chapter 04 the processor
 
Crash recovery in database
Crash recovery in databaseCrash recovery in database
Crash recovery in database
 
2. Cache Mapping.pptx
2. Cache Mapping.pptx2. Cache Mapping.pptx
2. Cache Mapping.pptx
 
Real time scheduling - basic concepts
Real time scheduling - basic conceptsReal time scheduling - basic concepts
Real time scheduling - basic concepts
 
Cache memory
Cache memoryCache memory
Cache memory
 
Swap-space Management
Swap-space ManagementSwap-space Management
Swap-space Management
 
Birch
BirchBirch
Birch
 
Principal source of optimization in compiler design
Principal source of optimization in compiler designPrincipal source of optimization in compiler design
Principal source of optimization in compiler design
 
Stream oriented communication
Stream oriented communicationStream oriented communication
Stream oriented communication
 

Viewers also liked

Euclid's Algorithm for Greatest Common Divisor - Time Complexity Analysis
Euclid's Algorithm for Greatest Common Divisor - Time Complexity AnalysisEuclid's Algorithm for Greatest Common Divisor - Time Complexity Analysis
Euclid's Algorithm for Greatest Common Divisor - Time Complexity Analysis
Amrinder Arora
 
Convex Hull - Chan's Algorithm O(n log h) - Presentation by Yitian Huang and ...
Convex Hull - Chan's Algorithm O(n log h) - Presentation by Yitian Huang and ...Convex Hull - Chan's Algorithm O(n log h) - Presentation by Yitian Huang and ...
Convex Hull - Chan's Algorithm O(n log h) - Presentation by Yitian Huang and ...
Amrinder Arora
 
Dynamic Programming - Part II
Dynamic Programming - Part IIDynamic Programming - Part II
Dynamic Programming - Part II
Amrinder Arora
 
Graph Traversal Algorithms - Breadth First Search
Graph Traversal Algorithms - Breadth First SearchGraph Traversal Algorithms - Breadth First Search
Graph Traversal Algorithms - Breadth First Search
Amrinder Arora
 
NP completeness
NP completenessNP completeness
NP completeness
Amrinder Arora
 
Dynamic Programming - Part 1
Dynamic Programming - Part 1Dynamic Programming - Part 1
Dynamic Programming - Part 1
Amrinder Arora
 
Graph Traversal Algorithms - Depth First Search Traversal
Graph Traversal Algorithms - Depth First Search TraversalGraph Traversal Algorithms - Depth First Search Traversal
Graph Traversal Algorithms - Depth First Search Traversal
Amrinder Arora
 
Divide and Conquer - Part II - Quickselect and Closest Pair of Points
Divide and Conquer - Part II - Quickselect and Closest Pair of PointsDivide and Conquer - Part II - Quickselect and Closest Pair of Points
Divide and Conquer - Part II - Quickselect and Closest Pair of Points
Amrinder Arora
 
Greedy Algorithms
Greedy AlgorithmsGreedy Algorithms
Greedy Algorithms
Amrinder Arora
 
Stopping Rule for Secretory Problem - Presentation by Haoyang Tian, Wesam Als...
Stopping Rule for Secretory Problem - Presentation by Haoyang Tian, Wesam Als...Stopping Rule for Secretory Problem - Presentation by Haoyang Tian, Wesam Als...
Stopping Rule for Secretory Problem - Presentation by Haoyang Tian, Wesam Als...
Amrinder Arora
 
Proof of O(log *n) time complexity of Union find (Presentation by Wei Li, Zeh...
Proof of O(log *n) time complexity of Union find (Presentation by Wei Li, Zeh...Proof of O(log *n) time complexity of Union find (Presentation by Wei Li, Zeh...
Proof of O(log *n) time complexity of Union find (Presentation by Wei Li, Zeh...
Amrinder Arora
 
Bron Kerbosch Algorithm - Presentation by Jun Zhai, Tianhang Qiang and Yizhen...
Bron Kerbosch Algorithm - Presentation by Jun Zhai, Tianhang Qiang and Yizhen...Bron Kerbosch Algorithm - Presentation by Jun Zhai, Tianhang Qiang and Yizhen...
Bron Kerbosch Algorithm - Presentation by Jun Zhai, Tianhang Qiang and Yizhen...
Amrinder Arora
 
NP-Completeness - II
NP-Completeness - IINP-Completeness - II
NP-Completeness - II
Amrinder Arora
 
Algorithmic Puzzles
Algorithmic PuzzlesAlgorithmic Puzzles
Algorithmic Puzzles
Amrinder Arora
 
Arima Forecasting - Presentation by Sera Cresta, Nora Alosaimi and Puneet Mahana
Arima Forecasting - Presentation by Sera Cresta, Nora Alosaimi and Puneet MahanaArima Forecasting - Presentation by Sera Cresta, Nora Alosaimi and Puneet Mahana
Arima Forecasting - Presentation by Sera Cresta, Nora Alosaimi and Puneet Mahana
Amrinder Arora
 
Online algorithms in Machine Learning
Online algorithms in Machine LearningOnline algorithms in Machine Learning
Online algorithms in Machine Learning
Amrinder Arora
 
Introduction to Algorithms and Asymptotic Notation
Introduction to Algorithms and Asymptotic NotationIntroduction to Algorithms and Asymptotic Notation
Introduction to Algorithms and Asymptotic Notation
Amrinder Arora
 
Asymptotic Notation and Data Structures
Asymptotic Notation and Data StructuresAsymptotic Notation and Data Structures
Asymptotic Notation and Data Structures
Amrinder Arora
 
Divide and Conquer - Part 1
Divide and Conquer - Part 1Divide and Conquer - Part 1
Divide and Conquer - Part 1
Amrinder Arora
 

Viewers also liked (19)

Euclid's Algorithm for Greatest Common Divisor - Time Complexity Analysis
Euclid's Algorithm for Greatest Common Divisor - Time Complexity AnalysisEuclid's Algorithm for Greatest Common Divisor - Time Complexity Analysis
Euclid's Algorithm for Greatest Common Divisor - Time Complexity Analysis
 
Convex Hull - Chan's Algorithm O(n log h) - Presentation by Yitian Huang and ...
Convex Hull - Chan's Algorithm O(n log h) - Presentation by Yitian Huang and ...Convex Hull - Chan's Algorithm O(n log h) - Presentation by Yitian Huang and ...
Convex Hull - Chan's Algorithm O(n log h) - Presentation by Yitian Huang and ...
 
Dynamic Programming - Part II
Dynamic Programming - Part IIDynamic Programming - Part II
Dynamic Programming - Part II
 
Graph Traversal Algorithms - Breadth First Search
Graph Traversal Algorithms - Breadth First SearchGraph Traversal Algorithms - Breadth First Search
Graph Traversal Algorithms - Breadth First Search
 
NP completeness
NP completenessNP completeness
NP completeness
 
Dynamic Programming - Part 1
Dynamic Programming - Part 1Dynamic Programming - Part 1
Dynamic Programming - Part 1
 
Graph Traversal Algorithms - Depth First Search Traversal
Graph Traversal Algorithms - Depth First Search TraversalGraph Traversal Algorithms - Depth First Search Traversal
Graph Traversal Algorithms - Depth First Search Traversal
 
Divide and Conquer - Part II - Quickselect and Closest Pair of Points
Divide and Conquer - Part II - Quickselect and Closest Pair of PointsDivide and Conquer - Part II - Quickselect and Closest Pair of Points
Divide and Conquer - Part II - Quickselect and Closest Pair of Points
 
Greedy Algorithms
Greedy AlgorithmsGreedy Algorithms
Greedy Algorithms
 
Stopping Rule for Secretory Problem - Presentation by Haoyang Tian, Wesam Als...
Stopping Rule for Secretory Problem - Presentation by Haoyang Tian, Wesam Als...Stopping Rule for Secretory Problem - Presentation by Haoyang Tian, Wesam Als...
Stopping Rule for Secretory Problem - Presentation by Haoyang Tian, Wesam Als...
 
Proof of O(log *n) time complexity of Union find (Presentation by Wei Li, Zeh...
Proof of O(log *n) time complexity of Union find (Presentation by Wei Li, Zeh...Proof of O(log *n) time complexity of Union find (Presentation by Wei Li, Zeh...
Proof of O(log *n) time complexity of Union find (Presentation by Wei Li, Zeh...
 
Bron Kerbosch Algorithm - Presentation by Jun Zhai, Tianhang Qiang and Yizhen...
Bron Kerbosch Algorithm - Presentation by Jun Zhai, Tianhang Qiang and Yizhen...Bron Kerbosch Algorithm - Presentation by Jun Zhai, Tianhang Qiang and Yizhen...
Bron Kerbosch Algorithm - Presentation by Jun Zhai, Tianhang Qiang and Yizhen...
 
NP-Completeness - II
NP-Completeness - IINP-Completeness - II
NP-Completeness - II
 
Algorithmic Puzzles
Algorithmic PuzzlesAlgorithmic Puzzles
Algorithmic Puzzles
 
Arima Forecasting - Presentation by Sera Cresta, Nora Alosaimi and Puneet Mahana
Arima Forecasting - Presentation by Sera Cresta, Nora Alosaimi and Puneet MahanaArima Forecasting - Presentation by Sera Cresta, Nora Alosaimi and Puneet Mahana
Arima Forecasting - Presentation by Sera Cresta, Nora Alosaimi and Puneet Mahana
 
Online algorithms in Machine Learning
Online algorithms in Machine LearningOnline algorithms in Machine Learning
Online algorithms in Machine Learning
 
Introduction to Algorithms and Asymptotic Notation
Introduction to Algorithms and Asymptotic NotationIntroduction to Algorithms and Asymptotic Notation
Introduction to Algorithms and Asymptotic Notation
 
Asymptotic Notation and Data Structures
Asymptotic Notation and Data StructuresAsymptotic Notation and Data Structures
Asymptotic Notation and Data Structures
 
Divide and Conquer - Part 1
Divide and Conquer - Part 1Divide and Conquer - Part 1
Divide and Conquer - Part 1
 

Similar to Proof of Cook Levin Theorem (Presentation by Xiechuan, Song and Shuo)

Lossy Kernelization
Lossy KernelizationLossy Kernelization
Lossy Kernelization
msramanujan
 
Week3 ap3421 2019_part1
Week3 ap3421 2019_part1Week3 ap3421 2019_part1
Week3 ap3421 2019_part1
David Cian
 
RF Circuit Design - [Ch1-1] Sinusoidal Steady-state Analysis
RF Circuit Design - [Ch1-1] Sinusoidal Steady-state AnalysisRF Circuit Design - [Ch1-1] Sinusoidal Steady-state Analysis
RF Circuit Design - [Ch1-1] Sinusoidal Steady-state Analysis
Simen Li
 
m.tech final
m.tech finalm.tech final
TuringMachines.pdf
TuringMachines.pdfTuringMachines.pdf
TuringMachines.pdf
viswanath kani
 
15757597 (1).ppt
15757597 (1).ppt15757597 (1).ppt
15757597 (1).ppt
RevathiMohan14
 
Mathematics of nyquist plot [autosaved] [autosaved]
Mathematics of nyquist plot [autosaved] [autosaved]Mathematics of nyquist plot [autosaved] [autosaved]
Mathematics of nyquist plot [autosaved] [autosaved]
Asafak Husain
 
ACM ICPC 2015 NEERC (Northeastern European Regional Contest) Problems Review
ACM ICPC 2015 NEERC (Northeastern European Regional Contest) Problems ReviewACM ICPC 2015 NEERC (Northeastern European Regional Contest) Problems Review
ACM ICPC 2015 NEERC (Northeastern European Regional Contest) Problems Review
Roman Elizarov
 
Minimum spanning tree
Minimum spanning treeMinimum spanning tree
Minimum spanning tree
Amit Kumar Rathi
 
Introduction to Graph Theory
Introduction to Graph TheoryIntroduction to Graph Theory
Introduction to Graph Theory
Yosuke Mizutani
 
zkStudyClub: HyperPlonk (Binyi Chen, Benedikt Bünz)
zkStudyClub: HyperPlonk (Binyi Chen, Benedikt Bünz)zkStudyClub: HyperPlonk (Binyi Chen, Benedikt Bünz)
zkStudyClub: HyperPlonk (Binyi Chen, Benedikt Bünz)
Alex Pruden
 
AB-RNA-Mfold&SCFGs-2011
AB-RNA-Mfold&SCFGs-2011AB-RNA-Mfold&SCFGs-2011
AB-RNA-Mfold&SCFGs-2011
Paula Tataru
 
07_Digital timing_&_Pipelining.ppt
07_Digital timing_&_Pipelining.ppt07_Digital timing_&_Pipelining.ppt
07_Digital timing_&_Pipelining.ppt
BUCHUPALLIVIMALAREDD2
 
lecture 10 formal methods in software enginnering.pptx
lecture 10 formal methods in software enginnering.pptxlecture 10 formal methods in software enginnering.pptx
lecture 10 formal methods in software enginnering.pptx
SohaibAlviWebster
 
Blow up in a degenerate keller--segel system(Eng.)
Blow up in a degenerate keller--segel system(Eng.)Blow up in a degenerate keller--segel system(Eng.)
Blow up in a degenerate keller--segel system(Eng.)
Takahiro Hashira
 
Cs262 2006 lecture6
Cs262 2006 lecture6Cs262 2006 lecture6
Cs262 2006 lecture6
BioinformaticsInstitute
 
Run Or Walk In The Rain? (Orthogonal Projected Area of Ellipsoid)
Run Or Walk In The Rain? (Orthogonal Projected Area of Ellipsoid)Run Or Walk In The Rain? (Orthogonal Projected Area of Ellipsoid)
Run Or Walk In The Rain? (Orthogonal Projected Area of Ellipsoid)
iosrjce
 
Second Order Active RC Blocks
Second Order Active RC BlocksSecond Order Active RC Blocks
Second Order Active RC Blocks
Hoopeer Hoopeer
 
G03201034038
G03201034038G03201034038
G03201034038
inventionjournals
 
Mod 3.pptx
Mod 3.pptxMod 3.pptx
Mod 3.pptx
SHREDHAPRASAD
 

Similar to Proof of Cook Levin Theorem (Presentation by Xiechuan, Song and Shuo) (20)

Lossy Kernelization
Lossy KernelizationLossy Kernelization
Lossy Kernelization
 
Week3 ap3421 2019_part1
Week3 ap3421 2019_part1Week3 ap3421 2019_part1
Week3 ap3421 2019_part1
 
RF Circuit Design - [Ch1-1] Sinusoidal Steady-state Analysis
RF Circuit Design - [Ch1-1] Sinusoidal Steady-state AnalysisRF Circuit Design - [Ch1-1] Sinusoidal Steady-state Analysis
RF Circuit Design - [Ch1-1] Sinusoidal Steady-state Analysis
 
m.tech final
m.tech finalm.tech final
m.tech final
 
TuringMachines.pdf
TuringMachines.pdfTuringMachines.pdf
TuringMachines.pdf
 
15757597 (1).ppt
15757597 (1).ppt15757597 (1).ppt
15757597 (1).ppt
 
Mathematics of nyquist plot [autosaved] [autosaved]
Mathematics of nyquist plot [autosaved] [autosaved]Mathematics of nyquist plot [autosaved] [autosaved]
Mathematics of nyquist plot [autosaved] [autosaved]
 
ACM ICPC 2015 NEERC (Northeastern European Regional Contest) Problems Review
ACM ICPC 2015 NEERC (Northeastern European Regional Contest) Problems ReviewACM ICPC 2015 NEERC (Northeastern European Regional Contest) Problems Review
ACM ICPC 2015 NEERC (Northeastern European Regional Contest) Problems Review
 
Minimum spanning tree
Minimum spanning treeMinimum spanning tree
Minimum spanning tree
 
Introduction to Graph Theory
Introduction to Graph TheoryIntroduction to Graph Theory
Introduction to Graph Theory
 
zkStudyClub: HyperPlonk (Binyi Chen, Benedikt Bünz)
zkStudyClub: HyperPlonk (Binyi Chen, Benedikt Bünz)zkStudyClub: HyperPlonk (Binyi Chen, Benedikt Bünz)
zkStudyClub: HyperPlonk (Binyi Chen, Benedikt Bünz)
 
AB-RNA-Mfold&SCFGs-2011
AB-RNA-Mfold&SCFGs-2011AB-RNA-Mfold&SCFGs-2011
AB-RNA-Mfold&SCFGs-2011
 
07_Digital timing_&_Pipelining.ppt
07_Digital timing_&_Pipelining.ppt07_Digital timing_&_Pipelining.ppt
07_Digital timing_&_Pipelining.ppt
 
lecture 10 formal methods in software enginnering.pptx
lecture 10 formal methods in software enginnering.pptxlecture 10 formal methods in software enginnering.pptx
lecture 10 formal methods in software enginnering.pptx
 
Blow up in a degenerate keller--segel system(Eng.)
Blow up in a degenerate keller--segel system(Eng.)Blow up in a degenerate keller--segel system(Eng.)
Blow up in a degenerate keller--segel system(Eng.)
 
Cs262 2006 lecture6
Cs262 2006 lecture6Cs262 2006 lecture6
Cs262 2006 lecture6
 
Run Or Walk In The Rain? (Orthogonal Projected Area of Ellipsoid)
Run Or Walk In The Rain? (Orthogonal Projected Area of Ellipsoid)Run Or Walk In The Rain? (Orthogonal Projected Area of Ellipsoid)
Run Or Walk In The Rain? (Orthogonal Projected Area of Ellipsoid)
 
Second Order Active RC Blocks
Second Order Active RC BlocksSecond Order Active RC Blocks
Second Order Active RC Blocks
 
G03201034038
G03201034038G03201034038
G03201034038
 
Mod 3.pptx
Mod 3.pptxMod 3.pptx
Mod 3.pptx
 

More from Amrinder Arora

Set Operations - Union Find and Bloom Filters
Set Operations - Union Find and Bloom FiltersSet Operations - Union Find and Bloom Filters
Set Operations - Union Find and Bloom Filters
Amrinder Arora
 
Binomial Heaps and Fibonacci Heaps
Binomial Heaps and Fibonacci HeapsBinomial Heaps and Fibonacci Heaps
Binomial Heaps and Fibonacci Heaps
Amrinder Arora
 
R-Trees and Geospatial Data Structures
R-Trees and Geospatial Data StructuresR-Trees and Geospatial Data Structures
R-Trees and Geospatial Data Structures
Amrinder Arora
 
Tries - Tree Based Structures for Strings
Tries - Tree Based Structures for StringsTries - Tree Based Structures for Strings
Tries - Tree Based Structures for Strings
Amrinder Arora
 
Splay Trees and Self Organizing Data Structures
Splay Trees and Self Organizing Data StructuresSplay Trees and Self Organizing Data Structures
Splay Trees and Self Organizing Data Structures
Amrinder Arora
 
BTrees - Great alternative to Red Black, AVL and other BSTs
BTrees - Great alternative to Red Black, AVL and other BSTsBTrees - Great alternative to Red Black, AVL and other BSTs
BTrees - Great alternative to Red Black, AVL and other BSTs
Amrinder Arora
 
Binary Search Trees - AVL and Red Black
Binary Search Trees - AVL and Red BlackBinary Search Trees - AVL and Red Black
Binary Search Trees - AVL and Red Black
Amrinder Arora
 
Graphs, Trees, Paths and Their Representations
Graphs, Trees, Paths and Their RepresentationsGraphs, Trees, Paths and Their Representations
Graphs, Trees, Paths and Their Representations
Amrinder Arora
 
Stacks, Queues, Binary Search Trees - Lecture 1 - Advanced Data Structures
Stacks, Queues, Binary Search Trees -  Lecture 1 - Advanced Data StructuresStacks, Queues, Binary Search Trees -  Lecture 1 - Advanced Data Structures
Stacks, Queues, Binary Search Trees - Lecture 1 - Advanced Data Structures
Amrinder Arora
 
Online Algorithms - An Introduction
Online Algorithms - An IntroductionOnline Algorithms - An Introduction
Online Algorithms - An Introduction
Amrinder Arora
 
Learning to learn
Learning to learnLearning to learn
Learning to learn
Amrinder Arora
 

More from Amrinder Arora (11)

Set Operations - Union Find and Bloom Filters
Set Operations - Union Find and Bloom FiltersSet Operations - Union Find and Bloom Filters
Set Operations - Union Find and Bloom Filters
 
Binomial Heaps and Fibonacci Heaps
Binomial Heaps and Fibonacci HeapsBinomial Heaps and Fibonacci Heaps
Binomial Heaps and Fibonacci Heaps
 
R-Trees and Geospatial Data Structures
R-Trees and Geospatial Data StructuresR-Trees and Geospatial Data Structures
R-Trees and Geospatial Data Structures
 
Tries - Tree Based Structures for Strings
Tries - Tree Based Structures for StringsTries - Tree Based Structures for Strings
Tries - Tree Based Structures for Strings
 
Splay Trees and Self Organizing Data Structures
Splay Trees and Self Organizing Data StructuresSplay Trees and Self Organizing Data Structures
Splay Trees and Self Organizing Data Structures
 
BTrees - Great alternative to Red Black, AVL and other BSTs
BTrees - Great alternative to Red Black, AVL and other BSTsBTrees - Great alternative to Red Black, AVL and other BSTs
BTrees - Great alternative to Red Black, AVL and other BSTs
 
Binary Search Trees - AVL and Red Black
Binary Search Trees - AVL and Red BlackBinary Search Trees - AVL and Red Black
Binary Search Trees - AVL and Red Black
 
Graphs, Trees, Paths and Their Representations
Graphs, Trees, Paths and Their RepresentationsGraphs, Trees, Paths and Their Representations
Graphs, Trees, Paths and Their Representations
 
Stacks, Queues, Binary Search Trees - Lecture 1 - Advanced Data Structures
Stacks, Queues, Binary Search Trees -  Lecture 1 - Advanced Data StructuresStacks, Queues, Binary Search Trees -  Lecture 1 - Advanced Data Structures
Stacks, Queues, Binary Search Trees - Lecture 1 - Advanced Data Structures
 
Online Algorithms - An Introduction
Online Algorithms - An IntroductionOnline Algorithms - An Introduction
Online Algorithms - An Introduction
 
Learning to learn
Learning to learnLearning to learn
Learning to learn
 

Recently uploaded

Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
simonomuemu
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
Kavitha Krishnan
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 

Recently uploaded (20)

Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 

Proof of Cook Levin Theorem (Presentation by Xiechuan, Song and Shuo)

  • 1. Proof of Cook- Levin Theorem Team: 921S Member: Xiechuan Liu Song Song Shuo Su 1CS 6212/Arora/Fall 2015Xiechuan/Song/Shuo
  • 2. The Content of Theorem • Simply: SAT is NP-complete problem • Actually, there is an explicit CNF formula f of length O(𝑓(𝑛)3 ) which is satisfiable if and only if N accepts w. In particular, when f(n) is a polynomial, f has polynomial length in terms of n. CNF f=True (length= O(𝑓(𝑛)3 ) ) NTM N accepts language w iff 2CS 6212/Arora/Fall 2015Xiechuan/Song/Shuo
  • 3. The importance of Cook-Levin Theorem • Find the first NPC problem: SAT. • The theorem shows that every problem in NP-complete can be reduced to a SAT. • A breakthrough that if SAT = P, Then NP = P. 3CS 6212/Arora/Fall 2015Xiechuan/Song/Shuo
  • 4. The proof process • 1. SAT is NP Easily proved because any assignment can be verified whether is satisfiable in polynomial time. 4CS 6212/Arora/Fall 2015Xiechuan/Song/Shuo
  • 5. The proof process • 2. SAT is NP-complete Proof idea: construct a NTM N that accepts w, and reduce this accepting process into a CNF formula. CNF f=True (length= O(𝑓(𝑛)3 ) ) NTM N accepts language w iff 5CS 6212/Arora/Fall 2015Xiechuan/Song/Shuo
  • 6. Definition of NTM N NTM N (Q, , , , 𝑞0,𝑞 𝑎𝑐𝑐𝑒𝑝𝑡,𝑞 𝑟𝑒𝑗𝑒𝑐𝑡) 1. Q is the set of states. 2.  is the input alphabet not containing the special blank symbol ˽ , 3.  is the tape alphabet, where ˽∈  and  ⊆ , 4. : Q ×  → Q ×  × {L,R} is the transition function, 5. 𝑞0 ∈ Q is the start state, 6. 𝑞 𝑎𝑐𝑐𝑒𝑝𝑡 ∈ Q is the accept state, and 7. 𝑞 𝑟𝑒𝑗𝑒𝑐𝑡 ∈ Q is the reject state, where 𝑞 𝑟𝑒𝑗𝑒𝑐𝑡 ≠ 𝑞 𝑎𝑐𝑐𝑒𝑝𝑡 Essence: Use the Boolean formula as the constraints to assure the whole accepting process is a legal computation history that NTM accepts w. 6CS 6212/Arora/Fall 2015Xiechuan/Song/Shuo
  • 7. 1→Y,R A REJECT CB ACCEPT Any wrong symbol 0→X,R ˽ → ˽ ,R 0→X,R L=01*0 w=01110 1 2 3 4 5 6 7 8 9 10 # state w1 w2 w3 w4 w5 w6 w7 # 1 # A 0 1 1 1 0 ˽ ˽ # 2 # B X 1 1 1 0 ˽ ˽ # 3 # B X Y 1 1 0 ˽ ˽ # 4 # B X Y Y 1 0 ˽ ˽ # 5 # B X Y Y Y 0 ˽ ˽ # 6 # C X Y Y Y X ˽ ˽ # 7 # ACC EPT X Y Y Y X ˽ ˽ # Constraints: cell ∧ start ∧ accept ∧ move 𝑋𝑖,𝑗,𝑠 (for all 1≤ i, j ≤ 𝑁 𝑘 and s ∈ Q ∪  ∪ {#}) = True iff the cell[i][j] contains “s” For example, 𝑋3,5,“1” = True iff the cell[3][5] contains “1” 7Xiechuan/Song/Shuo CS 6212/Arora/Fall 2015
  • 8. cell 1. Every cell must contains one symbol s ∈ Q ∪  ∪ {#} 𝑋𝑖,𝑗,𝑠 2. Every cell can only contains one symbol. 𝑠≠𝑡 (¬𝑋𝑖,𝑗,𝑠 ∨ ¬𝑋𝑖,𝑗,𝑡) means (for example): 𝑋1,1,“#” ∨ 𝑋1,2,“0” ∨ 𝑋1,3,“1” ∨ …… means (for example): (¬𝑋1,1,“#” ∨ ¬𝑋1,1,“0” ∨ ¬𝑋1,1,“1” ) ∧ (¬𝑋1,2,“#” ∨ ¬𝑋1,2,“0” ∨ ¬𝑋1,2,“1” ) ∧ (¬𝑋1,3,“#” ∨ ¬𝑋1,3,“0” ∨ ¬𝑋1,3,“1” ) ∧ …. 8CS 6212/Arora/Fall 2015Xiechuan/Song/Shuo
  • 9. start 1. The first row describes the initial configuration. start = 𝑋1,1,"#" ∧ 𝑋1,2,"𝐴" ∧ 𝑋1,2,"0" ∧ … … ∧ 𝑋1,𝑛 𝑘−2,"˽" ∧ 𝑋1,𝑛 𝑘−1,"˽" ∧ 𝑋1,𝑛 𝑘−1,"#" accept 1. The ACCEPT state is reached in the configuration history. accept = 1≤ i, j ≤ 𝑁 𝑘 𝑋𝑖,𝑗,"𝑞 𝐴𝐶𝐶𝐸𝑃𝑇" 9Xiechuan/Song/Shuo CS 6212/Arora/Fall 2015
  • 10. • move Every configuration can legally follow the previous configuration according to the details of the Non-deterministic Turing Machine’s transition function. 𝑞7 𝑞8 b → a,R a q7 b a a q8 b q7 b b a q8 c q7 b c a q8 move = 𝑋𝑖,𝑗−1,"𝑎" ∧ 𝑋𝑖,𝑗,"𝑞7" ∧ 𝑋𝑖,𝑗+1,"𝑏" ∧ 𝑋𝑖+1,𝑗−1,"𝑎" ∧ 𝑋𝑖+1,𝑗,"𝑎" ∧ 𝑋𝑖+1,𝑗+1,"𝑞8" 10CS 6212/Arora/Fall 2015Xiechuan/Song/Shuo
  • 11. cell = 1≤ i, j ≤ 𝑁 𝑘 [( s ∈ Q ∪  ∪ {#} 𝑋𝑖,𝑗,𝑠) ∧ ( 𝑠≠𝑡 (¬𝑋𝑖,𝑗,𝑠 ∨ ¬𝑋𝑖,𝑗,𝑡))] start = 𝑋1,1,s1 ∧ 𝑋1,2,s2 ∧ 𝑋1,3,𝑠3 ∧ … … ∧ 𝑋1,𝑛 𝑘−2,"˽" ∧ 𝑋1,𝑛 𝑘−1,"˽" ∧ 𝑋1,𝑛 𝑘−1,"#" accept = 1≤ i, j ≤ 𝑁 𝑘 𝑋𝑖,𝑗,"𝑞 𝐴𝐶𝐶𝐸𝑃𝑇" move = 1≤ i, j ≤ 𝑁 𝑘 ( 𝑎𝑙𝑙 𝑡ℎ𝑒 𝑙𝑒𝑔𝑎𝑙𝑙𝑦 𝑤𝑖𝑛𝑑𝑜𝑤 (𝑋 ∧ 𝑋 ∧ 𝑋 ∧ 𝑋 ∧ 𝑋 ∧ 𝑋))  = cell ∧ start ∧ accept ∧ move 11Xiechuan/Song/Shuo CS 6212/Arora/Fall 2015
  • 12. Summary 1. We build a CNF formula  = cell ∧ start ∧ accept ∧ move which only contains 𝑋𝑖,𝑗,𝑠(true or false), ANDs and ORs. 2. The whole process of NTM accepting w is described by , if and only if the process is correct, = True 12CS 6212/Arora/Fall 2015Xiechuan/Song/Shuo
  • 13. The last step-Time Analysis • The time we consume is the running time of NTM, set i ≤ f(n) • cell = O(𝑓(𝑛)2 ) • start = O(f(n)) • accept = O(1) • move = O(𝑓(𝑛)2 ) So  = cell ∧ start ∧ accept ∧ move and  = O(𝑓(𝑛)2 ) 13CS 6212/Arora/Fall 2015Xiechuan/Song/Shuo
  • 14. Time Analysis So  clauses = O(𝑓(𝑛)2 ), there are O(𝑓(𝑛)2 ) of 𝑋𝑖,𝑗,𝑠( i × j), each encodeable in space O(log f(n)), the size of  is O(log(f(n)) 𝑓(𝑛)2 ), which is polynomial. 14CS 6212/Arora/Fall 2015Xiechuan/Song/Shuo