際際滷

際際滷Share a Scribd company logo
Theory of Computation  Lecture 16
MARCH 25 2021
1
- PSPACE Completeness (Sipser 8.3)
- L and NL (Sipser 8.4, 8.5)
Some material from slides by M. Sipser
Announcements
 UPE Announcement
 No class on Thursday, April 1.
2
Exam 2
 Monday, March 29, 2021
 Will be given through Gradescope.
 Available 12pm  8pm NY Time. You will have 2 hours.
 Exam is open book and open notes. No collaboration. No posting questions or searching for
solutions online.
 Exam is not cumulative, but will use concepts from pre-Exam 1 (e.g., DFAs, NFAs, TMs, Regular
Expressions, Turing recognizability, decidability)
 Similar to the way we have used these topics in class and on homework problems.
3
Exam 2 Topics
 Chapter 4: Undecidability (Section 4.2)
 Chapter 5: Reducibility, Mapping Reducibility
 No questions on the Post Correspondence Problem
 Chapter 6: The Recursion Theorem (Section 6.1)
 Both the proof and applications of the theorem
 Chapter 7: The classes TIME(t(n)), NTIME(t(n)), P, NP, polynomial time reductions, NP-completeness, the
Cook-Levin Theorem
 Also refresh your memory on problems: SAT, 3SAT, CLIQUE, PATH, HAMPATH
 Chapter 8: Savitchs Theorem, PSPACE, NPSPACE, PSPACE-completeness
 No questions on Sections 8.4  8.6.
4
Review  Space Complexity Classes
 Deterministic TM
 The space complexity of M is a function :  with ()ヰ, where () is the maximum number of
tape cells M accesses on any input of length .
 基駒(()) is the set of languages that are are decidable in (()) space.
 基駒 =  基駒 
 Nondeterministic TM
 The space complexity of N is a function :  with ()ヰ, where () is the maximum number of
tape cells N accesses on a single computation path on any input of length .
 基駒(()) is the set of languages that are decidable in (()) space.
 基駒 =  基駒 
5
Review 1  Relationship Between Space and Time Complexity
 Theorem:
1) 腫(())  基駒(())
2) 基駒(())  腫(2   ) =  腫 (  )
6
Review 2  Relationship Between Space and Time Complexity
 Theorem:     基駒
7
Review Savitchs Theorem
 Theorem: For any function   :   +
where    , 基駒    基駒(2
 ).
 Proof idea: : Convert NTM  to equivalent TM , only squaring the space used.
 : On input (, , )
 1. If  = 1, check if  can be reached from  using s transition function in 0 or 1 steps. Accept if yes; otherwise,
reject.
 2. If  > 1, repeat for all configurations  that use () space.
 3. Recursively test (, , /2) and (, ,

2
)
 4. If both accept, then accept. If not, continue.
 5. Reject if havent yet accepted.
 Test if  accepts  by testing  on input $, ,  where  = number of configurations
8
9
Review 3  Relationship Between Space and Time Complexity
 As a result of Savitchs theorem: 基駒 = 基駒
 What weve learned so far:     基駒 = 基駒  乞腫
10
PSPACE Completeness
 A language  is PSPACE-complete if:
 1.   基駒
 2. For all   基駒,  ゐ 
 We will show that TQBF is PSPACE-Complete
11
Think of complete problems as the hardest
in their associated class.
NP
P
PSPACE =
NPSPACE
NP-complete
PSPACE-complete
TQBF is PSPACE-Complete
 Recall: 巨 =   is a QBF that is TRUE}
 Last lecture  we showed TQBF is in PSPACE.
 Gave a recursive algorithm that peels off one quantifier at each level of recursion.
 Each level uses (1) space; the recursion depth is  .
 Now  we will give a polynomial time reduction from arbitrary language   基駒 to 巨.
12
13
CONSTRUCTING - FIRST ATTEMPT
Constructing  - First Attempt
 Use approach like in proof of Cook-Levin theorem.
 Construct formula  that matches an accepting tableau.
0 1 2 3  ゐ
a 7 2 
 accept
14
CONSTRUCTING - SECOND ATTEMPT
Constructing  - Second Attempt
 Use an approach like in Proof of Savitchs Theorem  divide and conquer
 Encode contents of configuration cells (from tableau) as Boolean expression like in Cook-Levin theorem
 Recursively construct $,, like in Savitchs theorem
