Instructor: Dr. GautamDas February 24, 2009 Class notes by Ranganath M R.

Slides:



Advertisements
Similar presentations
1 Nondeterministic Space is Closed Under Complement Presented by Jing Zhang and Yingbo Wang Theory of Computation II Professor: Geoffrey Smith.
Advertisements

Max Cut Problem Daniel Natapov.
Department of Computer Science & Engineering
NP-complete and NP-hard problems Transitivity of polynomial-time many-one reductions Concept of Completeness and hardness for a complexity class Definition.
Complexity class NP Is the class of languages that can be verified by a polynomial-time algorithm. L = { x in {0,1}* | there exists a certificate y with.
The Theory of NP-Completeness
1 NP-Complete Problems. 2 We discuss some hard problems:  how hard? (computational complexity)  what makes them hard?  any solutions? Definitions 
CS774. Markov Random Field : Theory and Application Lecture 17 Kyomin Jung KAIST Nov
CSC5160 Topics in Algorithms Tutorial 2 Introduction to NP-Complete Problems Feb Jerry Le
02/01/11CMPUT 671 Lecture 11 CMPUT 671 Hard Problems Winter 2002 Joseph Culberson Home Page.
CSE332: Data Abstractions Lecture 27: A Few Words on NP Dan Grossman Spring 2010.
NP-Complete Problems Reading Material: Chapter 10 Sections 1, 2, 3, and 4 only.
The Theory of NP-Completeness
NP-Complete Problems Problems in Computer Science are classified into
NP-complete examples CSC3130 Tutorial 11 Xiao Linfu Department of Computer Science & Engineering Fall 2009.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 24 Instructor: Paul Beame.
Toward NP-Completeness: Introduction Almost all the algorithms we studies so far were bounded by some polynomial in the size of the input, so we call them.
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 22 Instructor: Paul Beame.
Ref: Pfleeger96, Ch.31 NP-Complete Problems Reference: Pfleeger, Charles P., Security in Computing, 2nd Edition, Prentice Hall, 1996.
Hardness Results for Problems
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
The Theory of NP-Completeness 1. What is NP-completeness? Consider the circuit satisfiability problem Difficult to answer the decision problem in polynomial.
MCS312: NP-completeness and Approximation Algorithms
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.
Nattee Niparnan. Easy & Hard Problem What is “difficulty” of problem? Difficult for computer scientist to derive algorithm for the problem? Difficult.
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
MCS 312: NP Completeness and Approximation algorithms Instructor Neelima Gupta
The Complexity of Optimization Problems. Summary -Complexity of algorithms and problems -Complexity classes: P and NP -Reducibility -Karp reducibility.
TECH Computer Science NP-Complete Problems Problems  Abstract Problems  Decision Problem, Optimal value, Optimal solution  Encodings  //Data Structure.
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
EMIS 8373: Integer Programming NP-Complete Problems updated 21 April 2009.
The Class NP Lecture 39 Section 7.3 Mon, Nov 26, 2007.
Non-Approximability Results. Summary -Gap technique -Examples: MINIMUM GRAPH COLORING, MINIMUM TSP, MINIMUM BIN PACKING -The PCP theorem -Application:
1 Suppose I construct a TM M f which: 1. Preserves its input u. 2. Simulates a machine M b on input ε. 3. If M b hangs on input ε, force an infinite loop.
COMPLEXITY. Satisfiability(SAT) problem Conjunctive normal form(CNF): Let S be a Boolean expression in CNF. That is, S is the product(and) of several.
Given this 3-SAT problem: (x1 or x2 or x3) AND (¬x1 or ¬x2 or ¬x2) AND (¬x3 or ¬x1 or x2) 1. Draw the graph that you would use if you want to solve this.
Introduction to NP Instructor: Neelima Gupta 1.
COSC 3101A - Design and Analysis of Algorithms 14 NP-Completeness.
COMPLEXITY. Satisfiability(SAT) problem Conjunctive normal form(CNF): Let S be a Boolean expression in CNF. That is, S is the product(and) of several.
1 The Theory of NP-Completeness 2 Review: Finding lower bound by problem transformation Problem X reduces to problem Y (X  Y ) iff X can be solved by.
ICS 353: Design and Analysis of Algorithms NP-Complete Problems King Fahd University of Petroleum & Minerals Information & Computer Science Department.
The Theory of NP-Completeness
Complexity Classes.
The NP class. NP-completeness
NP-Completeness (2) NP-Completeness Graphs 4/13/2018 5:22 AM x x x x x
More NP-Complete and NP-hard Problems
P & NP.
Chapter 10 NP-Complete Problems.
Richard Anderson Lecture 26 NP-Completeness
Advanced Algorithms Analysis and Design
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
Richard Anderson Lecture 26 NP-Completeness
NP-Completeness Yin Tat Lee
ICS 353: Design and Analysis of Algorithms
Intro to NP Completeness
NP-Completeness (2) NP-Completeness Graphs 11/23/2018 2:12 PM x x x x
Richard Anderson Lecture 28 NP-Completeness
Approximation Algorithms
NP-Completeness Yin Tat Lee
CSE 6408 Advanced Algorithms.
NP-Completeness Yin Tat Lee
The Theory of NP-Completeness
Instructor: Aaron Roth
Dominating Set By Eric Wengert.
Instructor: Aaron Roth
NP-Completeness (2) NP-Completeness Graphs 7/9/2019 6:12 AM x x x x x
ADVANCED COMPUTATIONAL MODELS AND ALGORITHMS
Lecture 24 Vertex Cover and Hamiltonian Cycle
Presentation transcript:

Instructor: Dr. GautamDas February 24, 2009 Class notes by Ranganath M R

Overview NP Hard Problems P Space (Polynomial Space) Quantified SAT (P Space complete problem) Deterministic Approximation Algorithms Vertex Cover approximation algorithm.

NP Hard Problems A problem p belongs to NP – Hard if, p is as hard as any NP complete problem i.e. if any NP complete problem ≤ p p ii is not known to have a polynomial verification time for p.

P Space (Polynomial space) A problem p belongs to P Space if, There exists an algorithm to solve the problem that only requires a polynomial amount of extra memory. Input : n Extra memory polynomial (n) The P Space extends even outside the NP complete space and Co-NP Space

Example The SAT problem is closed under P Space. We can have an integer whose length in bits is equal to the number of variables of the SAT problem. Example if we 8 variables in SAT, then we take an integer with 8 bits(byte). Each bit of the integer represents the variable of the SAT problem. Hence the entire truth assignments can be verified in extra space which is poynomial.

Quantified SAT problem Example: let f: (X 1 v X2) ^ (X1 v X3 bar ) ^ (X2 v X1 v X3 bar v X4 bar ) Does there exist X1 and X2 such that for all X3 and X4 f(X1, X2,X3,X4) = 1 (true). This Problem is P space complete as this problem takes extra memory which is not polynomial. This is because we should check the function F, for every value of X3 and X4 when X1 and X2 are fixed. Hence this problem is P Space complete.

In general, if a problem of the sort ( there exists ………….For all ……….. There exists…………for all) are all P space complete.

Deterministic Approximation Algorithms Vertex Cover Problem: Input: G(V,E) Vertex Cover Problem: Approx algorithm A for the VC problem is one that produces a VC, V approx such that A runs in poly time 1 ≤ (V approx / V opt ) ≤ C. V opt is the optimal Vertex cover for the same graph C is some constant.

An approximation algorithm for VC Lets us consider this graph for the VC problem. A CD B E

Approximation Algorithm for calculating VC Step1: Select any edge, then add the two nodes which are at the edge into the VC set. Step2: Delete all the edges originating from those two verticies. Step3: If all the edges are not covered, then go to step 1 Else : we have the VC being the approximate vertex cover set.

Example of the problem Select edge BE. V approx = {B,E} A CD B E

Now the edges are originating from B and E are removed. VC = {B,E} A CD B E

Now select AC. V approx = {B,E,A,C} A CD B E

Now no edges are remaining hence V approx = {B,E,A,C} A CD B E

Now, the V opt, should atleast contain two of the vertices or more. A CD B E

Hence in general, the if the Vapprox contains 2L nodes, the Vopt will contain atleast L nodes. Hence C in this case is less than or equal to 2L/L.