CPSC 506: Complexity of Computa5on

Similar documents
PSPACE, NPSPACE, L, NL, Savitch's Theorem. More new problems that are representa=ve of space bounded complexity classes

CSE 105 THEORY OF COMPUTATION

Lecture 23: Rice Theorem and Turing machine behavior properties 21 April 2009

Computability and Complexity

CSCE 551: Chin-Tser Huang. University of South Carolina

CS154, Lecture 17: conp, Oracles again, Space Complexity

Homework Assignment 6 Answers

Mapping Reducibility. Human-aware Robotics. 2017/11/16 Chapter 5.3 in Sipser Ø Announcement:

CS151 Complexity Theory. Lecture 1 April 3, 2017

CS20a: Turing Machines (Oct 29, 2002)

NP-Completeness. A language B is NP-complete iff B NP. This property means B is NP hard

Lecture 16: Time Complexity and P vs NP

6.045: Automata, Computability, and Complexity Or, Great Ideas in Theoretical Computer Science Spring, Class 8 Nancy Lynch

CSCI 1010 Models of Computa3on. Lecture 11 Proving Languages NP-Complete

Lecture 17: Cook-Levin Theorem, NP-Complete Problems

CSE 105 THEORY OF COMPUTATION

CpSc 421 Homework 9 Solution

Decidability and Undecidability

Lecture 12: Mapping Reductions

Automata Theory CS S-FR2 Final Review

Undecidability and Rice s Theorem. Lecture 26, December 3 CS 374, Fall 2015

Complexity of domain-independent planning. José Luis Ambite

On the Computational Hardness of Graph Coloring

CS5371 Theory of Computation. Lecture 12: Computability III (Decidable Languages relating to DFA, NFA, and CFG)

Automata & languages. A primer on the Theory of Computation. Laurent Vanbever. ETH Zürich (D-ITET) October,

CS 301. Lecture 18 Decidable languages. Stephen Checkoway. April 2, 2018

6.045: Automata, Computability, and Complexity (GITCS) Class 15 Nancy Lynch

Complexity Theory Part I

an efficient procedure for the decision problem. We illustrate this phenomenon for the Satisfiability problem.

Lecture 3 (Notes) 1. The book Computational Complexity: A Modern Approach by Sanjeev Arora and Boaz Barak;

Decision Problems with TM s. Lecture 31: Halting Problem. Universe of discourse. Semi-decidable. Look at following sets: CSCI 81 Spring, 2012

CS154, Lecture 10: Rice s Theorem, Oracle Machines

6-1 Computational Complexity

Finish K-Complexity, Start Time Complexity

The Immerman-Szelepcesnyi Theorem and a hard problem for EXPSPACE

Computability Theory. CS215, Lecture 6,

CSE355 SUMMER 2018 LECTURES TURING MACHINES AND (UN)DECIDABILITY

Review of Complexity Theory

Lecture 1: Course Overview and Turing machine complexity

Homework. Turing Machines. Announcements. Plan for today. Now our picture looks like. Languages

Intro to Theory of Computation

CS154 Final Examination

More Turing Machines. CS154 Chris Pollett Mar 15, 2006.

CSE 105 Theory of Computation

CSE 105 THEORY OF COMPUTATION

Introduction to Turing Machines

Friday Four Square! Today at 4:15PM, Outside Gates

Announcements. Problem Set 7 graded; will be returned at end of lecture. Unclaimed problem sets and midterms moved!

3 Probabilistic Turing Machines

Turing Machines Part III

Quantum Computing Lecture 8. Quantum Automata and Complexity

Acknowledgments 2. Part 0: Overview 17

Exam Computability and Complexity

Week 3: Reductions and Completeness

conp, Oracles, Space Complexity

The purpose here is to classify computational problems according to their complexity. For that purpose we need first to agree on a computational

17.1 The Halting Problem

CS154, Lecture 13: P vs NP

The Class NP. NP is the problems that can be solved in polynomial time by a nondeterministic machine.

Advanced topic: Space complexity

CSE 105 THEORY OF COMPUTATION

Complexity (Pre Lecture)

