O N G ENERATING A LL M AXIMAL A CYCLIC S UBHYPERGRAPHS WITH P OLYNOMIAL D ELAY Taishin Daigo (Kyushu Inst. of Tech.) Kouichi Hirata (Kyushu Inst. of Tech.)

Slides:



Advertisements
Similar presentations
Chapter 9 -- Simplification of Sequential Circuits.
Advertisements

Constraint Satisfaction Problems
Traveling Salesperson Problem
GRAPH BALANCING. Scheduling on Unrelated Machines J1 J2 J3 J4 J5 M1 M2 M3.
Bayesian Networks, Winter Yoav Haimovitch & Ariel Raviv 1.
Backtrack Algorithm for Listing Spanning Trees R. C. Read and R. E. Tarjan (1975) Presented by Levit Vadim.
Minimum Spanning Tree Sarah Brubaker Tuesday 4/22/8.
Lecture 24 Coping with NPC and Unsolvable problems. When a problem is unsolvable, that's generally very bad news: it means there is no general algorithm.
Anagh Lal Tuesday, April 08, Chapter 9 – Tree Decomposition Methods- Part II Anagh Lal CSCE Advanced Constraint Processing.
1 NP-completeness Lecture 2: Jan P The class of problems that can be solved in polynomial time. e.g. gcd, shortest path, prime, etc. There are many.
Theory of Computing Lecture 16 MAS 714 Hartmut Klauck.
Approximation Algorithms Chapter 5: k-center. Overview n Main issue: Parametric pruning –Technique for approximation algorithms n 2-approx. algorithm.
Combinatorial Algorithms
PCPs and Inapproximability Introduction. My T. Thai 2 Why Approximation Algorithms  Problems that we cannot find an optimal solution.
1 Introduction to Computability Theory Lecture12: Decidable Languages Prof. Amos Israeli.
CS21 Decidability and Tractability
Hardness Results for Problems P: Class of “easy to solve” problems Absolute hardness results Relative hardness results –Reduction technique.
Anagh Lal Monday, April 14, Chapter 9 – Tree Decomposition Methods Anagh Lal CSCE Advanced Constraint Processing.
3 -1 Chapter 3 The Greedy Method 3 -2 The greedy method Suppose that a problem can be solved by a sequence of decisions. The greedy method has that each.
12/3CSE NP-complete CSE Algorithms NP Completeness Approximations.
The Theory of NP-Completeness
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Spring, 2006 Lecture 7 Monday, 4/3/06 Approximation Algorithms.
M. HardojoFriday, February 14, 2003 Directional Consistency Dechter, Chapter 4 1.Section 4.4: Width vs. Local Consistency Width-1 problems: DAC Width-2.
Time Complexity.
Lecture 15: Depth First Search Shang-Hua Teng. Graphs G= (V,E) B E C F D A B E C F D A Directed Graph (digraph) –Degree: in/out Undirected Graph –Adjacency.
Chapter 11: Limitations of Algorithmic Power
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Spring, 2009 Lecture 7 Tuesday, 4/7/09 Approximation Algorithms.
Approximation Algorithms Motivation and Definitions TSP Vertex Cover Scheduling.
Hardness Results for Problems P: Class of “easy to solve” problems Absolute hardness results Relative hardness results –Reduction technique.
Hardness Results for Problems
1 Efficiently Mining Frequent Trees in a Forest Mohammed J. Zaki.
Part I: Introductory Materials Introduction to Graph Theory Dr. Nagiza F. Samatova Department of Computer Science North Carolina State University and Computer.
The Fundamentals: Algorithms, the Integers & Matrices.
Theory of Computing Lecture 19 MAS 714 Hartmut Klauck.
Graph Algorithms Using Depth First Search Prepared by John Reif, Ph.D. Distinguished Professor of Computer Science Duke University Analysis of Algorithms.
CSE 589 Applied Algorithms Spring Colorability Branch and Bound.
Busby, Dodge, Fleming, and Negrusa. Backtracking Algorithm Is used to solve problems for which a sequence of objects is to be selected from a set such.
© The McGraw-Hill Companies, Inc., Chapter 3 The Greedy Method.
Computational Complexity Polynomial time O(n k ) input size n, k constant Tractable problems solvable in polynomial time(Opposite Intractable) Ex: sorting,
NP-Completeness: 3D Matching
Introduction to Job Shop Scheduling Problem Qianjun Xu Oct. 30, 2001.
Constructing evolutionary trees from rooted triples Bang Ye Wu Dept. of Computer Science and Information Engineering Shu-Te University.
An Efficient Algorithm for Enumerating Pseudo Cliques Dec/18/2007 ISAAC, Sendai Takeaki Uno National Institute of Informatics & The Graduate University.
Problem Introduction Chow’s Problem Solution Example Proof of correctness.
CSC 413/513: Intro to Algorithms Graph Algorithms DFS.
Unit 9: Coping with NP-Completeness
A Unified View of Graph Searching
NP-COMPLETE PROBLEMS. Admin  Two more assignments…  No office hours on tomorrow.
1 Computing Full Disjunctions Yaron Kanza Yehoshua Sagiv The Selim and Rachel Benin School of Engineering and Computer Science The Hebrew University of.
NP-Complete problems.
Computing Branchwidth via Efficient Triangulations and Blocks Authors: F.V. Fomin, F. Mazoit, I. Todinca Presented by: Elif Kolotoglu, ISE, Texas A&M University.
LIMITATIONS OF ALGORITHM POWER
Foundations of Constraint Processing, Spring 2009 Structure-Based Methods: An Introduction 1 Foundations of Constraint Processing CSCE421/821, Spring 2009.
Spatial Forest Planning with Integer Programming Lecture 10 (5/4/2015)
The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Mining Complex Data COMP Seminar Spring 2011.
Constraint Programming for the Diameter Constrained Minimum Spanning Tree Problem Thiago F. Noronha Celso C. Ribeiro Andréa C. Santos.
1 CS270 Project Overview Maximum Planar Subgraph Danyel Fisher Jason Hong Greg Lawrence Jimmy Lin.
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.
Chapter 10 NP-Complete Problems.
Structure-Based Methods Foundations of Constraint Processing
Umans Complexity Theory Lectures
Spatial Forest Planning with Integer Programming
Structure-Based Methods Foundations of Constraint Processing
Structure-Based Methods Foundations of Constraint Processing
Md. Abul Kashem, Chowdhury Sharif Hasan, and Anupam Bhattacharjee
Structure-Based Methods Foundations of Constraint Processing
Graph Algorithms DS.GR.1 Chapter 9 Overview Representation
Structure-Based Methods Foundations of Constraint Processing
An Introduction Structure-Based Methods
Structure-Based Methods Foundations of Constraint Processing
Presentation transcript:

O N G ENERATING A LL M AXIMAL A CYCLIC S UBHYPERGRAPHS WITH P OLYNOMIAL D ELAY Taishin Daigo (Kyushu Inst. of Tech.) Kouichi Hirata (Kyushu Inst. of Tech.) 1 On Generating Maximal Acyclic Subhypergraphs with Polynomial Delay

C ONTENTS Acyclic hypergraph Maximal acyclic subhypergraph (MAS) Generating all MASs in a hypergraph with polynomial delay Intractability in lexicographic order with polynomial delay A polynomial delay algorithm (by ignoring the order of outputs) 2 On Generating Maximal Acyclic Subhypergraphs with Polynomial Delay

G RAPH AND H YPERGRAPH Graph G =( V, E ), E V 2 Hypergraph H =( V, E ), E 2 V Acyclic graph (Tree) A (connected) graph without cycles Acyclic hypergraph Many equivalent definitions [Berri et al. 83] ’s : Database Theory Today : Artificial Intelligence constraint satisfaction, clause subsumption, theory revision, abductive explanation, machine learning, data mining, … On Generating Maximal Acyclic Subhypergraphs with Polynomial Delay

A CYCLIC H YPERGRAPH H =( V, E ), E v ={ E E | v E } A tree scheme T of H : A tree with vertices E such that E v induces a subtree of T for every v V H : acyclic iff H has a tree scheme H : cyclic iff H has no tree scheme a d c b a b c d acyclic HT 4 On Generating Maximal Acyclic Subhypergraphs with Polynomial Delay

