1 Computational Complexity CPSC 468b, Spring 2007 Time: Tu & Th, 1:00-2:15 pm Room: AKW 500 Dist. Group: IV (not Natural Sci.) Satisfies “QR”

Slides:



Advertisements
Similar presentations
The Theory of NP-Completeness
Advertisements

Great Theoretical Ideas in Computer Science for Some.
© The McGraw-Hill Companies, Inc., Chapter 8 The Theory of NP-Completeness.
CS 46101–600/CS Design and Analysis of Algorithms Dr. Angela Guercio Spring 2010.
1 Computational Complexity CPSC 468/568, Fall 2008 Time: Tu & Th, 1:00-2:15 pm Room: AKW 500 Satisfies the QR requirement.
E-Commerce: Doing Business on the Internet CPSC 155a, Fall 2001 T, Th: 1-2:15 pm, Room DL 220 (The Co-Evolution of.
The Theory of NP-Completeness
11 Economics and Computation Econ 425/563 and CPSC 455/555, Fall 2008 Time: Tu & Th, 2:30-3:45 pm Room: BCT 102
1 Computational Complexity CPSC 468/568, Fall 2007 Time: Tu & Th, 1:00-2:15 pm Room: AKW 200 Dist. Group: IV (not Natural Sci.) Satisfies “QR”
CSE 421 Algorithms Richard Anderson Lecture 27 NP Completeness.
Chapter 11: Limitations of Algorithmic Power
EE 220 (Data Structures and Analysis of Algorithms) Instructor: Saswati Sarkar T.A. Prasanna Chaporkar, Programming.
Chapter 11 Limitations of Algorithm Power Copyright © 2007 Pearson Addison-Wesley. All rights reserved.
1 Computational Complexity CPSC 468/568, Fall 2009 Time: Tu & Th, 2:30-3:45 pm Room: AKW 307 Satisfies the QR requirement.
Complexity Theory: The P vs NP question Lecture 28 (Dec 4, 2007)
E-Commerce: Doing Business on the Internet CPSC 155b, Spring 2001 T, Th: 1-2:15 pm, Room DL220
CHEMISTRY 10123/10125 Spring 2007 Instructor: Professor Tracy Hanna Phone: Office: SWR 418
1 The Internet: Co-Evolution of Technology and Society CPSC 156b, Spring 2007 Time: Tu & Th, 2:30-3:45 pm Room: ML 221 Distribution Group: IV Not QR or.
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
Chapter 11 Limitations of Algorithm Power. Lower Bounds Lower bound: an estimate on a minimum amount of work needed to solve a given problem Examples:
A. Levitin “Introduction to the Design & Analysis of Algorithms,” 3rd ed., Ch. 11 ©2012 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved.
1 The Theory of NP-Completeness 2012/11/6 P: the class of problems which can be solved by a deterministic polynomial algorithm. NP : the class of decision.
CST 229 Introduction to Grammars Dr. Sherry Yang Room 213 (503)
Introduction to Discrete Mathematics J. H. Wang Sep. 14, 2010.
Administrative Issues ICS 151 Winter 2010 Instructor: Eli Bozorgzadeh.
1 1. Draw the machine schema for a TM which when started with input 001 halts with abbb on the tape in our standard input format. 2. Suppose you have an.
The Complexity of Optimization Problems. Summary -Complexity of algorithms and problems -Complexity classes: P and NP -Reducibility -Karp reducibility.
CSEP 521 Applied Algorithms Richard Anderson Lecture 10 NP Completeness.
Introduction to Databases Computer Science 557 September 2007 Instructor: Joe Bockhorst University of Wisconsin - Milwaukee.
ECE 1100: Introduction to Electrical and Computer Engineering Wanda Wosik Associate Professor, ECE Dept. Notes 1 Spring 2011 Slides adapted from lectures.
Discrete Mathematics CS204 Spring CS204 Discrete Mathematics Instructor: Professor Chin-Wan Chung (Office: Rm 3406, Tel:3537) 1.Lecture 1)Time:
CSE 1340 Introduction to Computing Concepts Class 1 ~ Intro.
CSCI 2670 Introduction to Theory of Computing November 29, 2005.
CSCI 2670 Introduction to Theory of Computing December 1, 2004.
1 Lower Bounds Lower bound: an estimate on a minimum amount of work needed to solve a given problem Examples: b number of comparisons needed to find the.
Computer Science II Spring Introduction Dr. Robb T. Koether Office: Bagby 114 Office phone: Home phone: (before 11:00 p.m.) Office.
Computer Science II Spring Introduction Dr. Robb T. Koether Office: Bagby 114 Office phone: Home phone: (before 11:00 p.m.) Office.
COMPSCI 102 Introduction to Discrete Mathematics.
CSCI 3160 Design and Analysis of Algorithms Tutorial 10 Chengyu Lin.
1 The Theory of NP-Completeness 2 Cook ’ s Theorem (1971) Prof. Cook Toronto U. Receiving Turing Award (1982) Discussing difficult problems: worst case.
ECE 2317: Applied Electricity and Magnetism Prof. D. Wilton Dept. of ECE Notes 1 Notes prepared by the EM group, University of Houston.
1 Daily Announcements CS 202, Spring 2007 Aaron Bloomfield.
COMPSCI 102 Introduction to Discrete Mathematics.
NP-COMPLETE PROBLEMS. Admin  Two more assignments…  No office hours on tomorrow.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness and course wrap up.
CS 3343: Analysis of Algorithms Lecture 25: P and NP Some slides courtesy of Carola Wenk.
Strings Basic data type in computational biology A string is an ordered succession of characters or symbols from a finite set called an alphabet Sequence.
Discrete Optimization Lecture 4 M. Pawan Kumar
The Internet: Co-Evolution of Technology and Society CPSC 156a, Fall 2003 Time: Tues & Thurs, 1-2:15 pm Room: DL 220
1 CPSC 320: Intermediate Algorithm Design and Analysis July 30, 2014.
CSE 6311 – Spring 2009 ADVANCED COMPUTATIONAL MODELS AND ALGORITHMS Lecture Notes – Feb. 3, 2009 Instructor: Dr. Gautam Das notes by Walter Wilson.
NP Completeness Piyush Kumar. Today Reductions Proving Lower Bounds revisited Decision and Optimization Problems SAT and 3-SAT P Vs NP Dealing with NP-Complete.
CSE 1340 Introduction to Computing Concepts Class 1 ~ Intro.
CSCI 2670 Introduction to Theory of Computing December 2, 2004.
1 CPSC 320: Intermediate Algorithm Design and Analysis July 30, 2014.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness Proofs.
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
CSE 421 Algorithms Richard Anderson Lecture 29 Complexity Theory NP-Complete P.
CSE 332: NP Completeness, Part II Richard Anderson Spring 2016.
Chapter 10 NP-Complete Problems.
Computational Complexity Theory
Richard Anderson Lectures NP-Completeness
CS21 Decidability and Tractability
Foundations II: Data Structures and Algorithms
Chapter 11 Limitations of Algorithm Power
Richard Anderson Lecture 27 NP Completeness
Richard Anderson Lecture 26 NP-Completeness
Richard Anderson Lecture 25 NP Completeness
Instructor: Aaron Roth
Instructor: Aaron Roth
Presentation transcript:

