Complexity results for three-dimensional orthogonal graph drawing maurizio “titto” patrignani third university of rome graph drawing 2005.

Slides:



Advertisements
Similar presentations
Proof of correctness; More reductions
Advertisements

Complexity Classes: P and NP
Complexity ©D.Moshkovits 1 Where Can We Draw The Line? On the Hardness of Satisfiability Problems.
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 
CS Department Fireside Chat All are welcome! Wed Nov 18, 5-6pm, Ols 228e/236d Kim Hazelwood and Wes Weimer Meet and ask them questions in a non-academic.
On the complexity of orthogonal compaction maurizio patrignani univ. rome III.
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.
Computability and Complexity 16-1 Computability and Complexity Andrei Bulatov NP-Completeness.
The Theory of NP-Completeness
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 23 Instructor: Paul Beame.
Analysis of Algorithms CS 477/677
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 24 Instructor: Paul Beame.
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.
Clique Cover Cook’s Theorem 3SAT and Independent Set
Chapter 5: Computational Complexity of Area Minimization in Multi-Layer Channel Routing and an Efficient Algorithm Presented by Md. Raqibul Hasan Std No.
1.1 Chapter 1: Introduction What is the course all about? Problems, instances and algorithms Running time v.s. computational complexity General description.
The complexity of the matching-cut problem Maurizio Patrignani & Maurizio Pizzonia Third University of Rome.
Complexity Classes Kang Yu 1. NP NP : nondeterministic polynomial time NP-complete : 1.In NP (can be verified in polynomial time) 2.Every problem in NP.
Graph Coalition Structure Generation Maria Polukarov University of Southampton Joint work with Tom Voice and Nick Jennings HUJI, 25 th September 2011.
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.
MCS 312: NP Completeness and Approximation algorithms Instructor Neelima Gupta
Tonga Institute of Higher Education Design and Analysis of Algorithms IT 254 Lecture 8: Complexity Theory.
Theory of Computation, Feodor F. Dragan, Kent State University 1 NP-Completeness P: is the set of decision problems (or languages) that are solvable in.
The Complexity of Optimization Problems. Summary -Complexity of algorithms and problems -Complexity classes: P and NP -Reducibility -Karp reducibility.
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.
CSCI 3160 Design and Analysis of Algorithms Tutorial 10 Chengyu Lin.
1 The Theory of NP-Completeness 2 Cook ’ s Theorem (1971) Prof. Cook Toronto U. Receiving Turing Award (1982) Discussing difficult problems: worst case.
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
Lecture 6 NP Class. P = ? NP = ? PSPACE They are central problems in computational complexity.
Instructor Neelima Gupta Table of Contents Class NP Class NPC Approximation Algorithms.
NP-Complete Problems Algorithm : Design & Analysis [23]
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.
CSC 413/513: Intro to Algorithms
Young CS 331 D&A of Algo. NP-Completeness1 NP-Completeness Reference: Computers and Intractability: A Guide to the Theory of NP-Completeness by Garey and.
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.
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.
Computability Examples. Reducibility. NP completeness. Homework: Find other examples of NP complete problems.
CS 154 Formal Languages and Computability May 10 Class Meeting Department of Computer Science San Jose State University Spring 2016 Instructor: Ron Mak.
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.
TU/e Algorithms (2IL15) – Lecture 10 1 NP-Completeness, II.
Computing NodeTrix Representations of Clustered Graphs
Richard Anderson Lecture 26 NP-Completeness
COMPLEXITY THEORY IN PRACTICE
Richard Anderson Lecture 26 NP-Completeness
Hard Problems Introduction to NP
CS21 Decidability and Tractability
Where Can We Draw The Line?
More NP-complete Problems
NP-Completeness Proofs
Clustered Planarity = Flat Clustered Planarity
CSE 6408 Advanced Algorithms.
NP-Completeness Yin Tat Lee
CS21 Decidability and Tractability
Presentation transcript:

complexity results for three-dimensional orthogonal graph drawing maurizio “titto” patrignani third university of rome graph drawing 2005

three-dimensional orthogonal drawings nodes are (distinct) points in 3D space edges are composed by sequences of axis- parallel segments node bend edge