A CYCLIC H YPERGRAPH a b c d a b c d e a d c b cyclic a d cb 26 e a b c d e f acyclic a d c b e f acyclic 5 On Generating Maximal Acyclic Subhypergraphs with Polynomial Delay

S PANNING T REE Spanning tree in G =( V, E ) : A tree with vertices V (spanning connected acyclic graph) Generating all spanning trees in a graph G =( V, E ) O (| V |+| E |+  | V |) time and O (| V |+| E |) space [Gabow & Myers 78]  : the number of all spanning trees in G Optimal to output all spanning trees explicitly 6 On Generating Maximal Acyclic Subhypergraphs with Polynomial Delay

F ROM S PANNING T REES TO A CYCLIC S UBHYPERGRAPHS A hypergraph has not always a spanning connected acyclic subhypergraph Whether or not a hypergraph has a spanning connected acyclic subhypergraph? NP-complete [Hirata et al. 05] 7 On Generating Maximal Acyclic Subhypergraphs with Polynomial Delay

F ROM S PANNING T REES TO A CYCLIC S UBHYPERGRAPHS Maximal acyclic subhypergraph (MAS) H 1 : an MAS of H iff there exists no acyclic subhypergraph of H containing H 1 8 On Generating Maximal Acyclic Subhypergraphs with Polynomial Delay

F ROM S PANNING T REES TO A CYCLIC S UBHYPERGRAPHS Maximal acyclic subhypergraph (MAS) H 1 : an MAS of H iff there exists no acyclic subhypergraph of H containing H 1 A linear time algorithm MAS to find an MAS of H [Hirata et al. 05] || E ||=  E E | E | O (| V |+|| E ||) time Generating all MASs in a hypergraph H =( V, E ) 9 On Generating Maximal Acyclic Subhypergraphs with Polynomial Delay

C OMPLEXITY OF G ENERATING P ROBLEMS Polynomial total time (Output polynomial time) Time to output all solutions is bounded by a polynomial in the number m of solutions and the input size n Polynomial delay Time between two consecutive solutions is bounded by a polynomial in the input size n poly( m, n ) poly( n ) 10 On Generating Maximal Acyclic Subhypergraphs with Polynomial Delay

G ENERATING A LL MAS S IN A H YPERGRAPH WITH P OLYNOMIAL D ELAY Intractability for generating all MASs in a hypergrpah in lexicographic order with polynomial delay A polynomial delay algorithm for generating all MASs in a hypergraph (by ignoring the order of outputs) 11 On Generating Maximal Acyclic Subhypergraphs with Polynomial Delay

I NTRACTABILITY FOR G ENERATING A LL MAS S IN L EXICOGRAPHIC O RDER LexFirstMAS( H, H 1 ) Hypergraphs H and H 1 Is H 1 the lexicographically first MAS of H ? LexFirstMAS( H, H 1 ) is coNP-complete 12 On Generating Maximal Acyclic Subhypergraphs with Polynomial Delay

I NTRACTABILITY FOR G ENERATING A LL MAS S IN L EXICOGRAPHIC O RDER Reduction from 3DM (3 Dimensional Matching) M X Y Z Does M have a perfect matching M 1 M of X Y Z that each element of X, Y and Z is contained in exactly one triple in M 1 ? XYZ M M1M1 13 On Generating Maximal Acyclic Subhypergraphs with Polynomial Delay

I NTRACTABILITY FOR G ENERATING A LL MAS S IN L EXICOGRAPHIC O RDER Em1Em1 Em4Em4 Em2Em2 Em5Em5 Em3Em3 Em6Em6 ExEx E m1m1 m2m2 m3m3 m4m4 m5m5 m6m6 E M <E x <E y <E z <E m i <E EMEM EyEy EzEz H 14 On Generating Maximal Acyclic Subhypergraphs with Polynomial Delay