15
CONSTRUCTING - SECOND ATTEMPT
Constructing  - Third Attempt
 Use an approach like in proof of Savitchs Theorem  divide and conquer
 Encode contents of configuration cells (from tableau) as Boolean expression like in Cook-Levin theorem
 Recursively construct $,, like in Savitchs theorem
Summary  So Far
16
NP
P
PSPACE =
NPSPACE
NP-complete
PSPACE-complete
The Classes L and NL
17
Sublinear Space Complexity
 So far, we have studied space complexity bounds that are at least linear:    .
 Are there problems that can be solved in sublinear space,   <  ?
 To study sublinear space algorithms, we need a different model.
 Two-tape TM with read-only input tape and read/write work tape.
18
read-only input tape does not count towards space used
read/write work tape
count cells used here
Log Space Complexity
 We focus on algorithms with space complexity in O log 
 L is the class of languages that are decidable in logarithmic space on a deterministic TM:
 = 基駒(log )
 N is the class of languages that are decidable in logarithmic space on a nondeterministic TM:
 = 基駒(log )
19
Example in Class L
  = 01   0 }
20
Example in Class NL
 基 = , ,   is a directed graph that has a directed path from  to  }
21
Relationship to Other Complexity Classes
 Theorem:   
 Theorem: NL  SPACE log2

22

More Related Content

Similar to Mar25.pptx (20)