what we know existence –only graphs of maximum degree six admit such drawings –all graphs of maximum degree six admit such drawings volume –  (n 3/2 ) [rosenberg 1983] –  (n 3/2 ) [eades, stirk, and whitesides 1996] bends –in the optimal O(n 3/2 ) volume we can draw with up to 7 bends per edge in O(n 3/2 ) time [eades, symvonis, and whitesides 2000] –in O(n 3 ) volume we can draw with up to 3 bends per edges in linear time [papakostas and tollis 1999][eades, symvonis, and whitesides, 2000] –in O(n 2 ) volume we can draw with 6 bends per edge in linear time and handle insertions/deletions in O(1) time [closson, gartshore, johansen, and wismath. 2000]

what we do not know 1.is three bends per edge the lower bound? or rather: does every graph admit a 2-bend drawing? 2.can we extend to 3D the topology-shape- metrics approach?

2-bend drawing problem an algorithm to produce 2-bends drawings could be particularly effective for information visualization is such algorithm does not exists then the algorithms we have are the best possible the K 7 graph that was thought to require 3 bends turned out to admit a 2-bend drawing [wood ’97] problem #46 of the open problem project [demaine, mitchell, and o’rourke]

topology-shape-metrics approach in 2D 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

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

simple and not simple shape graphs simple shape graph (admitting non-intersecting metrics) not simple shape graph (always intersects)

simplicity testing in 3D known results: –simplicity test for cycles [di battista, liotta, lubiw, and whitesides, ‘01] –simplicity test for paths (with additional constraints) [di battista, liotta, lubiw, and whitesides, ‘02] –the above two characterizations are not easy to extend to simple graphs (theta graphs) [di giacomo, liotta, and patrignani, ‘04] simplicity testing is an open problem in the general case –problem #20 of [brandenburg, eppstein, goodrich, kobourov, liotta, and mutzel. ’03]

two open problems 1.existence of a 2-bend drawing 2.simplicity testing can complexity considerations give us some insight?

what we show given a 6-degree graph we prove that: simplicity testing is NP-complete if you fix edge shapes (with a maximum of 2 bends per edge) finding the metrics corresponding to a non intersecting drawing is NP-complete 2-bend routing is NP-complete if you fix node positions finding a routing without intersections with a maximum of two bends per edge is NP-complete

how we prove the statements reductions from the 3SAT problem: instance: a set of clauses {c 1, c 2, …, c m } each containing three literals from a set of boolean variables {v 1, v 2, …, v n } question: can truth values be assigned to the variables so that each clause contains at least one true literal? example of 3SAT instance: (v 1  v 3  v 4 )  (v 1  v 2  v 5 )  (v 2  v 3  v 5 ) c1c1 c2c2 c3c3

we consider a generic target problem structure of the target problem: instance: a graph G and a set of constraints S expressed with respect to its nodes and edges question: does G admit a 3D orthogonal drawing satisfying S?

the 3SAT reduction framework variable gadgets clause gadgets joint gadgets

use of the 3SAT framework theorem if these four statements are true –there is at least one non intersecting drawing for each truth assignment satisfying the 3SAT instance –in any non intersecting drawing if a variable gadget is true, the corresponding joint gadget is true and vice versa –in any non intersecting drawing of a clause gadget one of the literals is true –the construction can be done in polynomial time then the target problem is NP-hard

simplicity testing problem instance: a graph G and a shape for each edge question: does G admit a 3D orthogonal drawing where the edges have the prescribed shape?

variable gadget true variable false variable

variable gadget propagating truth values false variable

joint-gadget T T F F

T T T F F F F T

clause gadget from the joint gadget from the joint gadget from the variable gadget

all literals false  intersecting clause gadget F F F F F T F F F T T T F F T T T T F F T T T T

2-bend routing problem instance: a graph G and the coordinates for its nodes question: does G admit a 2-bend orthogonal drawing where the nodes have such coordinates?

variable gadget false variable true variable

variable gadget propagating truth values variable gadget to clause gadget c 1 to clause gadget c 2 to clause gadget c 3

joint gadget from the variable gadget

joint gadget from the variable gadget

joint gadget from the variable gadget to the clause gadget

conclusions simplicity testing is NP-hard any characterization of simple orthogonal shapes involves a hard computation even if we were able to find simple orthogonal shapes the compaction step would be NP-hard open problems: –are there classes of graphs such that the compaction step is polynomial? –given a generic graph, are there families of shapes such that the metrics can always be computed in polynomial time?

conclusions 2-bend routing is NP-hard yet another problem where two bends per edge implies NP-hardness two bends per edge + fixed shape  NP-hardness two bends per edge + fixed positions  NP-hardness two bends per edge + diagonal layout  NP-hardness [wood, 2004] open problem: –what is the problem of finding a 2-bend drawing of a graph?

thank you!