1 Computational Complexity CPSC 468b, Spring 2007 Time: Tu & Th, 1:00-2:15 pm Room: AKW 500 Dist. Group: IV (not Natural Sci.) Satisfies “QR”

2 Partial Topic Outline Complexity classes (P, NP, L, NL, etc.) Reductions and completeness The roles of, e.g., –Randomness –Interaction –Approximation Circuits

3 Schedule Feb. 1: First HW Assignment Due Feb. 13: Second HW Assignment Due Feb. 22: Third HW Assignment Due Mar. 1: First In-Class Exam Mar. 6: Grades on HW1, HW2, HW3, and Ex1 will be returned to students today or earlier. Mar. 9: Drop Date Apr. 10: Fourth HW Assignment Due Apr. 19: Fifth HW Assignment Due Apr. 26: Second In-Class Exam

4 Requirements Modest reading assignments 5 Written HW Assignments, 4 of which will each be worth 15% of the course grade and one of which will be worth 10% of the course grade 2 In-Class Exams, each worth 15% of the course grade No final exam during exam week

5 Rules and Guidelines Deadlines are firm. Announcements and assignments will be posted on the class webpage (as well as conveyed in class). No “collaboration” on homeworks unless you are told otherwise. Pick up your graded homeworks and exams promptly, and tell the TA promptly if one is missing.

