Quantum and Non-deterministic computers facing NP-completeness



Similar documents
Introduction to Logic in Computer Science: Autumn 2006

Complexity Theory. IE 661: Scheduling Theory Fall 2003 Satyaki Ghosh Dastidar

NP-complete? NP-hard? Some Foundations of Complexity. Prof. Sven Hartmann Clausthal University of Technology Department of Informatics

Page 1. CSCE 310J Data Structures & Algorithms. CSCE 310J Data Structures & Algorithms. P, NP, and NP-Complete. Polynomial-Time Algorithms

Tutorial 8. NP-Complete Problems

NP-Completeness and Cook s Theorem

1. Nondeterministically guess a solution (called a certificate) 2. Check whether the solution solves the problem (called verification)

Guessing Game: NP-Complete?

OHJ-2306 Introduction to Theoretical Computer Science, Fall

CAD Algorithms. P and NP

SIMS 255 Foundations of Software Design. Complexity and NP-completeness

Chapter 1. NP Completeness I Introduction. By Sariel Har-Peled, December 30, Version: 1.05

Computational complexity theory

Complexity Classes P and NP

Theoretical Computer Science (Bridging Course) Complexity

The Classes P and NP

Diagonalization. Ahto Buldas. Lecture 3 of Complexity Theory October 8, Slides based on S.Aurora, B.Barak. Complexity Theory: A Modern Approach.

Universality in the theory of algorithms and computer science

Lecture 7: NP-Complete Problems

Introduction to Automata Theory. Reading: Chapter 1

NP-Completeness. CptS 223 Advanced Data Structures. Larry Holder School of Electrical Engineering and Computer Science Washington State University

Outline. NP-completeness. When is a problem easy? When is a problem hard? Today. Euler Circuits

CSC 373: Algorithm Design and Analysis Lecture 16

The Classes P and NP. mohamed@elwakil.net

A Working Knowledge of Computational Complexity for an Optimizer

Computer Algorithms. NP-Complete Problems. CISC 4080 Yanjun Li

Notes on NP Completeness

Tetris is Hard: An Introduction to P vs NP

Introduction to computer science

3515ICT Theory of Computation Turing Machines

Quantum Computability and Complexity and the Limits of Quantum Computation

On the Relationship between Classes P and NP

Algebraic Computation Models. Algebraic Computation Models

Introduction to Algorithms. Part 3: P, NP Hard Problems

NP-Completeness I. Lecture Overview Introduction: Reduction and Expressiveness

P versus NP, and More

Reminder: Complexity (1) Parallel Complexity Theory. Reminder: Complexity (2) Complexity-new

Quantum Computing Lecture 7. Quantum Factoring. Anuj Dawar

3. Computational Complexity.

Computational Complexity: A Modern Approach. Draft of a book: Dated January 2007 Comments welcome!

JUST-IN-TIME SCHEDULING WITH PERIODIC TIME SLOTS. Received December May 12, 2003; revised February 5, 2004

Faster deterministic integer factorisation

Chapter. NP-Completeness. Contents

Solving NP-complete problems in the tile assembly model

Classification - Examples

Notes on Complexity Theory Last updated: August, Lecture 1

Welcome to... Problem Analysis and Complexity Theory , 3 VU

CS154. Turing Machines. Turing Machine. Turing Machines versus DFAs FINITE STATE CONTROL AI N P U T INFINITE TAPE. read write move.

Introduction to NP-Completeness Written and copyright c by Jie Wang 1

MATHEMATICS: CONCEPTS, AND FOUNDATIONS Vol. III - Logic and Computer Science - Phokion G. Kolaitis

Library (versus Language) Based Parallelism in Factoring: Experiments in MPI. Dr. Michael Alexander Dr. Sonja Sewera.

Quantum Monte Carlo and the negative sign problem

Course Manual Automata & Complexity 2015

Hilberts Entscheidungsproblem, the 10th Problem and Turing Machines

Factoring & Primality

Complexity Theory. Jörg Kreiker. Summer term Chair for Theoretical Computer Science Prof. Esparza TU München

SOLVING NARROW-INTERVAL LINEAR EQUATION SYSTEMS IS NP-HARD PATRICK THOR KAHL. Department of Computer Science

How to Prove a Theorem So No One Else Can Claim It

