On the complexity of orthogonal compaction maurizio patrignani univ. rome III.

Slides:



Advertisements
Similar presentations
Orthogonal Drawing Kees Visser. Overview  Introduction  Orthogonal representation  Flow network  Bend optimal drawing.
Advertisements

Max Cut Problem Daniel Natapov.
Lecture 22: April 18 Probabilistic Method. Why Randomness? Probabilistic method: Proving the existence of an object satisfying certain properties without.
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 
CSC5160 Topics in Algorithms Tutorial 2 Introduction to NP-Complete Problems Feb Jerry Le
Complexity 11-1 Complexity Andrei Bulatov NP-Completeness.
CS21 Decidability and Tractability
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.
Techniques for Proving NP-Completeness
1 Polynomial Church-Turing thesis A decision problem can be solved in polynomial time by using a reasonable sequential model of computation if and only.
1 Optimization problems such as MAXSAT, MIN NODE COVER, MAX INDEPENDENT SET, MAX CLIQUE, MIN SET COVER, TSP, KNAPSACK, BINPACKING do not have a polynomial.
Approximation Algorithms Lecture for CS 302. What is a NP problem? Given an instance of the problem, V, and a ‘certificate’, C, we can verify V is in.
Reduction Techniques Restriction Local Replacement Component Design Examples.
NP-Complete Problems Reading Material: Chapter 10 Sections 1, 2, 3, and 4 only.
Computability and Complexity 16-1 Computability and Complexity Andrei Bulatov NP-Completeness.
The Theory of NP-Completeness
NP-Complete Problems Problems in Computer Science are classified into
Analysis of Algorithms CS 477/677
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,
Time Complexity.
CSE 421 Algorithms Richard Anderson Lecture 27 NP Completeness.
Integer Programming Difference from linear programming –Variables x i must take on integral values, not real values Lots of interesting problems can be.
Complexity results for three-dimensional orthogonal graph drawing maurizio “titto” patrignani third university of rome graph drawing 2005.
The complexity of the matching-cut problem Maurizio Patrignani & Maurizio Pizzonia Third University of Rome.
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.
The minimum reload s-t path/trail/walk problems Current Trends in Theory and Practice of Comp. Science, SOFSEM09 L. Gourvès, A. Lyra, C. Martinhon, J.
The minimum reload s-t path/trail/walk problems Current Trends in Theory and Practice of Comp. Science, SOFSEM09 L. Gourvès, A. Lyra, C. Martinhon, J.
1 1. Draw the machine schema for a TM which when started with input 001 halts with abbb on the tape in our standard input format. 2. Suppose you have an.
The Complexity of Optimization Problems. Summary -Complexity of algorithms and problems -Complexity classes: P and NP -Reducibility -Karp reducibility.
CSEP 521 Applied Algorithms Richard Anderson Lecture 10 NP Completeness.
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
A split&push approach to 3D orthogonal drawings giuseppe di battista univ. rome III maurizio patrignani univ. rome III francesco vargiu aipa.
1 3-COLOURING: Input: Graph G Question: Does there exist a way to 3-colour the vertices of G so that adjacent vertices are different colours? 1.What could.
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.
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.
1 The Theory of NP-Completeness 2 Cook ’ s Theorem (1971) Prof. Cook Toronto U. Receiving Turing Award (1982) Discussing difficult problems: worst case.
Unit 9: Coping with NP-Completeness
NP-Complete Problems. Running Time v.s. Input Size Concern with problems whose complexity may be described by exponential functions. Tractable problems.
Complexity results for three-dimensional orthogonal graph drawing maurizio patrignani third university of rome graph drawing dagstuhl
NP-Completeness (Nondeterministic Polynomial Completeness) Sushanth Sivaram Vallath & Z. Joseph.
CS 3343: Analysis of Algorithms Lecture 25: P and NP Some slides courtesy of Carola Wenk.
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.
CS6045: Advanced Algorithms NP Completeness. NP-Completeness Some problems are intractable: as they grow large, we are unable to solve them in reasonable.
Chapter 11 Introduction to Computational Complexity Copyright © 2011 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1.
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
NP-Completeness Note. Some illustrations are taken from (KT) Kleinberg and Tardos. Algorithm Design (DPV)Dasgupta, Papadimitriou, and Vazirani. Algorithms.
Complexity ©D.Moshkovits 1 2-Satisfiability NOTE: These slides were created by Muli Safra, from OPICS/sat/)
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness Proofs.
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.
COSC 3101A - Design and Analysis of Algorithms 14 NP-Completeness.
 2005 SDU Lecture15 P,NP,NP-complete.  2005 SDU 2 The PATH problem PATH = { | G is a directed graph that has a directed path from s to t} s t
