Complexity Theory in Practice

Slides:



Advertisements
Similar presentations
NP-Completeness.
Advertisements

NP-Hard Nattee Niparnan.
Complexity ©D.Moshkovits 1 Where Can We Draw The Line? On the Hardness of Satisfiability Problems.
JAYASRI JETTI CHINMAYA KRISHNA SURYADEVARA
Generalization and Specialization of Kernelization Daniel Lokshtanov.
Max Cut Problem Daniel Natapov.
Theory of Computing Lecture 18 MAS 714 Hartmut Klauck.
1 NP-Complete Problems. 2 We discuss some hard problems:  how hard? (computational complexity)  what makes them hard?  any solutions? Definitions 
PCPs and Inapproximability Introduction. My T. Thai 2 Why Approximation Algorithms  Problems that we cannot find an optimal solution.
Complexity 16-1 Complexity Andrei Bulatov Non-Approximability.
CSC5160 Topics in Algorithms Tutorial 2 Introduction to NP-Complete Problems Feb Jerry Le
NP-Complete Problems Reading Material: Chapter 10 Sections 1, 2, 3, and 4 only.
The Theory of NP-Completeness
Analysis of Algorithms CS 477/677
Computability and Complexity 24-1 Computability and Complexity Andrei Bulatov Approximation.
CSE 421 Algorithms Richard Anderson Lecture 27 NP Completeness.
Fixed Parameter Complexity Algorithms and Networks.
Approximation Algorithms Department of Mathematics and Computer Science Drexel University.
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.
Lecture 22 More NPC problems
Approximation Algorithms
CSCI 3160 Design and Analysis of Algorithms Chengyu Lin.
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.
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.
+ Unit 1 – First degree equations and inequalities Chapter 3 – Systems of Equation and Inequalities 3.1 – Solving Systems by Graphing.
Chapter 11 Introduction to Computational Complexity Copyright © 2011 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1.
NPC.
COSC 3101A - Design and Analysis of Algorithms 14 NP-Completeness.
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.
Construction We constructed the following graph: This graph has several nice properties: Diameter Two Graph Pebbling Tim Lewis 1, Dan Simpson 1, Sam Taggart.
Fixed Parameter Tractability for Graph Drawing Sue Whitesides Computer Science Department.
ICS 353: Design and Analysis of Algorithms NP-Complete Problems King Fahd University of Petroleum & Minerals Information & Computer Science Department.
The NP class. NP-completeness
More NP-Complete and NP-hard Problems
NP-completeness Ch.34.
Chapter 10 NP-Complete Problems.
8.3.2 Constant Distance Approximations
8.2 – Strong NP Completeness
Richard Anderson Lecture 26 NP-Completeness
COMPLEXITY THEORY IN PRACTICE
Computability and Complexity
Richard Anderson Lecture 26 NP-Completeness
Approximate Algorithms (chap. 35)
Hard Problems Introduction to NP
Design and Analysis of Algorithm
Chapter 4: Using NP-Completeness to Analyze Subproblems
NP-Completeness Yin Tat Lee
Intro to Theory of Computation
Computability and Complexity
Where Can We Draw The Line?
ICS 353: Design and Analysis of Algorithms
Complexity 6-1 The Class P Complexity Andrei Bulatov.
Intro to NP Completeness
More NP-complete Problems
Richard Anderson Lecture 25 NP-Completeness
Chapter 11 Limitations of Algorithm Power
NP-Complete Problems.
NP-Completeness Yin Tat Lee
CSE 6408 Advanced Algorithms.
NP-Completeness Yin Tat Lee
CS154, Lecture 16: More NP-Complete Problems; PCPs
Ch09 _2 Approximation algorithm
Complexity Theory in Practice
15th Scandinavian Workshop on Algorithm Theory
Instructor: Aaron Roth
Lecture 23 NP-Hard Problems
Presentation transcript:

Complexity Theory in Practice -Benjamin Daggolu

Introduction Knowing that a problem is NP-hard or worse does not disappear the problem, we need to design an algorithm to solve it. Approximation algorithm- runs quickly and returns good results. Probabilistic approach- uses efficient algorithms that returns optimal results in most cases but may fail miserably in some cases.

Very little can be said about which technique can be used to solve a specific problem. The complexity theory helps the algorithms designer in assessing hard problems bases on their complexity.

8.1 Circumscribing Hard Problems It is not fully clear that a program is correct, under certain inputs it may fail. Most of the instances of the problems are easily solvable i.e. the solution algorithm runs quickly on most or all instances to which it applies.

It is not possible to measure the time required by an algorithm on a single instance in usual terms like polynomial or exponential as these terms are defined only for infinite classes of instances. Hence we consider only some restricted versions of hard problems to examine their complexity

Restrictions of Hard Problems SAT problem is NP complete and it remains so even if it is restricted to instances where each clause contains exactly three literals. SAT problem becomes tractable when restricted to instances where each clause contains at most two literals. In terms of the number of literals per clause different variants of the problem can be classified.

Other dimensions: We can consider the number of times a variable may appear among all clauses. A satisfiability problem with instances containing k literals and each variable appears at most l times among all clauses is called as k,l-SAT

3,4-SAT is NP-complete. (Page no-288) It contains 3 literals and each variable appears at most 4 times among all clauses

Binpacking problem: Instance of this problem is given by a set ‘S’ of elements each with size s:S->N, and with a bin size ‘B’. The goal of this problem is to pack all the elements into the smallest number of bins.

Restricted Binpacking problem: Let the problem be restricted only to the instances where all the elements have sizes at least equal to a third of the bin size. Now the restricted problem can be claimed to be solved in polynomial time.

The solution for the restricted problem involves preprocessing of identifying the elements which are at least a third of the bin size which takes at most linear time. Identify all possible pairs of elements that can fit together in a bin, which takes at most quadratic time.

Elect the largest subset of pairs that do not share any element which is a matching problem which can be solved in polynomial time. Overall the run time of the algorithm is dominated by the run time of the matching algorithm which is a low polynomial. Hence the binpacking algorithm is optimal.

Planar G3C is NP-complete Two crossing edges cannot share an endpoint; hence they are independent of each other from the point of view of coloring.

The crossing gadget must replace the two edges in such a way that -the gadget is planar and the three colorable -the coloring of original edge’s endpoint do not effect the coloring of the other edge -two endpoints of an original edge cannot be given the same color.

Embedding an arbitrary graph in a plane detecting all edge crossings and replacing each crossing with the gadget are all easily done in polynomial time. Planarity is not the only reasonable parameter involved in the graph. Other such parameter is the maximum degree of its vertices.

G3C is NP-complete even when restricted to instances where no vertex degree may exceed four. Replace any vertex of degree larger than four with a gadget such that: -the gadget is three colorable -there is connection for each vertex with the original vertex -all attaching points are colored identically.

Contd.. -Thank you!