SMART Seminar Series: "A polynomial algorithm to solve hard np 3 cnf-sat prob...
SMART Seminar Series: "A polynomial algorithm to solve hard np 3 cnf-sat prob...SMART Seminar Series: "A polynomial algorithm to solve hard np 3 cnf-sat prob...
SMART Seminar Series: "A polynomial algorithm to solve hard np 3 cnf-sat prob...
SMART Infrastructure Facility
9. chapter 8 np hard and np complete problems
9. chapter 8   np hard and np complete problems9. chapter 8   np hard and np complete problems
9. chapter 8 np hard and np complete problems
Jyotsna Suryadevara
AA ppt9107
AA ppt9107AA ppt9107
AA ppt9107
Gitanjali Wakade
UNIT -IV DAA.pdf
UNIT  -IV DAA.pdfUNIT  -IV DAA.pdf
UNIT -IV DAA.pdf
Arivukkarasu Dhanapal
Formal language & automata theory
Formal language & automata theoryFormal language & automata theory
Formal language & automata theory
NYversity
Np completeness
Np completenessNp completeness
Np completeness
Rajendran
Computational Complexity: Complexity Classes
Computational Complexity: Complexity ClassesComputational Complexity: Complexity Classes
Computational Complexity: Complexity Classes
Antonis Antonopoulos
Reductions
ReductionsReductions
Reductions
Muhammad Alhalaby
Can recurrent neural networks warp time
Can recurrent neural networks warp timeCan recurrent neural networks warp time
Can recurrent neural networks warp time
Danbi Cho
Modeling the dynamics of molecular concentration during the diffusion procedure
Modeling the dynamics of molecular concentration during the  diffusion procedureModeling the dynamics of molecular concentration during the  diffusion procedure
Modeling the dynamics of molecular concentration during the diffusion procedure
International Journal of Engineering Inventions www.ijeijournal.com
Bt0080 fundamentals of algorithms2
Bt0080 fundamentals of algorithms2Bt0080 fundamentals of algorithms2
Bt0080 fundamentals of algorithms2
Techglyphs
Pnp
PnpPnp
Pnp
ikewu83
Engineering mathematics_Sequence and Series.pdf
Engineering mathematics_Sequence and Series.pdfEngineering mathematics_Sequence and Series.pdf
Engineering mathematics_Sequence and Series.pdf
NomthandazoNgwenya1
Basic_concepts_NP_Hard_NP_Complete.pdf
Basic_concepts_NP_Hard_NP_Complete.pdfBasic_concepts_NP_Hard_NP_Complete.pdf
Basic_concepts_NP_Hard_NP_Complete.pdf
Arivukkarasu Dhanapal
Modeling with Recurrence Relations
Modeling with Recurrence RelationsModeling with Recurrence Relations
Modeling with Recurrence Relations
Devanshu Taneja
multi threaded and distributed algorithms
multi threaded and distributed algorithms multi threaded and distributed algorithms
multi threaded and distributed algorithms
Dr Shashikant Athawale
P np &amp; np completeness
P np &amp; np completenessP np &amp; np completeness
P np &amp; np completeness
Anwal Mirza
Computer Science Exam Help
Computer Science Exam Help Computer Science Exam Help
Computer Science Exam Help
Programming Exam Help
Complexity Analysis of Recursive Function
Complexity Analysis of Recursive FunctionComplexity Analysis of Recursive Function
Complexity Analysis of Recursive Function
Meghaj Mallick
A Load-Balanced Parallelization of AKS Algorithm
A Load-Balanced Parallelization of AKS AlgorithmA Load-Balanced Parallelization of AKS Algorithm
A Load-Balanced Parallelization of AKS Algorithm
TELKOMNIKA JOURNAL
SMART Seminar Series: "A polynomial algorithm to solve hard np 3 cnf-sat prob...
SMART Seminar Series: "A polynomial algorithm to solve hard np 3 cnf-sat prob...SMART Seminar Series: "A polynomial algorithm to solve hard np 3 cnf-sat prob...
SMART Seminar Series: "A polynomial algorithm to solve hard np 3 cnf-sat prob...
SMART Infrastructure Facility
9. chapter 8 np hard and np complete problems
9. chapter 8   np hard and np complete problems9. chapter 8   np hard and np complete problems
9. chapter 8 np hard and np complete problems
Jyotsna Suryadevara
Formal language & automata theory
Formal language & automata theoryFormal language & automata theory
Formal language & automata theory
NYversity
Np completeness
Np completenessNp completeness
Np completeness
Rajendran
Computational Complexity: Complexity Classes
Computational Complexity: Complexity ClassesComputational Complexity: Complexity Classes
Computational Complexity: Complexity Classes
Antonis Antonopoulos
Can recurrent neural networks warp time
Can recurrent neural networks warp timeCan recurrent neural networks warp time
Can recurrent neural networks warp time
Danbi Cho
Bt0080 fundamentals of algorithms2
Bt0080 fundamentals of algorithms2Bt0080 fundamentals of algorithms2
Bt0080 fundamentals of algorithms2
Techglyphs
Engineering mathematics_Sequence and Series.pdf
Engineering mathematics_Sequence and Series.pdfEngineering mathematics_Sequence and Series.pdf
Engineering mathematics_Sequence and Series.pdf
NomthandazoNgwenya1
Basic_concepts_NP_Hard_NP_Complete.pdf
Basic_concepts_NP_Hard_NP_Complete.pdfBasic_concepts_NP_Hard_NP_Complete.pdf
Basic_concepts_NP_Hard_NP_Complete.pdf
Arivukkarasu Dhanapal
Modeling with Recurrence Relations
Modeling with Recurrence RelationsModeling with Recurrence Relations
Modeling with Recurrence Relations
Devanshu Taneja
multi threaded and distributed algorithms
multi threaded and distributed algorithms multi threaded and distributed algorithms
multi threaded and distributed algorithms
Dr Shashikant Athawale
P np &amp; np completeness
P np &amp; np completenessP np &amp; np completeness
P np &amp; np completeness
Anwal Mirza
Complexity Analysis of Recursive Function
Complexity Analysis of Recursive FunctionComplexity Analysis of Recursive Function
Complexity Analysis of Recursive Function
Meghaj Mallick
A Load-Balanced Parallelization of AKS Algorithm
A Load-Balanced Parallelization of AKS AlgorithmA Load-Balanced Parallelization of AKS Algorithm
A Load-Balanced Parallelization of AKS Algorithm
TELKOMNIKA JOURNAL

Recently uploaded (20)