Turing Machines Part II

ECS 120 Lesson 20 The Post Correspondence Problem

CS5371 Theory of Computation. Lecture 14: Computability V (Prove by Reduction)

Turing Machines and Time Complexity

Chap. 4,5 Review. Algorithms created in proofs from prior chapters

P = k T IME(n k ) Now, do all decidable languages belong to P? Let s consider a couple of languages:

Definition: conp = { L L NP } What does a conp computation look like?

1 Acceptance, Rejection, and I/O for Turing Machines

Midterm II : Formal Languages, Automata, and Computability

CSCI FOUNDATIONS OF COMPUTER SCIENCE

TURING MAHINES

Theory of Computation

Lecture 7: Polynomial time hierarchy

CSE 105 THEORY OF COMPUTATION

1 Showing Recognizability

Compu&ng with Chemical Reac&on Networks. Nikhil Gopalkrishnan

6.045J/18.400J: Automata, Computability and Complexity. Quiz 2. March 30, Please write your name in the upper corner of each page.

CS154 Final Examination

V Honors Theory of Computation

Review of unsolvability

6.5.3 An NP-complete domino game

Computability, Undeciability and the Halting Problem

COMP/MATH 300 Topics for Spring 2017 June 5, Review and Regular Languages

Part I: Definitions and Properties

Computational Models Lecture 8 1

CpSc 421 Final Exam December 6, 2008

Reducability. Sipser, pages

Lecture 21: Space Complexity (The Final Exam Frontier?)

Turing Machine Recap

CS5371 Theory of Computation. Lecture 10: Computability Theory I (Turing Machine)

Complexity Theory Part II

452 FINAL- VERSION E Do not open this exam until you are told. Read these instructions:

Announcements. Final exam review session tomorrow in Gates 104 from 2:15PM 4:15PM Final Friday Four Square of the quarter!

CS154, Lecture 13: P vs NP

Intro to Theory of Computation

CSE 105 Theory of Computation

Announcements. Using a 72-hour extension, due Monday at 11:30AM.

Space Complexity. The space complexity of a program is how much memory it uses.

Transcription:

CPSC 506: Complexity of Computa5on On the founda5ons of our field, connec5ons between Science and Compu5ng, where our field might be headed in the future CPSC 506 MW 9-10:30, DMP 101 cs.ubc.ca/~condon/cpsc506/

Outline for today Course topics Course work Introduc5ons Website, logis5cs Course prerequisites Review of prerequisites: examples, exercises CPSC 506 MW 9-10:30, DMP 101 cs.ubc.ca/~condon/cpsc506/

CPSC 506: Course topics Gauging the hardness of a problem: 5me and space complexity, provably hard problems. How nondeterminism can help our thinking. The power of randomness: How does it help us compute more efficiently? The power of interac7on: Proofs that use interac5on and randomness. Approximability and APX-hardness: How to determine whether or not a problem has a good approxima5on algorithm. Quantum complexity theory: Novel ways of communica5ng and compu5ng. Chemical reac7on systems: Emerging theories of compu5ng with molecules; energy as a computa5onal resource. CPSC 506 MW 9-10:30, DMP 101 cs.ubc.ca/~condon/cpsc506/

CPSC 506: Course work Five homework assignments: 50% Student reading project and presenta5ons: 20% (more on this soon ) Final exam: 30% Lots of problem-solving during class Lots of room for individualized learning CPSC 506 MW 9-10:30, DMP 101 cs.ubc.ca/~condon/cpsc506/

Introduc5ons Your name, where you are in the program, what research areas you re interested in, why you want to take the course, what you hope to get out of it CPSC 506 MW 9-10:30, DMP 101 cs.ubc.ca/~condon/cpsc506/

More on prerequisites I'll assume familiarity with (or willingness to quickly gain familiarity with) Turing machine, 5me bounded Turing machine, universal Turing machine, decidable languages Illustra5on from: The Nature of Computa5on, Chris Moore

