Example Question on Linear Program, Dual and NP-Complete Proof COT5405 Spring 11.

Slides:



Advertisements
Similar presentations
Iterative Rounding and Iterative Relaxation
Advertisements

The Primal-Dual Method: Steiner Forest TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A A AA A A A AA A A.
ECE Longest Path dual 1 ECE 665 Spring 2005 ECE 665 Spring 2005 Computer Algorithms with Applications to VLSI CAD Linear Programming Duality – Longest.
Reducibility Class of problems A can be reduced to the class of problems B Take any instance of problem A Show how you can construct an instance of problem.
Vertex Cover Dominating Set These slides are based on the Lecture Notes by David Mount for the course CMSC 451 at the University of Maryland. The Copyright.
NP-Completeness: Reductions
NP-complete and NP-hard problems Transitivity of polynomial-time many-one reductions Concept of Completeness and hardness for a complexity class Definition.
1 NP-Complete Problems. 2 We discuss some hard problems:  how hard? (computational complexity)  what makes them hard?  any solutions? Definitions 
Complexity 16-1 Complexity Andrei Bulatov Non-Approximability.
CSC5160 Topics in Algorithms Tutorial 2 Introduction to NP-Complete Problems Feb Jerry Le
Complexity 11-1 Complexity Andrei Bulatov NP-Completeness.
Computability and Complexity 23-1 Computability and Complexity Andrei Bulatov Search and Optimization.
Computational problems, algorithms, runtime, hardness
The Complexity of the Network Design Problem Networks, 1978 Classic Paper Reading
February 23, 2015CS21 Lecture 201 CS21 Decidability and Tractability Lecture 20 February 23, 2015.
Computability and Complexity 15-1 Computability and Complexity Andrei Bulatov NP-Completeness.
Reduction Techniques Restriction Local Replacement Component Design Examples.
NP-Complete Problems Reading Material: Chapter 10 Sections 1, 2, 3, and 4 only.
Approximation Algorithms
NP-complete and NP-hard problems
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 23 Instructor: Paul Beame.
Last class Decision/Optimization 3-SAT  Independent-Set Independent-Set  3-SAT P, NP Cook’s Theorem NP-hard, NP-complete 3-SAT  Clique, Subset-Sum,
NP-complete examples CSC3130 Tutorial 11 Xiao Linfu Department of Computer Science & Engineering Fall 2009.
Black-box (oracle) Feed me a weighted graph G and I will tell you the weight of the max-weight matching of G.
Clique Cover Cook’s Theorem 3SAT and Independent Set
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.
The Theory of NP-Completeness 1. What is NP-completeness? Consider the circuit satisfiability problem Difficult to answer the decision problem in polynomial.
Fixed Parameter Complexity Algorithms and Networks.
Approximating Minimum Bounded Degree Spanning Tree (MBDST) Mohit Singh and Lap Chi Lau “Approximating Minimum Bounded DegreeApproximating Minimum Bounded.
MCS 312: NP Completeness and Approximation algorithms Instructor Neelima Gupta
Approximation Algorithms
EMIS 8373: Integer Programming NP-Complete Problems updated 21 April 2009.
Techniques for Proving NP-Completeness Show that a special case of the problem you are interested in is NP- complete. For example: The problem of finding.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
NP-Complete Problems. Running Time v.s. Input Size Concern with problems whose complexity may be described by exponential functions. Tractable problems.
NP-COMPLETE PROBLEMS. Admin  Two more assignments…  No office hours on tomorrow.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness and course wrap up.
Lecture 6 NP Class. P = ? NP = ? PSPACE They are central problems in computational complexity.
NP-Complete problems.
Instructor Neelima Gupta Table of Contents Class NP Class NPC Approximation Algorithms.
Approximation Algorithms Department of Mathematics and Computer Science Drexel University.
CSE 589 Part V One of the symptoms of an approaching nervous breakdown is the belief that one’s work is terribly important. Bertrand Russell.
Graphs A graphs is an abstract representation of a set of objects, called vertices or nodes, where some pairs of the objects are connected by links, called.
1 Latency-Bounded Minimum Influential Node Selection in Social Networks Incheol Shin
CSE 6311 – Spring 2009 ADVANCED COMPUTATIONAL MODELS AND ALGORITHMS Lecture Notes – March 12, 2009 ILP – Integer Linear Programming Approximate algorithm.
CPS Computational problems, algorithms, runtime, hardness (a ridiculously brief introduction to theoretical computer science) Vincent Conitzer.
Lecture 25 NP Class. P = ? NP = ? PSPACE They are central problems in computational complexity.
NP-completeness NP-complete problems. Homework Vertex Cover Instance. A graph G and an integer k. Question. Is there a vertex cover of cardinality k?
NPC.
NP Completeness Piyush Kumar. Today Reductions Proving Lower Bounds revisited Decision and Optimization Problems SAT and 3-SAT P Vs NP Dealing with NP-Complete.
CSC 413/513: Intro to Algorithms
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.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness Proofs.
The Theory of NP-Completeness 1. Nondeterministic algorithms A nondeterminstic algorithm consists of phase 1: guessing phase 2: checking If the checking.
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
Spanning Tree Definition:A tree T is a spanning tree of a graph G if T is a subgraph of G that contains all of the vertices of G. A graph may have more.
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.
The NP class. NP-completeness Lecture2. The NP-class The NP class is a class that contains all the problems that can be decided by a Non-Deterministic.
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
34.NP Completeness. Computer Theory Lab. Chapter 34P.2.
TU/e Algorithms (2IL15) – Lecture 10 1 NP-Completeness, II.
The NP class. NP-completeness
More NP-Complete and NP-hard Problems
The minimum cost flow problem
3.3 Applications of Maximum Flow and Minimum Cut
Linear Programming Duality, Reductions, and Bipartite Matching
Dominating Set By Eric Wengert.
Presentation transcript:

Example Question on Linear Program, Dual and NP-Complete Proof COT5405 Spring 11

Question Given an undirected connected graph G = (V,E) and a positive integer k ≤ |V|. Two vertices u and v are connected if and only if there exists at least one path from u to v. For all the possible vertex pairs, we want to remove k vertices from G, so that the number of connected vertex pairs in the resulting graph is minimized. We call it k-CNP (critical node problem)

Integer Program Variables: – u ij = 1 if vertex i and j are connected in the resulted graph, otherwise u ij = 0. Note u ii = 1. – v i = 1 if vertex i is removed, otherwise v i = 0. The objective function and 2 constraints vivi vjvj u ij

Leftover Connectivity Consider node pairs i and j, where (i,j) is NOT an edge. i j h i j h UijUjhUhi X

Final Formulation

LP relaxation

Dual

|E| rows 1 row

Ready to write dual How many constraints in Primal – How many constraints in Dual – Dual variable – For the constraint on (i,j) belonging to E, define x ij – For the constraint on i,j,h belonging to V, define y ijh – For the constraint on the aggregate v i, define z

Final Dual

NP-Complete Proof Decision Version – Given an undirected connected graph G and positive integer k – a value L<n(n-1)/2 – is there a set of k vertices, whose removal makes the number of connected vertex pairs in the resulting graph is at most L?

In NP Given such a set of k vertices, Remove them from the graph, Calculate the number of connected pairs using DFS or BFS in polynomial time, Compare with L – Give answer: Yes or No

Is NP-hard Reduction from Vertex Cover (VC) Instance of VC: given a graph G = (V,E) where |V|= n, is there a vertex cover of size at most k? Instance of k-CNP: on the graph G, is there a set of k vertices whose removal makes the # of connected pairs 0?

Is NP-hard Forward: If we can have a VC of size k ---> delete those k nodes ---> connectivity = 0 Backward: If we can delete k nodes to make # connections 0 --> no edges left -> vertex cover of size k

NP-Completeness In NP NP-hard For an alternative proof, please refer to A. Arulselvan et al, ``Detecting Critical Nodes In Sparse Graphs’’, J. Computers and Operations Research,

Thank You Q & A