Your brand might be pushing clients away without you knowing.
Your brand might be pushing clients away without you knowing.Your brand might be pushing clients away without you knowing.
Your brand might be pushing clients away without you knowing.
Group Buy Seo Tools
Why AI is Needed Procurement and Supply Chains
Why AI is Needed Procurement and Supply ChainsWhy AI is Needed Procurement and Supply Chains
Why AI is Needed Procurement and Supply Chains
University of Hertfordshire
Get Lifetime Access to Premium AI Models with AI IntelliKit's One-Time Purchase
Get Lifetime Access to Premium AI Models with AI IntelliKit's One-Time PurchaseGet Lifetime Access to Premium AI Models with AI IntelliKit's One-Time Purchase
Get Lifetime Access to Premium AI Models with AI IntelliKit's One-Time Purchase
SOFTTECHHUB
CCleaner Pro 6.33 Crack + Key Free Download 2025
CCleaner Pro 6.33 Crack + Key Free Download 2025CCleaner Pro 6.33 Crack + Key Free Download 2025
CCleaner Pro 6.33 Crack + Key Free Download 2025
kortez3
Runnin Digital community - Linkedin & FB
Runnin Digital community  - Linkedin & FBRunnin Digital community  - Linkedin & FB
Runnin Digital community - Linkedin & FB
Nir Makovsky
Ross Chayka: AI in Business: Quo Vadis? (UA)
Ross Chayka:  AI in Business: Quo Vadis? (UA)Ross Chayka:  AI in Business: Quo Vadis? (UA)
Ross Chayka: AI in Business: Quo Vadis? (UA)
Lviv Startup Club
Portfolio - Example Project 2025 by Gina
Portfolio - Example Project 2025 by GinaPortfolio - Example Project 2025 by Gina
Portfolio - Example Project 2025 by Gina
esouveninteriordesig
21 Best Crypto Wallet in UAE The complete 2025.pdf
21 Best Crypto Wallet in UAE  The complete 2025.pdf21 Best Crypto Wallet in UAE  The complete 2025.pdf
21 Best Crypto Wallet in UAE The complete 2025.pdf
Dubiz
Tran Quoc Bao - Best and Most Influential Healthcare Leaders in Vietnam 2024
Tran Quoc Bao - Best and Most Influential Healthcare Leaders in Vietnam 2024Tran Quoc Bao - Best and Most Influential Healthcare Leaders in Vietnam 2024
Tran Quoc Bao - Best and Most Influential Healthcare Leaders in Vietnam 2024
Ignite Capital
BUSINESS CORRESPONDENCE Unit IV - NOTES.pptx
BUSINESS CORRESPONDENCE Unit IV - NOTES.pptxBUSINESS CORRESPONDENCE Unit IV - NOTES.pptx
BUSINESS CORRESPONDENCE Unit IV - NOTES.pptx
manikandansMani2
Exploring the creativity problem- mind maps.pdf
Exploring the creativity problem- mind maps.pdfExploring the creativity problem- mind maps.pdf
Exploring the creativity problem- mind maps.pdf
P&CO
Quality Certification and Accreditation Ecosystem 1.pptx
Quality Certification and Accreditation Ecosystem 1.pptxQuality Certification and Accreditation Ecosystem 1.pptx
Quality Certification and Accreditation Ecosystem 1.pptx
AbbasKeramati2
SWOT Analysis: Boutique Consulting Firms in 2025
 SWOT Analysis: Boutique Consulting Firms in 2025  SWOT Analysis: Boutique Consulting Firms in 2025
