SlideShare ist ein Scribd-Unternehmen logo
1 von 14
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (18)

OS Unit 5 - Memory Management
OS Unit 5 - Memory ManagementOS Unit 5 - Memory Management
OS Unit 5 - Memory Management
 
Matlab on basic mathematics
Matlab on basic mathematicsMatlab on basic mathematics
Matlab on basic mathematics
 
Dr K.Sree Latha
Dr K.Sree LathaDr K.Sree Latha
Dr K.Sree Latha
 
Chapter 2 database environment
Chapter 2 database environmentChapter 2 database environment
Chapter 2 database environment
 
Laplace transform & fourier series
Laplace transform & fourier seriesLaplace transform & fourier series
Laplace transform & fourier series
 
Laplace transforms
Laplace transformsLaplace transforms
Laplace transforms
 
Talend Open Studio Data Integration
Talend Open Studio Data IntegrationTalend Open Studio Data Integration
Talend Open Studio Data Integration
 
Talend Open Studio for Big Data | Talend Open Studio Tutorial | Talend Online...
Talend Open Studio for Big Data | Talend Open Studio Tutorial | Talend Online...Talend Open Studio for Big Data | Talend Open Studio Tutorial | Talend Online...
Talend Open Studio for Big Data | Talend Open Studio Tutorial | Talend Online...
 
variable entered map
variable entered mapvariable entered map
variable entered map
 
Perception in artificial intelligence
Perception in artificial intelligencePerception in artificial intelligence
Perception in artificial intelligence
 
Computer Organization
Computer OrganizationComputer Organization
Computer Organization
 
Database technology
Database technologyDatabase technology
Database technology
 
Matrix representation of graph
Matrix representation of graphMatrix representation of graph
Matrix representation of graph
 
Deadlock Detection
Deadlock DetectionDeadlock Detection
Deadlock Detection
 
Distributed Database
Distributed DatabaseDistributed Database
Distributed Database
 
Bangladesh Bank Assistant Programmer Question and Solution.pdf
Bangladesh Bank Assistant Programmer Question and Solution.pdfBangladesh Bank Assistant Programmer Question and Solution.pdf
Bangladesh Bank Assistant Programmer Question and Solution.pdf
 
Chapter 8 : Memory
Chapter 8 : MemoryChapter 8 : Memory
Chapter 8 : Memory
 
Chapter 2 (maths 3)
Chapter 2 (maths 3)Chapter 2 (maths 3)
Chapter 2 (maths 3)
 

Andere mochten auch

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 AnalysisAmrinder 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 IIAmrinder Arora
 
Graph Traversal Algorithms - Breadth First Search
Graph Traversal Algorithms - Breadth First SearchGraph Traversal Algorithms - Breadth First Search
Graph Traversal Algorithms - Breadth First SearchAmrinder Arora
 
Dynamic Programming - Part 1
Dynamic Programming - Part 1Dynamic Programming - Part 1
Dynamic Programming - Part 1Amrinder 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 TraversalAmrinder 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 PointsAmrinder 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
 
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 MahanaAmrinder Arora
 
Online algorithms in Machine Learning
Online algorithms in Machine LearningOnline algorithms in Machine Learning
Online algorithms in Machine LearningAmrinder Arora
 
Introduction to Algorithms and Asymptotic Notation
Introduction to Algorithms and Asymptotic NotationIntroduction to Algorithms and Asymptotic Notation
Introduction to Algorithms and Asymptotic NotationAmrinder Arora
 
Asymptotic Notation and Data Structures
Asymptotic Notation and Data StructuresAsymptotic Notation and Data Structures
Asymptotic Notation and Data StructuresAmrinder Arora
 
Divide and Conquer - Part 1
Divide and Conquer - Part 1Divide and Conquer - Part 1
Divide and Conquer - Part 1Amrinder Arora
 

Andere mochten auch (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
 

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

Lossy Kernelization
Lossy KernelizationLossy Kernelization
Lossy Kernelizationmsramanujan
 
Week3 ap3421 2019_part1
Week3 ap3421 2019_part1Week3 ap3421 2019_part1
Week3 ap3421 2019_part1David 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 AnalysisSimen Li
 
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 ReviewRoman Elizarov
 
Introduction to Graph Theory
Introduction to Graph TheoryIntroduction to Graph Theory
Introduction to Graph TheoryYosuke 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-2011Paula Tataru
 
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.pptxSohaibAlviWebster
 
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
 
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 BlocksHoopeer Hoopeer
 
Joel Spencer – Finding Needles in Exponential Haystacks
Joel Spencer – Finding Needles in Exponential Haystacks Joel Spencer – Finding Needles in Exponential Haystacks
Joel Spencer – Finding Needles in Exponential Haystacks Yandex
 

Ähnlich wie 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
 
Joel Spencer – Finding Needles in Exponential Haystacks
Joel Spencer – Finding Needles in Exponential Haystacks Joel Spencer – Finding Needles in Exponential Haystacks
Joel Spencer – Finding Needles in Exponential Haystacks
 

Mehr von 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 FiltersAmrinder Arora
 
Binomial Heaps and Fibonacci Heaps
Binomial Heaps and Fibonacci HeapsBinomial Heaps and Fibonacci Heaps
Binomial Heaps and Fibonacci HeapsAmrinder Arora
 
R-Trees and Geospatial Data Structures
R-Trees and Geospatial Data StructuresR-Trees and Geospatial Data Structures
R-Trees and Geospatial Data StructuresAmrinder Arora
 
Tries - Tree Based Structures for Strings
Tries - Tree Based Structures for StringsTries - Tree Based Structures for Strings
Tries - Tree Based Structures for StringsAmrinder 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 StructuresAmrinder 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 BSTsAmrinder 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 BlackAmrinder Arora
 
Graphs, Trees, Paths and Their Representations
Graphs, Trees, Paths and Their RepresentationsGraphs, Trees, Paths and Their Representations
Graphs, Trees, Paths and Their RepresentationsAmrinder 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 StructuresAmrinder Arora
 
Online Algorithms - An Introduction
Online Algorithms - An IntroductionOnline Algorithms - An Introduction
Online Algorithms - An IntroductionAmrinder Arora
 

Mehr von 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
 

Kürzlich hochgeladen

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 

Kürzlich hochgeladen (20)

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 

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