I NTRACTABILITY FOR G ENERATING A LL MAS S IN L EXICOGRAPHIC O RDER Em1Em1 Em4Em4 Em2Em2 Em5Em5 Em3Em3 Em6Em6 ExEx E m1m1 m2m2 m3m3 m4m4 m5m5 m6m6 E M <E x <E y <E z <E m i <E EMEM EyEy EzEz H H 1 = H -{ E m i }: an MAS of H 15 On Generating Maximal Acyclic Subhypergraphs with Polynomial Delay

I NTRACTABILITY FOR G ENERATING A LL MAS S IN L EXICOGRAPHIC O RDER Em1Em1 Em4Em4 Em2Em2 Em5Em5 Em3Em3 Em6Em6 ExEx E m1m1 m2m2 m3m3 m4m4 m5m5 m6m6 E M <E x <E y <E z <E m i <E EMEM EyEy EzEz H Lexicographically previous MAS of H from H 1 16 On Generating Maximal Acyclic Subhypergraphs with Polynomial Delay

I NTRACTABILITY FOR G ENERATING A LL MAS S IN L EXICOGRAPHIC O RDER Em1Em1 Em4Em4 Em2Em2 Em5Em5 Em3Em3 Em6Em6 ExEx E m1m1 m2m2 m3m3 m4m4 m5m5 m6m6 E M <E x <E y <E z <E m i <E EMEM EyEy EzEz H Lexicographically previous MAS of H from H 1 Perfect Matching 17 On Generating Maximal Acyclic Subhypergraphs with Polynomial Delay

I NTRACTABILITY FOR G ENERATING A LL MAS S IN L EXICOGRAPHIC O RDER H 1 is not the lexicographically first MAS of H There exists the lexicographically previous MAS of H from H 1 M has a perfect matching (NP-complete) LexFirstMAS( H 1, H ): coNP-complete Unless P=NP, there exists no algorithm for generating all MASs in lexicographic order with polynomial delay 18 On Generating Maximal Acyclic Subhypergraphs with Polynomial Delay

G ENERATING A LL MAS S WITH P OLYNOMIAL D ELAY Intractability for generating all MASs in a hypergraph in lexicographic order with polynomial delay A polynomial delay algorithm for generating all MASs in a hypergraph (by ignoring the order of outputs) 19 On Generating Maximal Acyclic Subhypergraphs with Polynomial Delay

A LGORITHM F IND MAS FindMAS( H, H 1 ) Output an MAS of H containing H 1 (if H 1 is acyclic) RMCS [Tarjan & Yannakakis 83] Restricted Maximum Cardinality Search Test the acyclicity of hypergraphs MAS [Hirata et al. 05] Find an MAS of H MAS( H ) = FindMAS( H,  ) H 1 = FindMAS( H, H 1 ) : H 1 is an MAS of H H =( V, E ) FindMAS( H, H 1 ) runs in O (| V |+|| E ||) time 20 On Generating Maximal Acyclic Subhypergraphs with Polynomial Delay

O UTLINE OF A LGORITHM G EN MAS H 1 : MAS of H H 11 : MAS of H containing E 1 H 111 : MAS of H containing E 1, E 11 H 1111 : MAS of H containing E 1, E 11, E 111 H 12 : MAS of H containing E 2 but not containing E 1 H 1112 : MAS of H containing E 1, E 11, E 112 but not containing E 111 H 112 : MAS of H containing E 1, E 12 but not containing E 11 When we cannot find an MAS in the branch, then backtrack to the node with another candidate of E, add the already selected hyperedges to Out in this node and find an MAS of H containing In U { E } but not containing Out After selecting a new hyperedge E, find an MAS of H containing In U { E } E 1 H - H 1 : ({ E 1 },  ) E 11 H - H 11 : ({ E 1, E 11 },  ) E 111 H - H 111 : ({ E 1, E 11, E 111 },  ) E 112 H -( H 111 U { E 111 }) : ({ E 1, E 11, E 112 },{ E 111 }) E 12 H -( H 11 U { E 11 }) : ({ E 1, E 12 },{ E 11 }) E 2 H -( H 1 U { E 1 }) : ({ E 2 },{ E 1 }) E 3 H -( H 1 U { E 1,E 2 }) : ({ E 3 },{ E 1,E 2 }) H 13 : MAS of H containing E 3 but not containing E 1, E 2 Find an MAS of H containing In but not containing Out 21 ( In, Out )