SWOT Analysis: Boutique Consulting Firms in 2025
Alexander Simon
Rostyslav Chayka: 丕仗舒于仍仆仆 从仂仄舒仆亟仂 亰舒 亟仂仗仂仄仂亞仂 AI (UA)
Rostyslav Chayka: 丕仗舒于仍仆仆 从仂仄舒仆亟仂 亰舒 亟仂仗仂仄仂亞仂 AI (UA)Rostyslav Chayka: 丕仗舒于仍仆仆 从仂仄舒仆亟仂 亰舒 亟仂仗仂仄仂亞仂 AI (UA)
Rostyslav Chayka: 丕仗舒于仍仆仆 从仂仄舒仆亟仂 亰舒 亟仂仗仂仄仂亞仂 AI (UA)
Lviv Startup Club
Jatin Mansata - A Leader In Finance And Philanthropy
Jatin Mansata - A Leader In Finance And PhilanthropyJatin Mansata - A Leader In Finance And Philanthropy
Jatin Mansata - A Leader In Finance And Philanthropy
Jatin Mansata
The Ultimate Startup Guide for First-Time Entrepreneurs by Experienced Entrep...
The Ultimate Startup Guide for First-Time Entrepreneurs by Experienced Entrep...The Ultimate Startup Guide for First-Time Entrepreneurs by Experienced Entrep...
The Ultimate Startup Guide for First-Time Entrepreneurs by Experienced Entrep...
Yasmin Bashirova
BusinessGPT - Privacy first AI Platform.pptx
BusinessGPT  - Privacy first AI Platform.pptxBusinessGPT  - Privacy first AI Platform.pptx
BusinessGPT - Privacy first AI Platform.pptx
AGATSoftware
Buy Verified Revolut Account: Secure & USA-Approved!
Buy Verified Revolut Account: Secure & USA-Approved!Buy Verified Revolut Account: Secure & USA-Approved!
Buy Verified Revolut Account: Secure & USA-Approved!
pvaexpress
Top Social Media Marketing Trends in 2025
Top Social Media Marketing Trends in 2025Top Social Media Marketing Trends in 2025
Top Social Media Marketing Trends in 2025
bulbulkanwar7070
Will-Skill Matrix PowerPoint Template and Guide
Will-Skill Matrix PowerPoint Template and GuideWill-Skill Matrix PowerPoint Template and Guide
Will-Skill Matrix PowerPoint Template and Guide
Aurelien Domont, MBA
Your brand might be pushing clients away without you knowing.
Your brand might be pushing clients away without you knowing.Your brand might be pushing clients away without you knowing.
Your brand might be pushing clients away without you knowing.
Group Buy Seo Tools
Why AI is Needed Procurement and Supply Chains
Why AI is Needed Procurement and Supply ChainsWhy AI is Needed Procurement and Supply Chains
Why AI is Needed Procurement and Supply Chains
University of Hertfordshire
Get Lifetime Access to Premium AI Models with AI IntelliKit's One-Time Purchase
Get Lifetime Access to Premium AI Models with AI IntelliKit's One-Time PurchaseGet Lifetime Access to Premium AI Models with AI IntelliKit's One-Time Purchase
Get Lifetime Access to Premium AI Models with AI IntelliKit's One-Time Purchase
SOFTTECHHUB
CCleaner Pro 6.33 Crack + Key Free Download 2025
CCleaner Pro 6.33 Crack + Key Free Download 2025CCleaner Pro 6.33 Crack + Key Free Download 2025
CCleaner Pro 6.33 Crack + Key Free Download 2025
kortez3
Runnin Digital community - Linkedin & FB
Runnin Digital community  - Linkedin & FBRunnin Digital community  - Linkedin & FB
Runnin Digital community - Linkedin & FB
Nir Makovsky
Ross Chayka: AI in Business: Quo Vadis? (UA)
Ross Chayka:  AI in Business: Quo Vadis? (UA)Ross Chayka:  AI in Business: Quo Vadis? (UA)
Ross Chayka: AI in Business: Quo Vadis? (UA)
Lviv Startup Club
Portfolio - Example Project 2025 by Gina
Portfolio - Example Project 2025 by GinaPortfolio - Example Project 2025 by Gina
Portfolio - Example Project 2025 by Gina
esouveninteriordesig
21 Best Crypto Wallet in UAE The complete 2025.pdf
21 Best Crypto Wallet in UAE  The complete 2025.pdf21 Best Crypto Wallet in UAE  The complete 2025.pdf
21 Best Crypto Wallet in UAE The complete 2025.pdf
Dubiz
Tran Quoc Bao - Best and Most Influential Healthcare Leaders in Vietnam 2024
Tran Quoc Bao - Best and Most Influential Healthcare Leaders in Vietnam 2024Tran Quoc Bao - Best and Most Influential Healthcare Leaders in Vietnam 2024
Tran Quoc Bao - Best and Most Influential Healthcare Leaders in Vietnam 2024
Ignite Capital
BUSINESS CORRESPONDENCE Unit IV - NOTES.pptx
BUSINESS CORRESPONDENCE Unit IV - NOTES.pptxBUSINESS CORRESPONDENCE Unit IV - NOTES.pptx
BUSINESS CORRESPONDENCE Unit IV - NOTES.pptx
manikandansMani2
Exploring the creativity problem- mind maps.pdf
Exploring the creativity problem- mind maps.pdfExploring the creativity problem- mind maps.pdf
Exploring the creativity problem- mind maps.pdf
P&CO
Quality Certification and Accreditation Ecosystem 1.pptx
Quality Certification and Accreditation Ecosystem 1.pptxQuality Certification and Accreditation Ecosystem 1.pptx
Quality Certification and Accreditation Ecosystem 1.pptx
AbbasKeramati2
SWOT Analysis: Boutique Consulting Firms in 2025
 SWOT Analysis: Boutique Consulting Firms in 2025  SWOT Analysis: Boutique Consulting Firms in 2025