6 Instructor: Joan Feigenbaum Office: AKW 512 Office Hours: Tuesday 4-5 pm Thursday 9-10 am Phone: Assistant: Judi Paige , AKW 507a, 9am-2pm M-F) Note: Do not send to Professor Feigenbaum, who suffers from RSI. Contact her through Ms. Paige or the TA.

7 TA: Nikhil Srivastava Office: AKW 413 Office Hours: Tuesday 10am-11am Friday 10am-11am Phone:

8 If you’re undecided … Check out: (a new complexity-theory text by Sanjeev Arora and Boaz Barak of Princeton) (a complexity-theory course taught by Luca Trevisan at Berkeley in 2002) (“NP-Completeness: A Retrospective,” by Christos Papadimitriou, 1997 International Colloquium on Automata, Languages, and Programming)

9 Questions?

10 Computational Complexity

11 The Big Picture Analysis of Algorithms upper bounds on resources to solve a computational problem Complexity lower bounds… OR Computability Theory What can be computed? Complexity What can be computed, given limited resources?

12 “Computational Problem” input 2 {0,1} * output 2 {0,1} * R

13 Decision Problem Does the input satisfy ? input 2 {0,1} * output 2 {YES/NO} R

14 Decision Problem ~ Language L = {YES instances} µ {0,1} * YES {0,1}*

15 Examples Is n composite? Is there a path of length at most k between s and t in G? (input ) Does G contain a clique of size ¸ k? Is G 3-colorable?

16 Example -- SAT Is  satisfiable? –Boolean formula on x 1 … x n (x 1 Ç x 3 Ç x 5 ) Æ (  x 3 Ç x 4 ) Æ (  x 4 Ç  x 5 Ç  x 1 ) –Is there a satisfying assignment? –YES: (1 Ç 0 Ç 0) Æ (  0 Ç 0) Æ (  0 Ç  0 Ç  1)

17 Search Problem Given x, find y such that R(x,y), or output “no such y”. x 2 {0,1} * y 2 {0,1}*/NO R

18 Examples Find a factor f of n such that 1<f<n. Find an s-t path of length at most k. Find a clique of size at least k in G. Find a 3-coloring of G. Find an assignment to x 1 … x n that satisfies 

19 Optimization Problem Given x, find y that optimizes some criterion. x 2 {0,1} * y 2 {0,1}*, that achieves the optimizing value R

20 Examples Find the largest factor f of n s.t. 1<f<n. Find the shortest path between s and t. Find the largest clique in G. Find a coloring of G that uses as few colors as possible.

21 Optimization reduces to Decision Optimization problems can be reduced to decision problems with small overhead. For example, to find the size of the biggest clique in G, binary search on: Does G contain a clique of size k?

22 Counting Problem Given x, find #y satisfying R(x,y) x 2 {0,1} * |{y:R(x,y)}| R

23 Self-Reducibility of SAT  can be reduced to two smaller instances Each variable must be 0 or 1.  (x 1 … x n ) 2 SAT iff  (0,x 2 …x n ) 2 SAT or  (1,x 2 …x n ) 2 SAT

24 An Algorithm Given  (x 1 … x n ) –If  (0,x 2 …x n ) 2 SAT, solve recursively on  (0,x 2 …x n ) –If  (1,x 2 …x n ) 2 SAT, solve recursively on  (1,x 2 …x n ) –Else return UNSAT At most n recursive calls

25 Why is this important? R is an NP-relation if 9 poly. p s.t. –For all (x,y) 2 R, |y| · p(|x|) –Given x,y, we can check R(x,y) in time · p(|x|) A search problem over such an R is an NP-search problem.

26 So… NP-decision problem: –Given x, does 9 y : R(x,y)? Cook’s theorem: –If there is a poly. time alg. For SAT, there are poly. time algs for all NP decision problems By self-reducibility, this extends to search problems!