H Out H2H2 In Sec H 2 : Output of FindMAS( H - Out, In ) H 2 is an MAS of H - Out containing In (and not containing Out ), but not always an MAS of H Find an MAS of H containing In but not containing Out by using the set Sec of hyperedges F INDING AN MAS OF H C ONTAINING I N B UT N OT C ONTAINING O UT H In Out H2H2 Sec H3H3 H Out H2H2 Sec H3H3 H Out H2H2 Sec  H 2 - In H 3  FindMAS( H -( Out U Sec ), In ) H 2  FindMAS( H - Out,H 3 ) While H 2 is not an MAS of H or H 3 In, repeat the same procedure If H 2 is an MAS of H  Output H 2 If H 3 = In  Finish to search (Every MAS containing In but not containing Out has been already appeared in the search tree) Sec  Sec U ( H 3 - In ) 22 On Generating Maximal Acyclic Subhypergraphs with Polynomial Delay

A R UNNING E XAMPLE OF G EN MAS {a,b,e}  FindMAS( H,  ) e ab c d H {b,c,d,e}  FindMAS( H,{c} ) {a,c,e}  FindMAS( H,{a,c} ) c H -{a,b,e} : ({c},  ) a H -{b,c,d,e} : ({a,c},  ) b H -{a,c,e} : {a,b,c} : cyclic d H -{a,c,e} : {a,c,d} : cyclic 23 On Generating Maximal Acyclic Subhypergraphs with Polynomial Delay

A R UNNING E XAMPLE OF G EN MAS {a,b,e} e ab c d H ({c},  ) {b,c,d,e} ({a,c},  ) {a,c,e} {b,d,e}  FindMAS( H -{ c },{d} ) : not an MAS of H Sec = {b,e}  {b,d,e}-{d} H 3 = {a,d}  FindMAS( H -{b,c,e},{d} ) H 2 = {a,d,e}  FindMAS( H -{c},{a,d} ) H 2 = FindMAS( H, H 2 ) d H -({a,b,e} U {c}) : ({d},{c}) 24 On Generating Maximal Acyclic Subhypergraphs with Polynomial Delay

A R UNNING E XAMPLE OF G EN MAS {a,b,e} e ab c d H ({c},  ) {b,c,d,e} ({a,c},  ) {a,c,e} {a,d,e} ({d},{c}) b H -({a,d,e} ∪ {c}) : ({b,d},{c}) {b,d,e}  FindMAS( H -{ c },{b,d} ) : not an MAS of H Sec = {e}  {b,d,e}-{b,d} H 3 = {b,d}  FindMAS( H -{c,e},{b,d} ) H 3 = {b,d} 25 On Generating Maximal Acyclic Subhypergraphs with Polynomial Delay

|E||E| C OMPLEXITY OF A LGORITHM G EN MAS |E||E| O (| V |+|| E ||) The delay of the algorithm GenMAS is O (| E | 2 (| V |+|| E ||)) Find the MAS H 2 of H by using Sec 26 On Generating Maximal Acyclic Subhypergraphs with Polynomial Delay

C ONCLUSION AND F UTURE W ORKS Generating all MASs in a hypergraph with polynomial delay Intractability in lexicographic order with polynomial delay A polynomial delay algorithm (by ignoring the order of outputs) Generating all maximal totally balanced subhypergraphs (in lexicographic order) with polynomial delay Totally balanced hypergraph (  -acyclic): every subhypergraph is acyclic [Fagin 83, Lovasz 79] Implementation and application to data mining (frequent acyclic hypergraphs (cf. [Horvath et al. 07])) 27 On Generating Maximal Acyclic Subhypergraphs with Polynomial Delay