PC-Trees Based on a paper by Hsu and McConnell. Talk Outline We Define the consecutive ones and circular ones problems We show PQ Trees – the traditional.

Slides:



Advertisements
Similar presentations
Section 2.5: Graphs and Trees
Advertisements

Graphs and Finding your way in the wilderness
Interval Graph Test.
8.3 Representing Relations Connection Matrices Let R be a relation from A = {a 1, a 2,..., a m } to B = {b 1, b 2,..., b n }. Definition: A n m  n connection.
PHYLOGENETIC TREES Bulent Moller CSE March 2004.
Augmenting Data Structures Advanced Algorithms & Data Structures Lecture Theme 07 – Part I Prof. Dr. Th. Ottmann Summer Semester 2006.
1/44 A simple Test For the Consecutive Ones Property.
Rooted Routing Using Structural Decompositions Jiao Tong University Shanghai, China June 17, 2013.
1 Steiner Tree on graphs of small treewidth Algorithms and Networks 2014/2015 Hans L. Bodlaender Johan M. M. van Rooij.
Overlay of Two Subdivisions
Train DEPOT PROBLEM USING PERMUTATION GRAPHS
Anagh Lal Monday, April 14, Chapter 9 – Tree Decomposition Methods Anagh Lal CSCE Advanced Constraint Processing.
What is the next line of the proof? a). Let G be a graph with k vertices. b). Assume the theorem holds for all graphs with k+1 vertices. c). Let G be a.
Perfect Graphs Lecture 23: Apr 17. Hard Optimization Problems Independent set Clique Colouring Clique cover Hard to approximate within a factor of coding.
Contents Introduction Related problems Constructions –Welch construction –Lempel construction –Golomb construction Special properties –Periodicity –Nonattacking.
Is the following graph Hamiltonian- connected from vertex v? a). Yes b). No c). I have absolutely no idea v.
Tirgul 13. Unweighted Graphs Wishful Thinking – you decide to go to work on your sun-tan in ‘ Hatzuk ’ beach in Tel-Aviv. Therefore, you take your swimming.
Using PQ Trees For Comparative Genomics - CPM Using PQ Trees For Comparative Genomics Gad M. Landau – Univ. of Haifa Laxmi Parida – IBM T.J. Watson.
ARCHEOLOGICAL SERIATION AND INTERVAL GRAPHS
What is the next line of the proof? a). Assume the theorem holds for all graphs with k edges. b). Let G be a graph with k edges. c). Assume the theorem.
Applied Discrete Mathematics Week 10: Equivalence Relations
1 PQ Trees, PC Trees, and Planar Graphs Hsu & McConnell Presented by Roi Barkan.
Properties of Graphs of Quadratic Functions
Tractable Symmetry Breaking Using Restricted Search Trees Colva M. Roney-Dougal, Ian P. Gent, Tom Kelsey, Steve Linton Presented by: Shant Karakashian.
Physical Mapping of DNA Shanna Terry March 2, 2004.
Simple Efficient Algorithm for MPQ-tree of an Interval Graph Toshiki SAITOH Masashi KIYOMI Ryuhei UEHARA Japan Advanced Institute of Science and Technology.
A Test for the Consecutive Ones Property 1/39. Outline Consecutive ones property PQ-trees Template operations Complexity Analysis –The most time consuming.
Graphing Polynomial Functions. Graphs of Polynomial Functions 1. Polynomials have smooth, continuous curves 2. Continuous means it can be drawn without.
Modular Decomposition and Interval Graphs recognition Speaker: Asaf Shapira.
Characterizing Matrices with Consecutive Ones Property
Introduction to Planarity Test W. L. Hsu. Plane Graph A plane graph is a graph drawn in the plane in such a way that no two edges intersect A plane graph.
Finding maximal planar subgraphs Wen-Lian Hsu 1/33.
Cayley graphs formed by conjugate generating sets of S_n Jacob Steinhardt.
Class Opener:. Identifying Matrices Student Check:
Introduction to Planarity Test W. L. Hsu. 2/21 Plane Graph A plane graph is a graph drawn in the plane in such a way that no two edges intersect –Except.
Solution of Sparse Linear Systems
Hard Problems Some problems are hard to solve.  No polynomial time algorithm is known.  E.g., NP-hard problems such as machine scheduling, bin packing,
Branch-and-Cut Valid inequality: an inequality satisfied by all feasible solutions Cut: a valid inequality that is not part of the current formulation.
CSCI 171 Presentation 9 Matrix Theory. Matrix – Rectangular array –i th row, j th column, i,j element –Square matrix, diagonal –Diagonal matrix –Equality.
Chapter 1 Linear Algebra S 2 Systems of Linear Equations.
Relation. Combining Relations Because relations from A to B are subsets of A x B, two relations from A to B can be combined in any way two sets can be.
Warm-up Solve each system of equations:
Representing Relations Using Matrices A relation between finite sets can be represented using a zero-one matrix Suppose R is a relation from A = {a 1,
PC-Trees & PQ-Trees. 2 Table of contents Review of PQ-trees –Template operations Introducing PC-trees The PC-tree algorithm –Terminal nodes –Splitting.
UNC Chapel Hill M. C. Lin Delaunay Triangulations Reading: Chapter 9 of the Textbook Driving Applications –Height Interpolation –Constrained Triangulation.
February 17, 2005Lecture 6: Point Location Point Location (most slides by Sergi Elizalde and David Pritchard)
Final Review Chris and Virginia. Overview One big multi-part question. (Likely to be on data structures) Many small questions. (Similar to those in midterm.
S&H Planarity Test Based on PC-Trees Wen-Lian Hsu.
PC-Trees vs. PQ-Trees. 2 Table of contents Review of PQ-trees –Template operations Introducing PC-trees The PC-tree algorithm –Terminal nodes –Splitting.
Interval Graph Test Wen-Lian Hsu.
CS 290H Lecture 9 Left-looking LU with partial pivoting Read “A supernodal approach to sparse partial pivoting” (course reader #4), sections 1 through.
1/44 A simple Test For the Consecutive Ones Property Without PC-trees!
An Algorithm for the Consecutive Ones Property Claudio Eccher.
Week 11 - Wednesday.  What did we talk about last time?  Graphs  Paths and circuits.
EMIS 8373: Integer Programming Combinatorial Optimization Problems updated 27 January 2005.
PC-Trees & PQ-Trees. 2 Table of contents Review of PQ-trees –Template operations Introducing PC-trees The PC-tree algorithm –Terminal nodes –Splitting.
CHAPTER 7 Determinant s. Outline - Permutation - Definition of the Determinant - Properties of Determinants - Evaluation of Determinants by Elementary.
Solving Quadratic Equations by Graphing Need Graph Paper!!! Objective: 1)To write functions in quadratic form 2)To graph quadratic functions 3)To solve.
Part 3 Linear Programming
PC trees and Circular One Arrangements
What is the next line of the proof?
Algorithms and networks
Solving a Quadratic Equation by Graphing
Part 3 Linear Programming
CSE 589 Applied Algorithms Spring 1999
Characterizing Matrices with Consecutive Ones Property
Part 3 Linear Programming
Dispatch  .
3.5 Perform Basic Matrix Operations Algebra II.
U4D11 Have out: Bellwork: 4 4 total: Solve for x. a) b) c)
Presentation transcript:

PC-Trees Based on a paper by Hsu and McConnell

Talk Outline We Define the consecutive ones and circular ones problems We show PQ Trees – the traditional way to solve it We show PC Trees, which are simpler to update and more general in their uses We show how to use this to recognize if a graph is an interval graph, and to recognize if a graph is planar

Consecutive ones Given a n*m matrix, find a permutation of the columns such that the ones in each row are consecutive Each row is a contraint.

How would you approach the consecutive ones problem?

Consecutive ones Solution: We want a Data Structure that holds ALL valid permutations of columns. At each step we integrate the new constraint into the set of solutions Each row is a contraint.

PQ Tree Represents a set of permutations Permutation elements are leaves P nodes allow arbitrary permutation Q nodes allow only reversal

Manipulation of PQ Tree

PQ Tree Represents the permutations: 23415, 23451, 23514, 23541, 23145, 23154, 41523, 45123, 51423, 54123, 14523, 15423

ABCDEFG AB C D E F G Example 1

Example 2 ABC ABC

Old Algorithm for Consecutive Ones (Booth and Lueker) Build initial PQ Tree Go over the rows of the matrix in order. A row is a constraint. Update the tree accordingly. If at the end you have a solution, return it. PROBLEM – updating of the tree is difficult! (because of “templates”). OBSERVATION – templates are complicated because of lack of symmetry – the root is “special” SOLUTION – Generate symmetry: Ciruclar Ones and PC Trees

Circular ones Given a n*m matrix, find a re-ordering of the columns such that the ones in each row are consecutive, modulo the table boundary Each row is a contraint.

Consecutive Ones (non-symmetric) Circular Ones (symmetric) PC Tree (symmetric) BEFORE AFTER Consecutive Ones (non-symmetric) PQ Tree (non-symmetric) – complicated updating Reduction (add 0 column) solved using

PC Trees Unrooted – all nodes have same “importance” Represents circular permutations P nodes – allow arbitrary permutation on edges C nodes – allow reversing of order of edges

Manipulation of PC Tree

Advantages of PC Tree Simpler Update Wider Applicability

Interval Graph Recognition An Interval Graph is the intersection graph of set of intervals How can we recognize if a graph is an interval graph?

Interval Graph Recognition Let us look at its maximal cliques, and define the clique matrix Theorem: A chordal graph is an interval graph iff the clique matrix has the consecutive ones property

Interval Graph Recognition Given a graph: Check if it is chordal. If not, it is not an interval graph If it is chordal, “compute” its clique matrix Check if it has the consecutive ones property – there, you have your answer.

Planarity testing We no longer use PC- Trees, but PC- Graphs: Graphs with P nodes and C nodes At each step we add a vertex to the graph and update it to represent all “planar embeddings” of our graph

Planarity testing Planar Graphs are invariant under stretching and rotation We think of the locations of all vertices around a single vertex as the “constraints” on it.

Planarity testing For example, when we add a vertex, we can always “flip over” the rest of the graphs and the orderings there, and still get an embedding. So this corresponds to a C-node This is more complicated than solving circular ones, but uses similar technology, plus some graph-theory

Morals 1.Find the “real” model of the problem 2.Don’t stick to dogmatic ways of thinking (or: Americans spend billions of dollars on inventing a pen that writes in zero gravity. Russians use pencils)