OHJ2306 Introduction to Theoretical Computer Science, Fall


 Nigel Banks
 2 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 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 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 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 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 informationCOMS4236: Introduction to Computational Complexity. Summer 2014
COMS4236: Introduction to Computational Complexity Summer 2014 Mihalis Yannakakis Lecture 17 Outline conp NP conp Factoring Total NP Search Problems Class conp Definition of NP is nonsymmetric with respect
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 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 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 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 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 informationR u t c o r Research R e p o r t. Boolean functions with a simple certificate for CNF complexity. Ondřej Čepeka Petr Kučera b Petr Savický c
R u t c o r Research R e p o r t Boolean functions with a simple certificate for CNF complexity Ondřej Čepeka Petr Kučera b Petr Savický c RRR 22010, January 24, 2010 RUTCOR Rutgers Center for Operations
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 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 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 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 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 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! 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 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 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 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 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 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 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 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 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 informationApproximation Algorithms: LP Relaxation, Rounding, and Randomized Rounding Techniques. My T. Thai
Approximation Algorithms: LP Relaxation, Rounding, and Randomized Rounding Techniques My T. Thai 1 Overview An overview of LP relaxation and rounding method is as follows: 1. Formulate an optimization
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 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 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 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 informationFundamentals of Mathematics Lecture 6: Propositional Logic
Fundamentals of Mathematics Lecture 6: Propositional Logic GuanShieng Huang National Chi Nan University, Taiwan Spring, 2008 1 / 39 Connectives Propositional Connectives I 1 Negation: (not A) A A T F
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 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 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 informationStructural properties of oracle classes
Structural properties of oracle classes Stanislav Živný Computing Laboratory, University of Oxford, Wolfson Building, Parks Road, Oxford, OX1 3QD, UK Abstract Denote by C the class of oracles relative
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 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 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 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 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 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 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 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 informationIntroduction to Algorithms Review information for Prelim 1 CS 4820, Spring 2010 Distributed Wednesday, February 24
Introduction to Algorithms Review information for Prelim 1 CS 4820, Spring 2010 Distributed Wednesday, February 24 The final exam will cover seven topics. 1. greedy algorithms 2. divideandconquer algorithms
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 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 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 informationComplexity and Completeness of Finding Another Solution and Its Application to Puzzles
yato@is.s.utokyo.ac.jp seta@is.s.utokyo.ac.jp Π (ASP) Π x s x s ASP Ueda Nagao n nasp parsimonious ASP ASP NP Complexity and Completeness of Finding Another Solution and Its Application to Puzzles Takayuki
More informationPractice Problems for Final Exam: Solutions CS 341: Foundations of Computer Science II Prof. Marvin K. Nakayama
Practice Problems for Final Exam: Solutions CS 341: Foundations of Computer Science II Prof. Marvin K. Nakayama 1. Short answers: (a) Define the following terms and concepts: i. Union, intersection, set
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 information6.080 / 6.089 Great Ideas in Theoretical Computer Science Spring 2008
MIT OpenCourseWare http://ocw.mit.edu 6.080 / 6.089 Great Ideas in Theoretical Computer Science Spring 008 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
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 informationAlgorithm Design and Analysis Homework #6 Due: 1pm, Monday, January 9, === Homework submission instructions ===
Algorithm Design and Analysis Homework #6 Due: 1pm, Monday, January 9, 2012 === Homework submission instructions === Submit the answers for writing problems (including your programming report) through
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 informationCounting Falsifying Assignments of a 2CF via Recurrence Equations
Counting Falsifying Assignments of a 2CF via Recurrence Equations Guillermo De Ita Luna, J. Raymundo Marcial Romero, Fernando Zacarias Flores, Meliza Contreras González and Pedro Bello López Abstract
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 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 informationMAT2400 Analysis I. A brief introduction to proofs, sets, and functions
MAT2400 Analysis I A brief introduction to proofs, sets, and functions In Analysis I there is a lot of manipulations with sets and functions. It is probably also the first course where you have to take
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 informationFoundations of Artificial Intelligence
Foundations of Artificial Intelligence 7. Propositional Logic Rational Thinking, Logic, Resolution Wolfram Burgard, Bernhard Nebel and Martin Riedmiller AlbertLudwigsUniversität Freiburg Contents 1 Agents
More informationprinceton univ. F 13 cos 521: Advanced Algorithm Design Lecture 6: Provable Approximation via Linear Programming Lecturer: Sanjeev Arora
princeton univ. F 13 cos 521: Advanced Algorithm Design Lecture 6: Provable Approximation via Linear Programming Lecturer: Sanjeev Arora Scribe: One of the running themes in this course is the notion of
More informationWhat s next? Reductions other than kernelization
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 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 informationFinal Exam  Comments
University of Virginia  cs3102: Theory of Computation Spring 2010 Final Exam  Comments Problem 1: Definitions. (Average 7.2 / 10) For each term, provide a clear, concise, and precise definition from
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 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 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 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 informationDiscrete Mathematics, Chapter 5: Induction and Recursion
Discrete Mathematics, Chapter 5: Induction and Recursion Richard Mayr University of Edinburgh, UK Richard Mayr (University of Edinburgh, UK) Discrete Mathematics. Chapter 5 1 / 20 Outline 1 Wellfounded
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 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 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 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 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 informationSolving systems of linear equations over finite fields
Solving systems of linear equations over finite fields June 1, 2007 1 Introduction 2 3 4 Basic problem Introduction x 1 + x 2 + x 3 = 1 x 1 + x 2 = 1 x 1 + x 2 + x 4 = 1 x 2 + x 4 = 0 x 1 + x 3 + x 4 =
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 informationScheduling. Open shop, job shop, flow shop scheduling. Related problems. Open shop, job shop, flow shop scheduling
Scheduling Basic scheduling problems: open shop, job shop, flow job The disjunctive graph representation Algorithms for solving the job shop problem Computational complexity of the job shop problem Open
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 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 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 informationMeasuring Rationality with the Minimum Cost of Revealed Preference Violations. Mark Dean and Daniel Martin. Online Appendices  Not for Publication
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 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 information