TU/e Algorithms (2IL15) – Lecture 10 1 NP-Completeness, II.
ICS 353: Design and Analysis of Algorithms NP-Complete Problems King Fahd University of Petroleum & Minerals Information & Computer Science Department.
Computing NodeTrix Representations of Clustered Graphs
More NP-Complete and NP-hard Problems
Richard Anderson Lecture 26 NP-Completeness
Richard Anderson Lecture 26 NP-Completeness
Where Can We Draw The Line?
Richard Anderson Lecture 25 NP-Completeness
Richard Anderson Lecture 28 NP-Completeness
CS21 Decidability and Tractability
Lecture 24 Classical NP-hard Problems
Lecture 23 NP-Hard Problems
Presentation transcript:

on the complexity of orthogonal compaction maurizio patrignani univ. rome III

industrial plants data flow diagrams network topologies integrated circuits circuit schematics entity relationship diagrams orthogonal drawings

topology-shape-metrics approach V={1,2,3,4,5,6} E={(1,4),(1,5),(1,6), (2,4),(2,5),(2,6), (3,4),(3,5),(3,6)} planarization orthogonalization compaction

the compaction step input: an orthogonal representation or shape output: an orthogonal grid drawing without loss of generality we will consider only graphs without bends  22 3/2   /2 3/2  a(f) ·  - 2    /2 a(f) ·  + 2  a(f) = number of vertices of face f 1) 2) = 2 

minimizing total edge length minimizing area minimizing maximum edge length

state of the art orthogonal compaction wrt area was mentioned as open problem (G. Vijayan and A. Widgerson) linear time compaction heuristic based on rectangularization (R. Tamassia) optimal compaction wrt total edge length by means of ILP + branch & bound or branch & cut techniques (G. W. Klau and P. Mutzel) polynomial time compaction heuristic based on turn- regularization (S. Bridgeman, G. Di Battista, W. Didimo, G. Liotta, R. Tamassia, and L. Vismara)

formulating a decision problem x 2  x 4 x 1  x 2  x 3  x 1  x 2  x 3  x 4 x3x3  problem: satisfiability (SAT) instance: a set of clauses, each containing literals from a set of boolean variables question: can truth values be assigned to the variables so that each clause contains at least one true literal? problem: orthogonal area compaction instance: an orthogonal representation H and a value k question: can an orthogonal drawing of H be found such that its area is less or equal to k? variable set ={x 1, x 2, x 3, x 4 }

reduction compacted as much as possible not compacted as much as possible local and global properties SAT instance compacted drawing SAT solution

sliding rectangles gadget n times r r r r l l l l r r r r n times r r r r l l l l r r r r n times r r r r l l l l r r r r 123n...

transferable path properties r r r l l l l r r l l l l r r r removing inserting

a global property made local a variant of the sliding rectangles gadget an exponential number of orthogonal drawings with the minimum area

( parenthesis parenthesis ) different “shapes” all sharing the same orthogonal shape

NP-hardness proof x 3 false x 2 true x 1 false x 4 true x 5 true clause 1 clause 2 clause 3 clause 4

clause gadget x i is falsex i is true x i does not occur in the clause x i occurs in theclause with a positive literal x i occurs in the clause with a negative literal ? ? ? ? one is missing!

clause gadget example variable set ={x 1, x 2, x 3 } x 1  x 2 clause true false true false true false x1 x2x1 x2 x 1  x 2 but we have only five “A”-shaped structures!

an example x 2  x 4 x 1  x 2  x 3  x 1  x 2  x 3  x 4 x3x3  clause 2clause 3clause 4clause 1 x 1 false x 3 false x 2 true x 4 true clause 1 clause 2 clause 3 clause 4

NP-completeness property:the compaction problem with respect to area is NP-hard property:the compaction problem with respect to area is in NP theorem: the compaction problem with respect to area is NP-complete

compaction with respect to total edge length corollary:the compaction problem with respect to total edge length is NP-complete

compaction with respect to maximum edge length corollary:the compaction problem with respect to maximum edge length is NP-complete

approximability considerations does not admit a polinomial-time approximation scheme (not in PTAS) 3 3

conclusions we have shown that the compaction problem with respect to area, total edge length, or maximum edge length is NP- complete we have shown that the three problems are not in PTAS it is possible to modify the constructions so to have biconnected orthogonal representations does an orthogonal representation consisting in a single cycle retain the complexity of the three general problems? how many classes (rectangular, turn- regular,...) of orthogonal representations admit a polynomial solution? open problems