OHJ2306 Introduction to Theoretical Computer Science, Fall


 Nigel Banks
 6 years ago
 Views:
Transcription
1 276 The P vs. NP problem is a major unsolved problem in computer science It is one of the seven Millennium Prize Problems selected by the Clay Mathematics Institute to carry a $ 1,000,000 prize for the first correct solution A proof either way would have profound implications for mathematics, cryptography, algorithm research, artificial intelligence, game theory, multimedia processing, In a 2002 poll of 100 researchers: 61 believed the answer to be P NP 9 believed the answer is P = NP 22 were unsure of the answer 8 believed the question may be independent of the currently accepted axioms and therefore is impossible to prove or disprove Reasons to believe P NP 277 After decades of studying these problems no one has been able to find a polynomialtime algorithm for any of more than important known NPcomplete problems Furthermore, the result P = NP would imply many other startling results that are currently believed to be false It is also intuitively argued that the existence of problems that are hard to solve but for which the solutions are easy to verify matches realworld experience: If P=NP, then the world would be a profoundly different place than we usually assume it to be. There would be no special value in "creative leaps," no fundamental gap between solving a problem and recognizing the solution once it's found. Everyone who could appreciate a symphony would be Mozart; everyone who could follow a stepbystep argument would be Gauss... [Scott Aaronson, MIT] 1
2 278 On the other hand, some researchers believe that there is overconfidence in believing P NP. For example, in 2002 these statements were made: The main argument in favor of NPis the total lack of fundamental progress in the area of exhaustive search. This is, in my opinion, a very weak argument. The space of algorithms is very large and we are only at the beginning of its exploration. [...] The resolution of Fermat's Last Theorem also shows that very simple questions may be settled only by very deep theories. [Moshe Y. Vardi, Rice University] Being attached to a speculation is not a good guide to research planning. One should always try both directions of every problem. Prejudice has caused famous mathematicians to fail to solve famous problems whose solution was opposite to their expectations, even though they had developed all the methods required. [Anil Nerode, Cornell University] Consequences if P = NP 279 A proof that P = NP could have stunning practical consequences, if the proof leads to efficient methods for solving some of the important problems in NP A proof may not lead directly to efficient methods, perhaps if the proof is nonconstructive, or the size of the bounding polynomial is too big to be efficient in practice The consequences, both positive and negative, arise since various NPcomplete problems are fundamental in many fields Cryptography, for example, relies on certain problems being difficult A constructive and efficient solution to an NPcomplete problem such as 3SAT would break most existing cryptosystems including publickey cryptography, a foundation for many modern security applications such as secure economic transactions over the Internet These would need to be modified or replaced by other solutions 2
3 280 On the other hand, there are enormous positive consequences that would follow from rendering tractable many currently mathematically intractable problems For instance, many problems in operations research are NPcomplete, such as some types of integer programming, and the TSP Efficient solutions to these problems would have enormous implications for logistics. Many other important problems, such as some problems in protein structure prediction, are also NPcomplete If these problems were efficiently solvable it could spur considerable advances in biology 281 But such changes may pale in significance compared to the revolution an efficient method for solving NPcomplete problems would cause in mathematics itself. According to Stephen Cook:...it would transform mathematics by allowing a computer to find a formal proof of any theorem which has a proof of a reasonable length, since formal proofs can easily be recognized in polynomial time. Example problems may well include all of the CMI prize problems. Research mathematicians spend their careers trying to prove theorems, and some proofs have taken decades or even centuries to find after problems have been stated for instance, Fermat's Last Theorem took over three centuries to prove A method that is guaranteed to find proofs to theorems, should one exist of a "reasonable" size, would essentially end this struggle 3
4 282 Consequences if P NP A proof that showed that P NP would allow one to show in a formal way that many common problems cannot be solved efficiently, so that the attention of researchers can be focused on partial solutions or solutions to other problems Due to widespread belief in P NP, much of this focusing of research has already taken place Also P NP still leaves open the averagecase complexity of hard problems in NP. For example, it is possible that SAT requires exponential time in the worst case, but that almost all randomly selected instances of it are efficiently solvable NPCompleteness A function f: * * is a polynomial time computable if there exists a Turing machine M and a polynomial p for which f = f M and time M (n) p(n) for all n Let A *, B * be two formal languages Definition 7.29 Language A is polynomial time reducible to language B, written A mp B, if a polynomial time computable function f: * * exists, where for every x *, x A f(x) B 4
5 284 Theorem 7.31 (Extended) For all languages A, B, C it holds i. A mp A, (reflexive) ii. if A mp B and B mp C, then A mp C (transitive), iii. if A mp B and B NP, then A NP, and iv. if A mp B and B P, then A P. Note: for the part of mapping reducibility this theorem is exactly the same as Lemma J (Theorem 5.22). The difference is the polynomial time computability of the reduction. 285 Proof. i. We choose f(x) = x to be the reduction. ii. The composite function h(x) = g(f(x)) is a reduction from A to C, h: A m C (see Lemma J, Theorem 5.22). h can be computed in polynomial time: Let M f (M g ) be the Turing machine computing function f (g) in time bounded by polynomial p (q). We can assume that p and q are everywhere nondescending. Let M g, M REW, and M f work as in the proof of Lemma J. 5
6 286 x f(x) f(x) g(f(x)) M M f M REW g h(x) The TM computing the composite mapping 287 By combining the TMs as previously, we get a TM M h that computes the function h, and uses the following time on input x: time Mf (x) + time MREW (f(x)v) + time Mg (f(x)) p( x ) + 2p( x ) + q( f(x) ) 3p( x ) + q(p( x )) = O(q(p( x ))), which is polynomial in the length of x. iii. (and iv.) By combining the TM M f, which computes the reduction f: A mp B in time bounded by the polynomial p, the TM M B, which decides the language B in time bounded by q, and M REW similarly as in the proof of Lemma J, we get the TM M A, which decides the language A in time O(q(p( x ))). It is deterministic whenever M B is. 6
7 288 Satisfiability of Boolean formulas, SAT Given a Boolean formula, which consists of Boolean variables x 1,..., x n, Constant values 0 (false) and 1 (true), and Boolean operations,, and. Is satisfiable? Is there an assignment of values 0 and 1 to the variables t: { x 1,..., x n } { 0, 1 }, such that (t(x 1 ),, t(x n )) = 1 Let us guess the assignment t of values for the variables and verify that (t) = 1. If contains n Boolean variables, then t can be represented as a binary string of n bits and it can be verified in polynomial time 289 Stephen Cook and Leonid Levin discovered in the early 1970s that there exists the class of NPcomplete problems The individual complexity of an NPcomplete problem is related to that of the entire class of NP If a polynomialtime algorithm exists for any of the NPcomplete problems, all problems in NP would be polynomialtime solvable NPcomplete problems help to study the question P =?= NP and to recognize difficult practical problems Theorem 7.27 (CookLevin theorem) SAT P P = NP 7
8 290 The satisfiability problem for many special forms of Boolean formulas is also NPcomplete A formula is in conjunctive normal form (cnf), if it comprises several conjuncts = C 1 C 2 C m, where each clause C i is a disjunction C i = i1 i2 ir Terms ij are literals: Boolean variables or their negations CSAT is the satisfiability problem for cnfformulas: { is a satisfiable cnfformula } Obviously, CSAT NP. An arbitrary Boolean formula can be converted to a cnfformula in polynomial time 291 By restricting the number of terms in a clause of a cnfformula to be exactly k literals, we get the kconjunctive normal form (kcnf) A family of languages: ksat = { is a satisfiable kcnfformula } Language 2SAT belongs to P Theorem CSAT mp 3SAT Proof. The given cnfformula can be converted in polynomial time into an equivalent 3cnfformula ' Let = C 1 C 2 C m 8
9 292 Each clause C k = 1 2 r, r 3, is replaced by a 3cnfformula C k ' = ( 1 2 t 1 ) ( t 1 3 t 2 ) ( t r 3 r 1 r ), where t 1,, t r 3 are new variables. The formula C k ' can clearly be obtained from clause C k in polynomial time. We still need to check that the transformation satisfies reducibility CSAT ' 3SAT: 1. satisfiable ' satisfiable: For all clauses C k the assignment satisfying must set i = 1 for some i C k. C k ' gets satisfied when we set the values of literals as in the assignment satisfying C k and the new variables get values as 293 follows t j 1, 0, if if j i 2 j i 2 2. is satisfiable ' is satisfiable: Also the subformulas C k corresponding to the clauses C k of must be satisfied. Then either a) Some literal i = 1, i C k, and C k gets satisfied by it, or b) For some i < r 3: t i =1 t i+1 = 0, and it must be that i+2 =1, and again C k gets satisfied. 9
10 294 If r 3, then C k = C k ' = C k C k = 1 2 C k ' = ( 1 2 t) 1 2 t) C k = C k ' = ( t 1 t 2 ) t 1 t 2 ) t 1 t 2 ) t 1 t 2 ) The equivalence of satisfiability of the formulas is maintained. 295 Vertex Cover, VC Given an undirected graph G and a natural number k. Does G contain a subset of k nodes that cover every edge of G? A node covers an edge if the edge touches the node. To represent VC as a formal language we need to encode graphs as strings. Similar encoding techniques as those used with Turing machines apply. We can guess the given number k of nodes from the given graph G, and then verify in time polynomial in the size of the graph that the chosen k nodes cover all edges of G 10
11 296 Theorem SAT mp VC Proof. Let = C 1 C 2 C m be a 3cnfformula with variables x 1,, x n. The corresponding instance of vertex cover G, k is as follows: G has a node corresponding to each literal G has 3 nodes C j1, C j2, C j3 corresponding to each clause C j of G has edges: (x i, x i ), (C j1, C j2 ), (C j2, C j3 ), (C j3 C j1 ), and If C j = 1 2 3, then (C j1, 1 ), (C j2, 2 ), (C j3, 3 ) k = n + 2m Clearly G can be composed in polynomial time from formula. 297 The graph for formula = (x 1 x 3 x 4 ) ( x 1 x 2 x 4 ) x 1 x 1 x 2 x 2 x 3 x 3 x 4 x 4 C 1 2 C 2 2 C 1 1 C 1 3 C 2 1 C
12 is satisfiable G has a vertex cover of at most k = n + 2m nodes: Let us include into the vertex cover corresponding to the value assignment, the node representing the literal which obtains value 1 (n nodes) For each clause C j, one edge (C jr, r ) of the corresponding triangle is now covered We take to the vertex cover the two remaining corners of the triangle (altogether 2m nodes) Ghas a vertex cover of at most k nodes is satisfiable Let V', V' k, be a vertex cover of G For V' to be able to cover all edges of G, it must contain one node per each variable and at least two nodes from each C j  triangle Hence, V' = k Let us set 1, t( xi) 0, if x V ' if x V ' One of the edges starting from the corners of each C j  triangle is covered by a literal node V' Then t ) = t(c j ) = 1 i i 12
13 300 Hence, SAT mp CSAT mp 3SAT mp VC Definition 7.34 A language B is NPcomplete if it satisfies: 1.B NP, and 2.A mp Bfor every A NP A NPcomplete language can be decided deterministically in polynomial time if and only if all other languages in NP can also be decided deterministically in polynomial time Theorem 7.35 If B is NPcomplete and B P, then P = NP. 301 Theorem 7.36 If B is NPcomplete and mp Cfor C NP, then C is NPcomplete. Proof. Because B is NPcomplete, by definition A mp B for every language A NP. On the other hand, B mp C, and by the transitivity of polynomial time reductions (Theorem 7.31) it must hold that A mp C for all A NP. By assumption C NP, and the claim holds. Hence, to show that language C is NPcomplete, it suffices to reduce in polynomial time some language B known to be NPcomplete to C and in addition verify that C NP However, we should find the first NPcomplete language 13
14 302 Theorem 7.37 (CookLevin) Language SAT = { is a satisfiable Boolean formula } is NPcomplete. We need to show that A mp SAT for any A NP All that we know about A is that it has a polynomial time nondeterministic decider N The reduction for A takes a string w and produces a Boolean formula w that simulates N on input w w is satisfiable iff w L(N) = A For each possible computation of N we have one truth value assignment of the variables in w The formula w is composed to give those conditions by which the given assignment corresponds to an accepting computation of N 303 Corollary 7.42 CSAT, 3SAT, and VC are NPcomplete. Independent Set, IS: Given an undirected graph G and a natural number k. Does G have at least k nodes which have no edges with each other? By the following lemma it is easy to compose reductions VC mp IS and IS mp CLIQUE Lemma Let G = (V, E) be an undirected graph and V V. Then the following conditions are equivalent: 1. V is a vertex cover in G, 2.V \V is an independent set, and 3.V \V is a clique in the complement graph of G: = (V, (V V) \ E) 14
15 304 VC mp IS: Let us choose the mapping f: f( G, k ) = G, V k. Clearly this transformation can be computed in polynomial time. Now, by the preceding lemma G, k VC G, V k IS. Hence, f: VC mp IS. IS mp CLIQUE: Let us now choose the mapping f: f( G, k ) =, k. This transformation can be computed in polynomial time and by the preceding lemma G, k IS, k CLIQUE. Thus, f: IS mp CLIQUE. 15
Page 1. CSCE 310J Data Structures & Algorithms. CSCE 310J Data Structures & Algorithms. P, NP, and NPComplete. PolynomialTime Algorithms
CSCE 310J Data Structures & Algorithms P, NP, and NPComplete Dr. Steve Goddard goddard@cse.unl.edu CSCE 310J Data Structures & Algorithms Giving credit where credit is due:» Most of the lecture notes
More informationLecture 7: NPComplete Problems
IAS/PCMI Summer Session 2000 Clay Mathematics Undergraduate Program Basic Course on Computational Complexity Lecture 7: NPComplete Problems David Mix Barrington and Alexis Maciel July 25, 2000 1. Circuit
More information1. Nondeterministically guess a solution (called a certificate) 2. Check whether the solution solves the problem (called verification)
Some N P problems Computer scientists have studied many N P problems, that is, problems that can be solved nondeterministically in polynomial time. Traditionally complexity question are studied as languages:
More informationIntroduction to Logic in Computer Science: Autumn 2006
Introduction to Logic in Computer Science: Autumn 2006 Ulle Endriss Institute for Logic, Language and Computation University of Amsterdam Ulle Endriss 1 Plan for Today Now that we have a basic understanding
More informationCSC 373: Algorithm Design and Analysis Lecture 16
CSC 373: Algorithm Design and Analysis Lecture 16 Allan Borodin February 25, 2013 Some materials are from Stephen Cook s IIT talk and Keven Wayne s slides. 1 / 17 Announcements and Outline Announcements
More informationIntroduction to Algorithms. Part 3: P, NP Hard Problems
Introduction to Algorithms Part 3: P, NP Hard Problems 1) Polynomial Time: P and NP 2) NPCompleteness 3) Dealing with Hard Problems 4) Lower Bounds 5) Books c Wayne Goddard, Clemson University, 2004 Chapter
More informationMillion Dollar Mathematics!
Million Dollar Mathematics! Alissa S. Crans Loyola Marymount University Southern California Undergraduate Math Day University of California, San Diego April 30, 2011 This image is from the Wikipedia article
More informationComplexity Theory. IE 661: Scheduling Theory Fall 2003 Satyaki Ghosh Dastidar
Complexity Theory IE 661: Scheduling Theory Fall 2003 Satyaki Ghosh Dastidar Outline Goals Computation of Problems Concepts and Definitions Complexity Classes and Problems Polynomial Time Reductions Examples
More informationNPCompleteness. CptS 223 Advanced Data Structures. Larry Holder School of Electrical Engineering and Computer Science Washington State University
NPCompleteness CptS 223 Advanced Data Structures Larry Holder School of Electrical Engineering and Computer Science Washington State University 1 Hard Graph Problems Hard means no known solutions with
More informationP versus NP, and More
1 P versus NP, and More Great Ideas in Theoretical Computer Science Saarland University, Summer 2014 If you have tried to solve a crossword puzzle, you know that it is much harder to solve it than to verify
More informationChapter. NPCompleteness. Contents
Chapter 13 NPCompleteness Contents 13.1 P and NP......................... 593 13.1.1 Defining the Complexity Classes P and NP...594 13.1.2 Some Interesting Problems in NP.......... 597 13.2 NPCompleteness....................
More informationNPcomplete? NPhard? Some Foundations of Complexity. Prof. Sven Hartmann Clausthal University of Technology Department of Informatics
NPcomplete? NPhard? Some Foundations of Complexity Prof. Sven Hartmann Clausthal University of Technology Department of Informatics Tractability of Problems Some problems are undecidable: no computer
More informationChapter 1. NP Completeness I. 1.1. Introduction. By Sariel HarPeled, December 30, 2014 1 Version: 1.05
Chapter 1 NP Completeness I By Sariel HarPeled, December 30, 2014 1 Version: 1.05 "Then you must begin a reading program immediately so that you man understand the crises of our age," Ignatius said solemnly.
More informationThe P versus NP Solution
The P versus NP Solution Frank Vega To cite this version: Frank Vega. The P versus NP Solution. 2015. HAL Id: hal01143424 https://hal.archivesouvertes.fr/hal01143424 Submitted on 17 Apr
More informationThe Classes P and NP
The Classes P and NP We now shift gears slightly and restrict our attention to the examination of two families of problems which are very important to computer scientists. These families constitute the
More informationNPCompleteness and Cook s Theorem
NPCompleteness and Cook s Theorem Lecture notes for COM3412 Logic and Computation 15th January 2002 1 NP decision problems The decision problem D L for a formal language L Σ is the computational task:
More informationTutorial 8. NPComplete Problems
Tutorial 8 NPComplete Problems Decision Problem Statement of a decision problem Part 1: instance description defining the input Part 2: question stating the actual yesorno question A decision problem
More informationA Working Knowledge of Computational Complexity for an Optimizer
A Working Knowledge of Computational Complexity for an Optimizer ORF 363/COS 323 Instructor: Amir Ali Ahmadi TAs: Y. Chen, G. Hall, J. Ye Fall 2014 1 Why computational complexity? What is computational
More informationOn the Relationship between Classes P and NP
Journal of Computer Science 8 (7): 10361040, 2012 ISSN 15493636 2012 Science Publications On the Relationship between Classes P and NP Anatoly D. Plotnikov Department of Computer Systems and Networks,
More informationTetris is Hard: An Introduction to P vs NP
Tetris is Hard: An Introduction to P vs NP Based on Tetris is Hard, Even to Approximate in COCOON 2003 by Erik D. Demaine (MIT) Susan Hohenberger (JHU) David LibenNowell (Carleton) What s Your Problem?
More informationTheoretical Computer Science (Bridging Course) Complexity
Theoretical Computer Science (Bridging Course) Complexity Gian Diego Tipaldi A scenario You are a programmer working for a logistics company Your boss asks you to implement a program that optimizes the
More informationIntroduction to computer science
Introduction to computer science Michael A. Nielsen University of Queensland Goals: 1. Introduce the notion of the computational complexity of a problem, and define the major computational complexity classes.
More informationComputer Algorithms. NPComplete Problems. CISC 4080 Yanjun Li
Computer Algorithms NPComplete Problems NPcompleteness The quest for efficient algorithms is about finding clever ways to bypass the process of exhaustive search, using clues from the input in order
More informationNPCompleteness I. Lecture 19. 19.1 Overview. 19.2 Introduction: Reduction and Expressiveness
Lecture 19 NPCompleteness I 19.1 Overview In the past few lectures we have looked at increasingly more expressive problems that we were able to solve using efficient algorithms. In this lecture we introduce
More informationIntroduction to NPCompleteness Written and copyright c by Jie Wang 1
91.502 Foundations of Comuter Science 1 Introduction to Written and coyright c by Jie Wang 1 We use timebounded (deterministic and nondeterministic) Turing machines to study comutational comlexity of
More information! X is a set of strings. ! Instance: string s. ! Algorithm A solves problem X: A(s) = yes iff s! X.
Decision Problems 8.2 Definition of NP Decision problem. X is a set of strings. Instance: string s. Algorithm A solves problem X: A(s) = yes iff s X. Polynomial time. Algorithm A runs in polytime if for
More informationQuantum and Nondeterministic computers facing NPcompleteness
Quantum and Nondeterministic computers facing NPcompleteness Thibaut University of Vienna Dept. of Business Administration Austria Vienna January 29th, 2013 Some pictures come from Wikipedia Introduction
More informationComplexity Classes P and NP
Complexity Classes P and NP MATH 3220 Supplemental Presentation by John Aleshunas The cure for boredom is curiosity. There is no cure for curiosity Dorothy Parker Computational Complexity Theory In computer
More information(Teams removed to preserve email address privacy)
(Teams removed to preserve email address privacy) Prizes The Millennium Problems: The Seven Greatest Unsolved Mathematical Puzzles Of Our Time Keith J. Devlin Your Inner Fish: A Journey into the 3.5BillionYear
More informationNotes on NP Completeness
Notes on NP Completeness Rich Schwartz November 10, 2013 1 Overview Here are some notes which I wrote to try to understand what NP completeness means. Most of these notes are taken from Appendix B in Douglas
More informationWelcome to... Problem Analysis and Complexity Theory 716.054, 3 VU
Welcome to... Problem Analysis and Complexity Theory 716.054, 3 VU Birgit Vogtenhuber Institute for Software Technology email: bvogt@ist.tugraz.at office hour: Tuesday 10:30 11:30 slides: http://www.ist.tugraz.at/pact.html
More informationGenerating models of a matched formula with a polynomial delay
Generating models of a matched formula with a polynomial delay Petr Savicky Institute of Computer Science, Academy of Sciences of Czech Republic, Pod Vodárenskou Věží 2, 182 07 Praha 8, Czech Republic
More informationComputational complexity theory
Computational complexity theory Goal: A general theory of the resources needed to solve computational problems What types of resources? Time What types of computational problems? decision problem Decision
More informationOne last point: we started off this book by introducing another famously hard search problem:
S. Dasgupta, C.H. Papadimitriou, and U.V. Vazirani 261 Factoring One last point: we started off this book by introducing another famously hard search problem: FACTORING, the task of finding all prime factors
More informationCAD Algorithms. P and NP
CAD Algorithms The Classes P and NP Mohammad Tehranipoor ECE Department 6 September 2010 1 P and NP P and NP are two families of problems. P is a class which contains all of the problems we solve using
More informationBoundedwidth QBF is PSPACEcomplete
Boundedwidth QBF is PSPACEcomplete Albert Atserias 1 and Sergi Oliva 2 1 Universitat Politècnica de Catalunya Barcelona, Spain atserias@lsi.upc.edu 2 Universitat Politècnica de Catalunya Barcelona, Spain
More informationWhy? A central concept in Computer Science. Algorithms are ubiquitous.
Analysis of Algorithms: A Brief Introduction Why? A central concept in Computer Science. Algorithms are ubiquitous. Using the Internet (sending email, transferring files, use of search engines, online
More informationReductions & NPcompleteness as part of Foundations of Computer Science undergraduate course
Reductions & NPcompleteness as part of Foundations of Computer Science undergraduate course Alex Angelopoulos, NTUA January 22, 2015 Outline Alex Angelopoulos (NTUA) FoCS: Reductions & NPcompleteness
More informationNotes on Complexity Theory Last updated: August, 2011. Lecture 1
Notes on Complexity Theory Last updated: August, 2011 Jonathan Katz Lecture 1 1 Turing Machines I assume that most students have encountered Turing machines before. (Students who have not may want to look
More informationDiagonalization. Ahto Buldas. Lecture 3 of Complexity Theory October 8, 2009. Slides based on S.Aurora, B.Barak. Complexity Theory: A Modern Approach.
Diagonalization Slides based on S.Aurora, B.Barak. Complexity Theory: A Modern Approach. Ahto Buldas Ahto.Buldas@ut.ee Background One basic goal in complexity theory is to separate interesting complexity
More informationMATHEMATICS: CONCEPTS, AND FOUNDATIONS Vol. III  Logic and Computer Science  Phokion G. Kolaitis
LOGIC AND COMPUTER SCIENCE Phokion G. Kolaitis Computer Science Department, University of California, Santa Cruz, CA 95064, USA Keywords: algorithm, Armstrong s axioms, complete problem, complexity class,
More informationOffline 1Minesweeper is NPcomplete
Offline 1Minesweeper is NPcomplete James D. Fix Brandon McPhail May 24 Abstract We use Minesweeper to illustrate NPcompleteness proofs, arguments that establish the hardness of solving certain problems.
More informationOutline. NPcompleteness. When is a problem easy? When is a problem hard? Today. Euler Circuits
Outline NPcompleteness Examples of Easy vs. Hard problems Euler circuit vs. Hamiltonian circuit Shortest Path vs. Longest Path 2pairs sum vs. general Subset Sum Reducing one problem to another Clique
More informationExponential time algorithms for graph coloring
Exponential time algorithms for graph coloring Uriel Feige Lecture notes, March 14, 2011 1 Introduction Let [n] denote the set {1,..., k}. A klabeling of vertices of a graph G(V, E) is a function V [k].
More informationNotes on Complexity Theory Last updated: August, 2011. Lecture 1
Notes on Complexity Theory Last updated: August, 2011 Jonathan Katz Lecture 1 1 Turing Machines I assume that most students have encountered Turing machines before. (Students who have not may want to look
More informationLecture 19: Introduction to NPCompleteness Steven Skiena. Department of Computer Science State University of New York Stony Brook, NY 11794 4400
Lecture 19: Introduction to NPCompleteness Steven Skiena Department of Computer Science State University of New York Stony Brook, NY 11794 4400 http://www.cs.sunysb.edu/ skiena Reporting to the Boss Suppose
More informationGuessing Game: NPComplete?
Guessing Game: NPComplete? 1. LONGESTPATH: Given a graph G = (V, E), does there exists a simple path of length at least k edges? YES 2. SHORTESTPATH: Given a graph G = (V, E), does there exists a simple
More informationCloud Computing is NPComplete
Working Paper, February 2, 20 Joe Weinman Permalink: http://www.joeweinman.com/resources/joe_weinman_cloud_computing_is_npcomplete.pdf Abstract Cloud computing is a rapidly emerging paradigm for computing,
More informationDiscuss the size of the instance for the minimum spanning tree problem.
3.1 Algorithm complexity The algorithms A, B are given. The former has complexity O(n 2 ), the latter O(2 n ), where n is the size of the instance. Let n A 0 be the size of the largest instance that can
More informationON THE COMPLEXITY OF THE GAME OF SET. {kamalika,pbg,dratajcz,hoeteck}@cs.berkeley.edu
ON THE COMPLEXITY OF THE GAME OF SET KAMALIKA CHAUDHURI, BRIGHTEN GODFREY, DAVID RATAJCZAK, AND HOETECK WEE {kamalika,pbg,dratajcz,hoeteck}@cs.berkeley.edu ABSTRACT. Set R is a card game played with a
More informationFactoring & Primality
Factoring & Primality Lecturer: Dimitris Papadopoulos In this lecture we will discuss the problem of integer factorization and primality testing, two problems that have been the focus of a great amount
More informationIan Stewart on Minesweeper
Ian Stewart on Minesweeper It's not often you can win a million dollars by analysing a computer game, but by a curious conjunction of fate, there's a chance that you might. However, you'll only pick up
More informationNPcompleteness and the real world. NP completeness. NPcompleteness and the real world (2) NPcompleteness and the real world
completeness and the real world completeness Course Discrete Biological Models (Modelli Biologici Discreti) Zsuzsanna Lipták Imagine you are working for a biotech company. One day your boss calls you
More informationLecture 1: Oracle Turing Machines
Computational Complexity Theory, Fall 2008 September 10 Lecture 1: Oracle Turing Machines Lecturer: Kristoffer Arnsfelt Hansen Scribe: Casper KejlbergRasmussen Oracle TM Definition 1 Let A Σ. Then a Oracle
More informationSOLVING NARROWINTERVAL LINEAR EQUATION SYSTEMS IS NPHARD PATRICK THOR KAHL. Department of Computer Science
SOLVING NARROWINTERVAL LINEAR EQUATION SYSTEMS IS NPHARD PATRICK THOR KAHL Department of Computer Science APPROVED: Vladik Kreinovich, Chair, Ph.D. Luc Longpré, Ph.D. Mohamed Amine Khamsi, Ph.D. Pablo
More informationComplexity Theory. Jörg Kreiker. Summer term 2010. Chair for Theoretical Computer Science Prof. Esparza TU München
Complexity Theory Jörg Kreiker Chair for Theoretical Computer Science Prof. Esparza TU München Summer term 2010 Lecture 8 PSPACE 3 Intro Agenda Wrapup Ladner proof and time vs. space succinctness QBF
More informationJUSTINTIME SCHEDULING WITH PERIODIC TIME SLOTS. Received December May 12, 2003; revised February 5, 2004
Scientiae Mathematicae Japonicae Online, Vol. 10, (2004), 431 437 431 JUSTINTIME SCHEDULING WITH PERIODIC TIME SLOTS Ondřej Čepeka and Shao Chin Sung b Received December May 12, 2003; revised February
More informationThe Classes P and NP. mohamed@elwakil.net
Intractable Problems The Classes P and NP Mohamed M. El Wakil mohamed@elwakil.net 1 Agenda 1. What is a problem? 2. Decidable or not? 3. The P class 4. The NP Class 5. TheNP Complete class 2 What is a
More informationARTICLE IN PRESS. European Journal of Operational Research xxx (2004) xxx xxx. Discrete Optimization. Nan Kong, Andrew J.
A factor 1 European Journal of Operational Research xxx (00) xxx xxx Discrete Optimization approximation algorithm for twostage stochastic matching problems Nan Kong, Andrew J. Schaefer * Department of
More informationClassification  Examples
Lecture 2 Scheduling 1 Classification  Examples 1 r j C max given: n jobs with processing times p 1,...,p n and release dates r 1,...,r n jobs have to be scheduled without preemption on one machine taking
More informationUniversality in the theory of algorithms and computer science
Universality in the theory of algorithms and computer science Alexander Shen Computational models The notion of computable function was introduced in 1930ies. Simplifying (a rather interesting and puzzling)
More informationNan Kong, Andrew J. Schaefer. Department of Industrial Engineering, Univeristy of Pittsburgh, PA 15261, USA
A Factor 1 2 Approximation Algorithm for TwoStage Stochastic Matching Problems Nan Kong, Andrew J. Schaefer Department of Industrial Engineering, Univeristy of Pittsburgh, PA 15261, USA Abstract We introduce
More informationWhy Study NP hardness. NP Hardness/Completeness Overview. P and NP. Scaling 9/3/13. Ron Parr CPS 570. NP hardness is not an AI topic
Why Study NP hardness NP Hardness/Completeness Overview Ron Parr CPS 570 NP hardness is not an AI topic It s important for all computer scienhsts Understanding it will deepen your understanding of AI
More informationInternational Journal of Information Technology, Modeling and Computing (IJITMC) Vol.1, No.3,August 2013
FACTORING CRYPTOSYSTEM MODULI WHEN THE COFACTORS DIFFERENCE IS BOUNDED Omar Akchiche 1 and Omar Khadir 2 1,2 Laboratory of Mathematics, Cryptography and Mechanics, Fstm, University of Hassan II MohammediaCasablanca,
More informationSudoku as a SAT Problem
Sudoku as a SAT Problem Inês Lynce IST/INESCID, Technical University of Lisbon, Portugal ines@sat.inescid.pt Joël Ouaknine Oxford University Computing Laboratory, UK joel@comlab.ox.ac.uk Abstract Sudoku
More informationSIMS 255 Foundations of Software Design. Complexity and NPcompleteness
SIMS 255 Foundations of Software Design Complexity and NPcompleteness Matt Welsh November 29, 2001 mdw@cs.berkeley.edu 1 Outline Complexity of algorithms Space and time complexity ``Big O'' notation Complexity
More informationHow To Solve A K Path In Time (K)
What s next? Reductions other than kernelization Dániel Marx HumboldtUniversität zu Berlin (with help from Fedor Fomin, Daniel Lokshtanov and Saket Saurabh) WorKer 2010: Workshop on Kernelization Nov
More informationAlgebraic Computation Models. Algebraic Computation Models
Algebraic Computation Models Ζυγομήτρος Ευάγγελος ΜΠΛΑ 201118 Φεβρουάριος, 2013 Reasons for using algebraic models of computation The Turing machine model captures computations on bits. Many algorithms
More informationExact Polynomialtime Algorithm for the Clique Problem and P = NP for Clique Problem
xact Polynomialtime Algorithm for the Clique Problem and P = NP for Clique Problem Kanak Chandra Bora Department of Computer Science & ngineering Royal School of ngineering & Technology, Betkuchi, Guwahati7810,
More informationBounded Treewidth in Knowledge Representation and Reasoning 1
Bounded Treewidth in Knowledge Representation and Reasoning 1 Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien Luminy, October 2010 1 Joint work with G.
More informationPrivate Approximation of Clustering and Vertex Cover
Private Approximation of Clustering and Vertex Cover Amos Beimel, Renen Hallak, and Kobbi Nissim Department of Computer Science, BenGurion University of the Negev Abstract. Private approximation of search
More information(LMCS, p. 317) V.1. First Order Logic. This is the most powerful, most expressive logic that we will examine.
(LMCS, p. 317) V.1 First Order Logic This is the most powerful, most expressive logic that we will examine. Our version of firstorder logic will use the following symbols: variables connectives (,,,,
More informationLecture 1: Course overview, circuits, and formulas
Lecture 1: Course overview, circuits, and formulas Topics in Complexity Theory and Pseudorandomness (Spring 2013) Rutgers University Swastik Kopparty Scribes: John Kim, Ben Lund 1 Course Information Swastik
More information1 Formulating The Low Degree Testing Problem
6.895 PCP and Hardness of Approximation MIT, Fall 2010 Lecture 5: Linearity Testing Lecturer: Dana Moshkovitz Scribe: Gregory Minton and Dana Moshkovitz In the last lecture, we proved a weak PCP Theorem,
More informationLecture 2: Universality
CS 710: Complexity Theory 1/21/2010 Lecture 2: Universality Instructor: Dieter van Melkebeek Scribe: Tyson Williams In this lecture, we introduce the notion of a universal machine, develop efficient universal
More informationThe ChallengerSolver game: Variations on the theme of P =?NP
The ChallengerSolver game: Variations on the theme of P =?NP Yuri Gurevich Electrical Engineering and Computer Science Department University of Michigan, Ann Arbor, MI 48109, U.S.A. Logic in Computer
More informationLecture 30: NPHard Problems [Fa 14]
[I]n his short and broken treatise he provides an eternal example not of laws, or even of method, for there is no method except to be very intelligent, but of intelligence itself swiftly operating the
More informationHow To Solve A Minimum Set Covering Problem (Mcp)
Measuring Rationality with the Minimum Cost of Revealed Preference Violations Mark Dean and Daniel Martin Online Appendices  Not for Publication 1 1 Algorithm for Solving the MASP In this online appendix
More informationHow to Prove a Theorem So No One Else Can Claim It
Proceedings of the International Congress of Mathematicians Berkeley, California, USA, 1986 How to Prove a Theorem So No One Else Can Claim It MANUEL BLUM Goldwasser, Micali, and Rackoff [GMR] define for
More informationThe Halting Problem is Undecidable
185 Corollary G = { M, w w L(M) } is not Turingrecognizable. Proof. = ERR, where ERR is the easy to decide language: ERR = { x { 0, 1 }* x does not have a prefix that is a valid code for a Turing machine
More informationCMPSCI611: Approximating MAXCUT Lecture 20
CMPSCI611: Approximating MAXCUT Lecture 20 For the next two lectures we ll be seeing examples of approximation algorithms for interesting NPhard problems. Today we consider MAXCUT, which we proved to
More informationLecture 13  Basic Number Theory.
Lecture 13  Basic Number Theory. Boaz Barak March 22, 2010 Divisibility and primes Unless mentioned otherwise throughout this lecture all numbers are nonnegative integers. We say that A divides B, denoted
More information1 Definitions. Supplementary Material for: Digraphs. Concept graphs
Supplementary Material for: van Rooij, I., Evans, P., Müller, M., Gedge, J. & Wareham, T. (2008). Identifying Sources of Intractability in Cognitive Models: An Illustration using Analogical Structure Mapping.
More informationApplied Algorithm Design Lecture 5
Applied Algorithm Design Lecture 5 Pietro Michiardi Eurecom Pietro Michiardi (Eurecom) Applied Algorithm Design Lecture 5 1 / 86 Approximation Algorithms Pietro Michiardi (Eurecom) Applied Algorithm Design
More informationInteger factorization is in P
Integer factorization is in P Yuly Shipilevsky Toronto, Ontario, Canada Email address: yulysh2000@yahoo.ca Abstract A polynomialtime algorithm for integer factorization, wherein integer factorization
More informationThe Parameterized Complexity of Short Computation and Factorization
The Parameterized Complexity of Short Computation and Factorization Liming Cai and Jianer Chen Department of Computer Science, Texas A & M University College Station, Texas 77843 U.S.A. Rodney G. Downey
More informationBoulder Dash is NP hard
Boulder Dash is NP hard Marzio De Biasi marziodebiasi [at] gmail [dot] com December 2011 Version 0.01:... now the difficult part: is it NP? Abstract Boulder Dash is a videogame created by Peter Liepa and
More informationQuantum Monte Carlo and the negative sign problem
Quantum Monte Carlo and the negative sign problem or how to earn one million dollar Matthias Troyer, ETH Zürich UweJens Wiese, Universität Bern Complexity of many particle problems Classical 1 particle:
More informationCoNP and Function Problems
CoNP and Function Problems conp By definition, conp is the class of problems whose complement is in NP. NP is the class of problems that have succinct certificates. conp is therefore the class of problems
More information898 BOOK REVIEWS MICHAEL P. DRAZIN. irrespective of the statements in The New York Times, November 7, 1979, p. 1.
898 BOOK REVIEWS linear algebra texts; it would have been well worth taking space to develop this theme at some length. To summarize, after its renaissance in the 1950s, GI theory passed through its infancy
More informationComputability Theory
CSC 438F/2404F Notes (S. Cook and T. Pitassi) Fall, 2014 Computability Theory This section is partly inspired by the material in A Course in Mathematical Logic by Bell and Machover, Chap 6, sections 110.
More informationPolicy Analysis for Administrative Role Based Access Control
Policy Analysis for Administrative Role Based Access Control Amit Sasturkar Ping Yang Scott D. Stoller C.R. Ramakrishnan Department of Computer Science, Stony Brook University, Stony Brook, NY, 11794,
More informationOn the Unique Games Conjecture
On the Unique Games Conjecture Antonios Angelakis National Technical University of Athens June 16, 2015 Antonios Angelakis (NTUA) Theory of Computation June 16, 2015 1 / 20 Overview 1 Introduction 2 Preliminary
More informationHandout #1: Mathematical Reasoning
Math 101 Rumbos Spring 2010 1 Handout #1: Mathematical Reasoning 1 Propositional Logic A proposition is a mathematical statement that it is either true or false; that is, a statement whose certainty or
More informationFairness in Routing and Load Balancing
Fairness in Routing and Load Balancing Jon Kleinberg Yuval Rabani Éva Tardos Abstract We consider the issue of network routing subject to explicit fairness conditions. The optimization of fairness criteria
More informationCS 3719 (Theory of Computation and Algorithms) Lecture 4
CS 3719 (Theory of Computation and Algorithms) Lecture 4 Antonina Kolokolova January 18, 2012 1 Undecidable languages 1.1 ChurchTuring thesis Let s recap how it all started. In 1990, Hilbert stated a
More informationCHAPTER 3. Methods of Proofs. 1. Logical Arguments and Formal Proofs
CHAPTER 3 Methods of Proofs 1. Logical Arguments and Formal Proofs 1.1. Basic Terminology. An axiom is a statement that is given to be true. A rule of inference is a logical rule that is used to deduce
More informationApproximation Algorithms
Approximation Algorithms or: How I Learned to Stop Worrying and Deal with NPCompleteness Ong Jit Sheng, Jonathan (A0073924B) March, 2012 Overview Key Results (I) General techniques: Greedy algorithms
More informationCS510 Software Engineering
CS510 Software Engineering Propositional Logic Asst. Prof. Mathias Payer Department of Computer Science Purdue University TA: Scott A. Carr Slides inspired by Xiangyu Zhang http://nebelwelt.net/teaching/15cs510se
More informationOutline Introduction Circuits PRGs Uniform Derandomization Refs. Derandomization. A Basic Introduction. Antonis Antonopoulos.
Derandomization A Basic Introduction Antonis Antonopoulos CoReLab Seminar National Technical University of Athens 21/3/2011 1 Introduction History & Frame Basic Results 2 Circuits Definitions Basic Properties
More information