Random Generation and Enumeration of Bipartite Permutation Graphs Toshiki Saitoh (JAIST, Japan) Yota Otachi (Gunma Univ., Japan) Katsuhisa Yamanaka (UEC,

Slides:



Advertisements
Similar presentations
Optimal Space Lower Bounds for All Frequency Moments David Woodruff MIT
Advertisements

Lower Bounds for Local Search by Quantum Arguments Scott Aaronson.
Introduction to Algorithms Graph Algorithms
What is a graph ? G=(V,E) V = a set of vertices E = a set of edges edge = unordered pair of vertices
Two Segments Intersect?
Shortest Vector In A Lattice is NP-Hard to approximate
Divide and Conquer. Subject Series-Parallel Digraphs Planarity testing.
Brute-Force Triangulation
Toshiki Saitoh ERATO, Minato Project, JST Subgraph Isomorphism in Graph Classes Joint work with Yota Otachi, Shuji Kijima, and Takeaki Uno The 14 th Korea-Japan.
YOU CAN locate and graph points on the coordinate plane.
The Coordinate Plane. A coordinate plane is formed when two number lines intersect. The coordinate plane is used to locate points. The two number lines.
Reconstruction Algorithm for Permutation Graphs Masashi Kiyomi, Toshiki Saitoh, and Ryuhei Uehara School of Information Science Japan Advanced Institute.
Automated Layout and Phase Assignment for Dark Field PSM Andrew B. Kahng, Huijuan Wang, Alex Zelikovsky UCLA Computer Science Department
Chapter 9 Graph algorithms. Sample Graph Problems Path problems. Connectedness problems. Spanning tree problems.
CSE 421 Algorithms Richard Anderson Lecture 4. What does it mean for an algorithm to be efficient?
Point Location Computational Geometry, WS 2007/08 Lecture 5 Prof. Dr. Thomas Ottmann Algorithmen & Datenstrukturen, Institut für Informatik Fakultät für.
RAPTOR CODES AMIN SHOKROLLAHI DF Digital Fountain Technical Report.
Lecture 6: Point Location Computational Geometry Prof. Dr. Th. Ottmann 1 Point Location 1.Trapezoidal decomposition. 2.A search structure. 3.Randomized,
Brute-Force Triangulation
Bipartite Permutation Graphs are Reconstructible Toshiki Saitoh (ERATO) Joint work with Masashi Kiyomi (JAIST) and Ryuhei Uehara (JAIST) COCOA /Dec/2010.
Randomized Algorithms - Treaps
UNC Chapel Hill M. C. Lin Point Location Reading: Chapter 6 of the Textbook Driving Applications –Knowing Where You Are in GIS Related Applications –Triangulation.
A Fast Algorithm for Enumerating Bipartite Perfect Matchings Takeaki Uno (National Institute of Informatics, JAPAN)
Simple Efficient Algorithm for MPQ-tree of an Interval Graph Toshiki SAITOH Masashi KIYOMI Ryuhei UEHARA Japan Advanced Institute of Science and Technology.
Gems of Algebra: The secret life of the symmetric group
Equality Function Computation (How to make simple things complicated) Nitin Vaidya University of Illinois at Urbana-Champaign Joint work with Guanfeng.
Toshiki Saitoh ERATO, Minato Discrete Structure Manipulation System Project, JST Graph Classes and Subgraph Isomorphism Joint work with Yota Otachi, Shuji.
MINATO ZDD Project Efficient Enumeration of the Directed Binary Perfect Phylogenies from Incomplete Data Toshiki Saitoh (ERATO) Joint work with Masashi.
Analysis of Algorithms CS 477/677
Probabilistic and Statistical Techniques 1 Lecture 3 Eng. Ismail Zakaria El Daour 2010.
2IL50 Data Structures Fall 2015 Lecture 9: Range Searching.
Memory Allocation of Multi programming using Permutation Graph By Bhavani Duggineni.
Probabilistic Analysis and Randomized Algorithm. Average-Case Analysis  In practice, many algorithms perform better than their worse case  The average.
A graph is a two-dimensional representation of a set of numbers, or data.
1 12/2/2015 MATH 224 – Discrete Mathematics Formally a graph is just a collection of unordered or ordered pairs, where for example, if {a,b} G if a, b.
Daniel Kroening and Ofer Strichman 1 Decision Procedures An Algorithmic Point of View BDDs.
Speeding Up Enumeration Algorithms with Amortized Analysis Takeaki Uno (National Institute of Informatics, JAPAN)
GRAPHING ON A COORDINATE PLANE. VOCABULARY Coordinate system- a system which uses one or more numbers or coordinates, to uniquely determine the position.
COSC 3101A - Design and Analysis of Algorithms 6 Lower Bounds for Sorting Counting / Radix / Bucket Sort Many of these slides are taken from Monica Nicolescu,
Space Efficient and Output Sensitive Greedy Algorithms on Intervals Toshiki Saitoh (Kobe University) Joint work with ・ Takashi Horiyama (Saitama University)
CSE 421 Algorithms Richard Anderson Winter 2009 Lecture 5.
Splicing Exons: A Eukaryotic Challenge to Gene Prediction Ian McCoy.
Chapter 1 Linear Functions and Mathematical Modeling Section 1.4.
NETWORK FLOWS Shruti Aggrawal Preeti Palkar. Requirements 1.Implement the Ford-Fulkerson algorithm for computing network flow in bipartite graphs. 2.For.
 2004 SDU 1 Lecture5-Strongly Connected Components.
CSE 421 Algorithms Richard Anderson Autumn 2015 Lecture 5.
Computational Geometry
Copyright © Cengage Learning. All rights reserved. 1 Functions and Limits.
Computer Graphics CC416 Lecture 04: Bresenham Line Algorithm & Mid-point circle algorithm Dr. Manal Helal – Fall 2014.
Theory of Computational Complexity Yusuke FURUKAWA Iwama Ito lab M1.
Computing smallest and largest repetition factorization in O(n log n) time Hiroe Inoue, Yoshiaki Matsuoka, Yuto Nakashima, Shunsuke Inenaga, Hideo Bannai,
Rates and Proportional Reasoning Today you will learn to: determine unit rates and unit prices. M07.A-R Use proportional relationships to solve multi-step.
Theory of Computational Complexity Probability and Computing Chapter Hikaru Inada Iwama and Ito lab M1.
Finding the slope of a Line
Fast Hamiltonicity Checking via Bases of Perfect Matchings
Orthogonal Range Searching and Kd-Trees
Advanced Associative Structures
Enumerating Distances Using Spanners of Bounded Degree
Haim Kaplan and Uri Zwick
Constrained Bipartite Vertex Cover: The Easy Kernel is Essentially Tight Bart M. P. Jansen February 18th, STACS 2016, Orléans, France.
I. The Problem of Molding
Richard Anderson Autumn 2016 Lecture 5
On the Geodesic Centers of Polygonal Domains
Richard Anderson Winter 2009 Lecture 6
Automated Layout and Phase Assignment for Dark Field PSM
Computational Geometry
Richard Anderson Lecture 5 Graph Theory
Give the parent, queue, BFI (breadth first index), and level arrays when BFS is applied to this graph starting at vertex 0. Process the neighbours of each.
Richard Anderson Winter 2019 Lecture 5
Chapter 9 Graph algorithms
Presentation transcript:

Random Generation and Enumeration of Bipartite Permutation Graphs Toshiki Saitoh (JAIST, Japan) Yota Otachi (Gunma Univ., Japan) Katsuhisa Yamanaka (UEC, Japan) Ryuhei Uehara (JAIST, Japan) 1 ○

Motivation Input graphs Interval graphs Permutation graphs Computer experiment Input Output Proper interval graphs Bipartite permutation graphs [Saitoh et al. 09] Random generation Enumeration We want suitable test data … Enumerate all object Generate an object uniformly at random 2

Our Algorithms Random Generation of connected bipartite permutation graphs Input : natural number n Output : a connected bipartite permutation graph with n vertices An output graph is chosen uniformly at random (the graph is non-labeled) Based on counting of the graphs The number of operation: O(n) Enumeration of connected bipartite permutation graphs Input : natural number n Output : all connected bipartite permutation graphs with n vertices Without duplications ( graphs are non-labeled ) Based on the reverse search [Avis, Fukuda, 96] Running time: O(1) time / graph 3

Permutation Graphs A graph is called a permutation graph if the graph has a line representation Line representation Permutation Graph (also, permutation diagraph) 4

Bipartite Permutation Graphs A permutation graph is called a bipartite permutation graph if the graph is bipartite Bipartite permutation graph Line representation Random generation and enumeration of bipartite permutation graphs 5 : vertices in a set Y : vertices in a set X

Useful Property of Connected Bipartite Permutation Graphs Bipartite permutation graph Line representation Line representation (0, 0) 0 Dyck path 6 Lemma 1 In a line representation Blue line (corresponds to a vertex in X): from upper left to lower right Red line (corresponds to a vertex in Y): from upper right to lower left Any two lines with the same color have no intersection 0-1 binary string Dyck path

How to Construct Dyck Path from 0-1 Binary String (0, 0) 0 7 Sweep the two lines alternately ‘1’ ⇒ go right and go up ‘0’ ⇒ go right and go down For each character,

Bipartite Permutation Graph with n Vertices Property of Dyck path The last coordinate is (2n, 0) The upper / lower lines have n ‘1’s and n ‘0’s Located on the upper side of x-axis The points on x-axis are boundaries of connected component of the graph (0, 0) (2n, 0) 8 A (non-connected) graph line rep. Dyck path

Connected Bipartite Permutation Graph with n Vertices y = y = 1 9 Property of Dyck path The last coordinate is (2n, 0) The upper / lower lines have n ‘1’s and n ‘0’s Located on the upper side of x-axis For all points except (0,0) and (2n,0), its value of y-coordinate is equal or greater than 1 A graph line rep. Dyck path

Connected Bipartite Permutation Graph with n Vertices y = 1 10 Property of Dyck path The last coordinate is (2n, 0) The upper / lower lines have n ‘1’s and n ‘0’s Located on the upper side of x-axis For all points except (0,0) and (2n,0), its value of y-coordinate is equal or greater than 1 A graph line rep. Dyck path For random generation, it is sufficient to generate a Dyck path randomly? No

One line rep. Two line reps. The Reason of “No” There is no 1 to 1 correspondence between connected bipartite permutation graphs and their line representations 11 A graph corresponds to at most four line representations Four line reps. Examples

Equivalent Line Representations horizontal- flip Vertical- flip horizontal- flip Vertical- flip Rotation This graph corresponds to four line representations Lemma 2 There exists at most four line representations for any connected bipartite permutation graph

horizontal- symmetric Vertical- flip horizontal- flip horizontal- symmetric 13 Equivalent Line Representations Lemma 2 There exists at most four line representations for any connected bipartite permutation graph This graph corresponds to two line representations

Rotational-symmetric line representation Vertical-symmetric line representation 14 Corresponding graphs have two line representations resp. Other examples: Equivalent Line Representations Lemma 2 There exists at most four line representations for any connected bipartite permutation graph

1 to 1 Bipartite Permutation Graph Horizontal, vertical, rotational-symmetric line representation 15 Equivalent Line Representations Lemma 2 There exists at most four line representations for any connected bipartite permutation graph This graph have one line representation

Generate a Line Representation Randomly A set of line representations Horizontal- symmetric Vertical- symmetric Rotational- symmetric If we generate a line representation randomly, A graph corresponding to four line reps. is frequently generated H-, V-, R- symmetric 16 H, V, R-symmetric: Horizontal-, Vertical-, Rotational- symmetric

Horizontal- symmetric To avoid such problem, decrease the probability to generate graphs corresponding to two or four line reps.? generate only canonical forms ? These methods seem not to work … 17 A set of line representations Vertical- symmetric Rotational- symmetric H-, V-, R- symmetric Generate a Line Representation Randomly

Our Approach: Normalization of Probability Any graph corresponds to the four line representations Horizontal- symmetric H-, V-, R- symmetric Rotational- symmetric H-, V-, R- symmetric Vertical- symmetric Counting groups Our random generation: 1. Choose one among 4 groups 2. Randomly generate the chosen one 18 A set of line representations Horizontal- symmetric Rotational- symmetric Vertical- symmetric H-, V-, R- symmetric

Counting All Line Representations The number of Dyck paths of length 2n – 2 = C(n-1) y = 0 y = 1 19 All line representations Catalan number: Dyck paths of length 2n – 2 correspondence A line representations

Counting Rotational-symmetric Line Representations A rotational-symmetric line reps. y = 1 The number of symmetric Dyck paths of length 2n – 2 20 Rotational-symmetric line reps. Symmetric Dyck paths of length 2n – 2 correspondence

Counting Vertical-symmetric Line Representations Vertical-symmetric line reps y = 1 The number of Dyck paths of length n – 2 = C(n/2-1) 21 Vertical-symmetric line reps. Dyck paths of length n – 2 correspondence The upper string is identical to the lower one Catalan number:

Counting Horizontal-symmetric Line Representations Rotational-symmetric line reps horizontal-symmetric line reps. y = 1 22 Horizontal-symmetric line reps. Rotational-symmetric line reps. (2-Motzkin path) correspondence H-symmetric line reps. R-symmetric line reps. The number of ==

Horizontal- symmetric H-, V-, R- symmetric Rotational- symmetric H-, V-, R- symmetric Vertical- symmetric A set of line representations Horizontal- symmetric Rotational- symmetric Vertical- symmetric H-, V-, R- symmetric Random Generation Our random generation: 1. Choose one among 4 groups 2. Randomly generate the chosen one O(n) operations O(n) space See: [Saitoh et al. 2009] 23

Conclusions and Future Works 24 For bipartite permutation graphs, we have designed the following two algorithms Random generation algorithm: O(n+m) time Enumeration algorithm: O(1) time / graph Random generation and enumeration of permutation graphs Random generation and enumeration of interval graphs Conclusions Future works