SWOT Analysis: Boutique Consulting Firms in 2025
Alexander Simon
Rostyslav Chayka: 丕仗舒于仍仆仆 从仂仄舒仆亟仂 亰舒 亟仂仗仂仄仂亞仂 AI (UA)
Rostyslav Chayka: 丕仗舒于仍仆仆 从仂仄舒仆亟仂 亰舒 亟仂仗仂仄仂亞仂 AI (UA)Rostyslav Chayka: 丕仗舒于仍仆仆 从仂仄舒仆亟仂 亰舒 亟仂仗仂仄仂亞仂 AI (UA)
Rostyslav Chayka: 丕仗舒于仍仆仆 从仂仄舒仆亟仂 亰舒 亟仂仗仂仄仂亞仂 AI (UA)
Lviv Startup Club
Jatin Mansata - A Leader In Finance And Philanthropy
Jatin Mansata - A Leader In Finance And PhilanthropyJatin Mansata - A Leader In Finance And Philanthropy
Jatin Mansata - A Leader In Finance And Philanthropy
Jatin Mansata
The Ultimate Startup Guide for First-Time Entrepreneurs by Experienced Entrep...
The Ultimate Startup Guide for First-Time Entrepreneurs by Experienced Entrep...The Ultimate Startup Guide for First-Time Entrepreneurs by Experienced Entrep...
The Ultimate Startup Guide for First-Time Entrepreneurs by Experienced Entrep...
Yasmin Bashirova
BusinessGPT - Privacy first AI Platform.pptx
BusinessGPT  - Privacy first AI Platform.pptxBusinessGPT  - Privacy first AI Platform.pptx
BusinessGPT - Privacy first AI Platform.pptx
AGATSoftware
Buy Verified Revolut Account: Secure & USA-Approved!
Buy Verified Revolut Account: Secure & USA-Approved!Buy Verified Revolut Account: Secure & USA-Approved!
Buy Verified Revolut Account: Secure & USA-Approved!
pvaexpress
Top Social Media Marketing Trends in 2025
Top Social Media Marketing Trends in 2025Top Social Media Marketing Trends in 2025
Top Social Media Marketing Trends in 2025
bulbulkanwar7070
Will-Skill Matrix PowerPoint Template and Guide
Will-Skill Matrix PowerPoint Template and GuideWill-Skill Matrix PowerPoint Template and Guide
Will-Skill Matrix PowerPoint Template and Guide
Aurelien Domont, MBA