Factoring Algorithms Based on NMR Quantum

Factoring by Quantum Computers

Fixed-Point Logics and Computation

Turing Machines: An Introduction

Boulder Dash is NP hard

Notes on Complexity Theory Last updated: August, Lecture 1

CPSC 211 Data Structures & Implementations (c) Texas A&M University [ 313]

Quantum Computing. Robert Sizemore

Study of algorithms for factoring integers and computing discrete logarithms

Lecture 19: Introduction to NP-Completeness Steven Skiena. Department of Computer Science State University of New York Stony Brook, NY

5.1 Bipartite Matching

NP-completeness and the real world. NP completeness. NP-completeness and the real world (2) NP-completeness and the real world

Lecture 1: Course overview, circuits, and formulas

Molecular Computing Athabasca Hall Sept. 30, 2013

How To Solve An Npa-Complete Problems With Quantum Computing And Chaotic Dynamics

The Union-Find Problem Kruskal s algorithm for finding an MST presented us with a problem in data-structure design. As we looked at each edge,

Chapter 7 Uncomputability

Discuss the size of the instance for the minimum spanning tree problem.

Load Balancing and Rebalancing on Web Based Environment. Yu Zhang

Scheduling Single Machine Scheduling. Tim Nieberg

2 Elements of classical computer science

Generating models of a matched formula with a polynomial delay

How To Solve A Minimum Set Covering Problem (Mcp)

Lecture 1: Oracle Turing Machines

Why? A central concept in Computer Science. Algorithms are ubiquitous.

Scheduling Home Health Care with Separating Benders Cuts in Decision Diagrams

On the Unique Games Conjecture

Offline 1-Minesweeper is NP-complete

Single machine models: Maximum Lateness -12- Approximation ratio for EDD for problem 1 r j,d j < 0 L max. structure of a schedule Q...

Single machine parallel batch scheduling with unbounded capacity

A Fast Algorithm For Finding Hamilton Cycles

The van Hoeij Algorithm for Factoring Polynomials

Transcription:

Quantum and Non-deterministic computers facing NP-completeness Thibaut University of Vienna Dept. of Business Administration Austria Vienna January 29th, 2013 Some pictures come from Wikipedia

Introduction Slide 2 / 21

Introduction Contents Introduction Complexity of some problems for some computers Do NP-hard problems become polynomial on a quantum computer? Basics of Complexity Theory Deterministic and Non-deterministic Turing machines Definition of class NP Definition of NP-completeness for 3 kinds of computers How a Deterministic computer solves SAT How a Quantum computer solves SAT How a DNA computer solves SAT Slide 3 / 21

Introduction Overview Complexity of some problems for some computers Class Deterministic Quantum Non deterministic Search P O(n) 1 O( n) 2 O(log n) 3 Factorization N P O(n 1.7 3 n ) 4 O(n 3 ) 5 O(n) 3 SAT N P-C O(2 n ) 1 O( 2 n ) 2 O(n) 6 1. Enumeration 2. Grover s algorithm 3. Recursively search both half-parts in parallel 4. General Number Field Sieve algorithm 5. Shor s algorithm 6. Recursive enumeration of variables for both values in parallel Slide 4 / 21

Introduction Quantum power Gain for factorization Factorizing a huge integer is exponential on classical computers, cubic on quantum computers. But this problem is specific : it can be solved by means of quantum Fourier transform, which is very fast ; it has never been proven to be NP-hard. Gain for NP-hard problems? No polynomial algorithm has been found for any NP-complete problem : SAT, although simple, remains intractable : O( 2 n ) = O(2 n/2 ) All NP-complete problems might remain intractable Slide 5 / 21

Basics of Complexity Theory Slide 6 / 21

Complexity Theory Definitions The Turing Machine Slide 7 / 21

Complexity Theory Definitions Church-Turing thesis (20th century) Roughly, a Turing Machine can compute every problem for which we know a solving way ; equivalently, every algorithm can be translated into a TM transition table. Slide 8 / 21

Complexity Theory Definitions The Deterministic Turing Machine Deterministic means both it cannot guess the right choice, it is in one state at once. So the solution tree of Hamiltonian Cycle is explored branch by branch : Slide 9 / 21