More on prerequisites I'll assume familiarity with (or willingness to quickly gain familiarity with) Turing machine, 5me bounded Turing machine, universal Turing machine, decidable languages, undecidable languages The classes P and NP, what it means for a problem to be NPcomplete, NP-hard. How polynomial-5me reduc5ons (L p L ) are used to establish NP-completeness results. How to derive simple reduc5ons. What is a nondeterminis5c Turing machine (NTM), what it means for a NTM to accept a language, and the defini5on of NP in terms of NTMs. CPSC 506 MW 9-10:30, DMP 101 cs.ubc.ca/~condon/cpsc506/

Review: exercises, examples Can you give examples of problems that are in P, in NP, NP-complete, decidable, undecidable? State whether true, false, or open ques5on: SAT is in P If language A is in P and language B is in P then A p B If A is in P and B is in NP then A p B If A is in P than A is NP-complete CPSC 506 MW 9-10:30, DMP 101 cs.ubc.ca/~condon/cpsc506/

Wang 5ling Illustra5on from: The Nature of Computa5on, Chris Moore

Wang 5ling The Wang Tiling problem: Given a set T of Wang 5les Can we 5le the infinite plane with 5les from T? What s the simplest algorithm you can think of to solve (or aiempt to solve) this problem? Where would you guess that this problem lies in our Venn diagram of language classes?

Wang 5ling The Wang Tiling problem: Given a set T of Wang 5les Can we 5le the infinite plane with 5les from T? Goal: Show Wang Tiling is undecidable, via a reduc5on from the Blank Tape Hal5ng Problem (or its complement)

Wang 5ling: simula5ng a TM What 5les would be useful for Turing machine simula5on?

Wang 5ling: simula5ng a TM Illustra5on from: The Nature of Computa5on, Chris Moore

Wang 5ling: simula5ng a TM Problem: There s no way to require that a 5ling contain a par5cular 5le (e.g. tape head on blank cell). Exercise: Suppose that any set T of Wang 5les, either allows a periodic* 5ling of the plane, or cannot 5le the plane at all. Show that then TILING would be decidable. * i.e., has an infinitely repeatable square of 5les, or period

Wang 5ling: simula5ng a TM Exercise: Suppose that any set T of Wang 5les, either allows a periodic 5ling of the plane, or cannot 5le the plane at all. Show that then Wang Tiling would be decidable. Idea: Find all 5lings of increasingly larger squares un5l either you find a period: output yes you find square with no 5ling: and output no Either a periodicity proof or a counterexample will eventually present itself!

Wang 5ling: simula5ng a TM Idea: To force a 5ling to contain an ini5al TM configura5on, leverage Robson s aperiodic 5les

Wang 5ling: simula5ng a TM Expand and annotate Robson s 5les so that they encode tape symbols, or tape symbols and state The top row of each black k x k square can encode an ini5al TM configura5on on empty input (up to tape posi5on k)

Wang 5ling: simula5ng a TM This suggests that a k x k square could encode k steps of the TM computa5on The 5ling covers an infinite plane if and only if the TM does not halt

Wang 5ling: simula5ng a TM Problem: the black k x k square contains smaller black k/4 x k/4 black squares, each doing their own (smaller) TM simula5on... we need to eliminate interference

Wang 5ling: Lessons Algorithm design: ac5vely looking both for a yes proof and no proof is effec5ve (as in decidability of periodic 5ling) Simple ideas are important: the germ of the undecidability proof is quite simple: using 5le colours to encode tape cells and state Stumbling blocks lead to interes5ng new ques5ons, e.g. aperiodic 5lings

An aperiodic 5ling built from DNA DNA 5les self-assemble according to 5le colour rules Atomic force microscopy image Rothemund PWK, Papadakis N, Winfree E (2004) Algorithmic Self-Assembly of DNA Sierpinski Triangles. PLoS Biol 2(12): e424

Class summary Undecidable Wang Tiling - via reduc5on from Halt - inspira5on for DNA algorithmic selfassembly NP P Decidable NPC

Next Class We ll look at new complexity classes: co-np, EXP, NEXP, and some interes5ng problems in these classes We ll prove a 5me hierarchy theorem: more 5me means more language recogni5on power! Reading: Arora-Barak 2.6, 3.1