Mar25.pptx

  • 1. Theory of Computation Lecture 16 MARCH 25 2021 1 - PSPACE Completeness (Sipser 8.3) - L and NL (Sipser 8.4, 8.5) Some material from slides by M. Sipser
  • 2. Announcements UPE Announcement No class on Thursday, April 1. 2
  • 3. Exam 2 Monday, March 29, 2021 Will be given through Gradescope. Available 12pm 8pm NY Time. You will have 2 hours. Exam is open book and open notes. No collaboration. No posting questions or searching for solutions online. Exam is not cumulative, but will use concepts from pre-Exam 1 (e.g., DFAs, NFAs, TMs, Regular Expressions, Turing recognizability, decidability) Similar to the way we have used these topics in class and on homework problems. 3
  • 4. Exam 2 Topics Chapter 4: Undecidability (Section 4.2) Chapter 5: Reducibility, Mapping Reducibility No questions on the Post Correspondence Problem Chapter 6: The Recursion Theorem (Section 6.1) Both the proof and applications of the theorem Chapter 7: The classes TIME(t(n)), NTIME(t(n)), P, NP, polynomial time reductions, NP-completeness, the Cook-Levin Theorem Also refresh your memory on problems: SAT, 3SAT, CLIQUE, PATH, HAMPATH Chapter 8: Savitchs Theorem, PSPACE, NPSPACE, PSPACE-completeness No questions on Sections 8.4 8.6. 4
  • 5. Review Space Complexity Classes Deterministic TM The space complexity of M is a function : with ()ヰ, where () is the maximum number of tape cells M accesses on any input of length . 基駒(()) is the set of languages that are are decidable in (()) space. 基駒 = 基駒 Nondeterministic TM The space complexity of N is a function : with ()ヰ, where () is the maximum number of tape cells N accesses on a single computation path on any input of length . 基駒(()) is the set of languages that are decidable in (()) space. 基駒 = 基駒 5
  • 6. Review 1 Relationship Between Space and Time Complexity Theorem: 1) 腫(()) 基駒(()) 2) 基駒(()) 腫(2 ) = 腫 ( ) 6
  • 7. Review 2 Relationship Between Space and Time Complexity Theorem: 基駒 7
  • 8. Review Savitchs Theorem Theorem: For any function : + where , 基駒 基駒(2 ). Proof idea: : Convert NTM to equivalent TM , only squaring the space used. : On input (, , ) 1. If = 1, check if can be reached from using s transition function in 0 or 1 steps. Accept if yes; otherwise, reject. 2. If > 1, repeat for all configurations that use () space. 3. Recursively test (, , /2) and (, , 2 ) 4. If both accept, then accept. If not, continue. 5. Reject if havent yet accepted. Test if accepts by testing on input $, , where = number of configurations 8
  • 9. 9
  • 10. Review 3 Relationship Between Space and Time Complexity As a result of Savitchs theorem: 基駒 = 基駒 What weve learned so far: 基駒 = 基駒 乞腫 10
  • 11. PSPACE Completeness A language is PSPACE-complete if: 1. 基駒 2. For all 基駒, ゐ We will show that TQBF is PSPACE-Complete 11 Think of complete problems as the hardest in their associated class. NP P PSPACE = NPSPACE NP-complete PSPACE-complete
  • 12. TQBF is PSPACE-Complete Recall: 巨 = is a QBF that is TRUE} Last lecture we showed TQBF is in PSPACE. Gave a recursive algorithm that peels off one quantifier at each level of recursion. Each level uses (1) space; the recursion depth is . Now we will give a polynomial time reduction from arbitrary language 基駒 to 巨. 12
  • 13. 13 CONSTRUCTING - FIRST ATTEMPT Constructing - First Attempt Use approach like in proof of Cook-Levin theorem. Construct formula that matches an accepting tableau. 0 1 2 3 ゐ a 7 2 accept
  • 14. 14 CONSTRUCTING - SECOND ATTEMPT Constructing - Second Attempt Use an approach like in Proof of Savitchs Theorem divide and conquer Encode contents of configuration cells (from tableau) as Boolean expression like in Cook-Levin theorem Recursively construct $,, like in Savitchs theorem
  • 15. 15 CONSTRUCTING - SECOND ATTEMPT Constructing - Third Attempt Use an approach like in proof of Savitchs Theorem divide and conquer Encode contents of configuration cells (from tableau) as Boolean expression like in Cook-Levin theorem Recursively construct $,, like in Savitchs theorem
  • 16. Summary So Far 16 NP P PSPACE = NPSPACE NP-complete PSPACE-complete
  • 17. The Classes L and NL 17
  • 18. Sublinear Space Complexity So far, we have studied space complexity bounds that are at least linear: . Are there problems that can be solved in sublinear space, < ? To study sublinear space algorithms, we need a different model. Two-tape TM with read-only input tape and read/write work tape. 18 read-only input tape does not count towards space used read/write work tape count cells used here
  • 19. Log Space Complexity We focus on algorithms with space complexity in O log L is the class of languages that are decidable in logarithmic space on a deterministic TM: = 基駒(log ) N is the class of languages that are decidable in logarithmic space on a nondeterministic TM: = 基駒(log ) 19
  • 20. Example in Class L = 01 0 } 20
  • 21. Example in Class NL 基 = , , is a directed graph that has a directed path from to } 21
  • 22. Relationship to Other Complexity Classes Theorem: Theorem: NL SPACE log2 22