Complexity Theory Definitions The Non-deterministic Turing Machine Non-deterministic means either it can be in several states at once, or it can guess the right choice. So, at a given level, either for every node, in parallel, it deploys its branches ; from the correct node, it chooses the next correct node. Slide 10 / 21

Complexity Theory Theorem Cook-Levin theorem This theorem says, equivalently every problem in NP can be reduced to SAT in polynomial time, SAT is NP-complete. Decision problems. Whenever the name evokes an optimization problem, its decision variant is considered. Slide 11 / 21

Complexity Theory Theorem Cook-Levin theorem : proof sketch 1. SAT is in NP (means Polynomial on a Non-deterministic machine). 2. Given the transition table of any problem of size n in NP, the corresponding behavior of the Turing Machine can be translated into a SAT problem whose the size is polynomial with respect to n, 3. so SAT can solve any problem of NP. Slide 11 / 21

Complexity Theory NP-completeness Other NP-complete problems Many problems are also NP-complete, because they can be used to solve SAT (SAT is reducible to them in polynomial time). Slide 12 / 21

Complexity Theory NP-completeness Other NP-complete problems Many problems are also NP-complete, because they can be used to solve SAT (SAT is reducible to them in polynomial time). Slide 12 / 21

for 3 kinds of computers Slide 13 / 21

On deterministic computers Exploration The worst case of the best algorithms is equivalent to trying both values for all variables Slide 14 / 21

On quantum computers Implementing the instance First, build the quantum circuit of the instance, it takes (x 1,..., x n ) and gives f(x) = 1 iff all clauses are satisfied Slide 15 / 21

On quantum computers Making the solution emerge Use the Grover s search algorithm with f(xα) as certifier. α x 0 1 2 x {0... 2 n 1} xα 1 2 n 1 x α x 2 n x=0 for k = 1 to 2 n do 2 n 1 xα ( 1) f(xα) x α x xα x=0 2 n 1 x (2α α x ) x=0 Slide 16 / 21

On quantum computers Making the solution emerge Repeat the Grover s iteration 2 n times : Slide 17 / 21

On quantum computers Making the solution emerge Repeat the Grover s iteration 2 n times : Slide 17 / 21

On quantum computers Making the solution emerge Repeat the Grover s iteration 2 n times : Slide 17 / 21

On quantum computers Making the solution emerge Repeat the Grover s iteration 2 n times : Slide 17 / 21

On DNA computers Biochemistry basics : DNA, Genes Slide 18 / 21

On DNA computers Biochemistry basics : Separation, Hybridization Slide 18 / 21

On DNA computers Biochemistry basics : Electrophoresis A voltage makes molecules move The lightest ones go far Slide 18 / 21

On DNA computers Encoding Any 15-bases sequence is a variable The sequence is unique for each variable and value Braich, Chelyapov, Johnson, Rothemund, Adleman Solution of a 20-Variable 3-SAT Problem on a DNA Computer Science Vol. 296 no. 5567 (2002) Slide 19 / 21

On DNA computers Generation of all solutions O(2 n ) solutions are generated in n steps : Slide 19 / 21

On DNA computers Extraction of feasible solutions Solutions are poured on the left layer Base-complements of Clause 1 variables are stuck on the right Slide 20 / 21

On DNA computers Extraction of feasible solutions Solutions move to the right The right layer catches DNA matching at least one variable Slide 20 / 21

On DNA computers Extraction of feasible solutions The left layer is replaced by the right layer Base-complements of Clause 2 variables are stuck on the right Slide 20 / 21

On DNA computers Extraction of feasible solutions Solutions move to the right The right layer catches DNA matching at least one variable Slide 20 / 21

On DNA computers Extraction of feasible solutions The left layer is replaced by the right layer Base-complements of Clause 3 variables are stuck on the right Slide 20 / 21

On DNA computers Extraction of feasible solutions Solutions move to the right The right layer catches DNA matching at least one variable Slide 20 / 21

On DNA computers Complexity of that algorithm There are m iterations during search, but after each iteration, one may need to duplicate the remaining strands ; a chemical procedure called PCR makes O(2 n ) duplicates in O(n). Thus the overall complexity is O(mn). Drawbacks Non-deterministic computing swaps time and space complexities : Very fast : O(mn) Matter-consuming : O(2 n ) The size of the Universe becomes our limit, instead of its lifetime Slide 21 / 21