listing all fixed length simple cycles in sparse graphs
play

Listing all fixed-length simple cycles in sparse graphs in optimal - PowerPoint PPT Presentation

Listing all fixed-length simple cycles in sparse graphs in optimal time George Manoussakis Universit e Paris Saclay, Universit e Paris Sud, LRI-CNRS, France G. Manoussakis Listing all fixed-length simple cycles 1 / 19 Introduction Input


  1. Listing all fixed-length simple cycles in sparse graphs in optimal time George Manoussakis Universit´ e Paris Saclay, Universit´ e Paris Sud, LRI-CNRS, France G. Manoussakis Listing all fixed-length simple cycles 1 / 19

  2. Introduction Input object: a graph G = ( V , E ) a graph: | V | = n vertices and | E | = m edges. G. Manoussakis Listing all fixed-length simple cycles 2 / 19

  3. Question: find all (induced) subgraphs with some property subgraph induced subgraph G. Manoussakis Listing all fixed-length simple cycles 3 / 19

  4. Example: find all cycles of length four G. Manoussakis Listing all fixed-length simple cycles 4 / 19

  5. Example: find all cycles of length four G. Manoussakis Listing all fixed-length simple cycles 4 / 19

  6. Introduction - k -degenerate graphs Definition ( k -degenerate graphs) Graph k -degenerate if k is smallest integer such that: every induced subgraph has a vertex of degree at most k , or equivalently G. Manoussakis Listing all fixed-length simple cycles 5 / 19

  7. Introduction - k -degenerate graphs Definition ( k -degenerate graphs) Graph k -degenerate if k is smallest integer such that: every induced subgraph has a vertex of degree at most k , or equivalently it has acyclic orientation in which every vertex has out-degree bounded by k G. Manoussakis Listing all fixed-length simple cycles 5 / 19

  8. Introduction - k -degenerate graphs Definition ( k -degenerate graphs) Graph k -degenerate if k is smallest integer such that: every induced subgraph has a vertex of degree at most k , or equivalently it has acyclic orientation in which every vertex has out-degree bounded by k Example: Figure: A 3-degenerate graph and a 3-bounded orientation G. Manoussakis Listing all fixed-length simple cycles 5 / 19

  9. Introduction - k -degenerate graphs Why degenerate graphs G. Manoussakis Listing all fixed-length simple cycles 6 / 19

  10. Introduction - k -degenerate graphs Why degenerate graphs generalize many graphs: planar graphs 5-degenerate, trees 1-degenerate, Barab´ asi-Albert graphs etc. G. Manoussakis Listing all fixed-length simple cycles 6 / 19

  11. Introduction - k -degenerate graphs Why degenerate graphs generalize many graphs: planar graphs 5-degenerate, trees 1-degenerate, Barab´ asi-Albert graphs etc. many real world graphs have low degeneracy Graph n m k citationCiteseer 268,495 1.1M 15 Flickr 1.72M 15.6M 568 uk-2002 18M 261M 943 Twitter 41.7M 1.20B 2490 G. Manoussakis Listing all fixed-length simple cycles 6 / 19

  12. Introduction - k -degenerate graphs Why degenerate graphs generalize many graphs: planar graphs 5-degenerate, trees 1-degenerate, Barab´ asi-Albert graphs etc. many real world graphs have low degeneracy Graph n m k citationCiteseer 268,495 1.1M 15 Flickr 1.72M 15.6M 568 uk-2002 18M 261M 943 Twitter 41.7M 1.20B 2490 theoretical/practical G. Manoussakis Listing all fixed-length simple cycles 6 / 19

  13. Input: graph G , p ∈ N Output: all cycles subgraphs of G with p vertices (without duplicates) G. Manoussakis Listing all fixed-length simple cycles 7 / 19

  14. Input: graph G , p ∈ N Output: all cycles subgraphs of G with p vertices (without duplicates) This talk: O ( n ⌊ p / 2 ⌋ k ⌈ p / 2 ⌉ ) G. Manoussakis Listing all fixed-length simple cycles 7 / 19

  15. Input: graph G , p ∈ N Output: all cycles subgraphs of G with p vertices (without duplicates) This talk: O ( n ⌊ p / 2 ⌋ k ⌈ p / 2 ⌉ ) worst case output size optimal: ∀ k , p and n ≥ kp , ∃ n -order k -degenerate graph with Ω( n ⌊ p / 2 ⌋ k ⌈ p / 2 ⌉ ) p -cycles. G. Manoussakis Listing all fixed-length simple cycles 7 / 19

  16. Input: graph G , p ∈ N Output: all cycles subgraphs of G with p vertices (without duplicates) This talk: O ( n ⌊ p / 2 ⌋ k ⌈ p / 2 ⌉ ) worst case output size optimal: ∀ k , p and n ≥ kp , ∃ n -order k -degenerate graph with Ω( n ⌊ p / 2 ⌋ k ⌈ p / 2 ⌉ ) p -cycles. space optimal: only requires memory needed to store the graph G. Manoussakis Listing all fixed-length simple cycles 7 / 19

  17. Related work: 1 cycle: G. Manoussakis Listing all fixed-length simple cycles 8 / 19

  18. Related work: 1 cycle: C 3 in planar graphs in linear time [Papadimitriou et al. ’81] G. Manoussakis Listing all fixed-length simple cycles 8 / 19

  19. Related work: 1 cycle: C 3 in planar graphs in linear time [Papadimitriou et al. ’81] C 3 and C 4 in planar and degenerate in linear time [Chiba et al. ’85], [Chrobak et al. ’91] G. Manoussakis Listing all fixed-length simple cycles 8 / 19

  20. Related work: 1 cycle: C 3 in planar graphs in linear time [Papadimitriou et al. ’81] C 3 and C 4 in planar and degenerate in linear time [Chiba et al. ’85], [Chrobak et al. ’91] C 5 and C 6 in planar in O ( n log n ) [Richardson et al. ’86] G. Manoussakis Listing all fixed-length simple cycles 8 / 19

  21. Related work: 1 cycle: C 3 in planar graphs in linear time [Papadimitriou et al. ’81] C 3 and C 4 in planar and degenerate in linear time [Chiba et al. ’85], [Chrobak et al. ’91] C 5 and C 6 in planar in O ( n log n ) [Richardson et al. ’86] Any length general and degenerate graphs [Alon et al. ’97] for induced cycles : [Cai et al. ’06] G. Manoussakis Listing all fixed-length simple cycles 8 / 19

  22. Related work: all cycles fixed length: G. Manoussakis Listing all fixed-length simple cycles 9 / 19

  23. Related work: all cycles fixed length: any length in planar graphs in O ( occurences ) [Eppstein ’95] G. Manoussakis Listing all fixed-length simple cycles 9 / 19

  24. Related work: all cycles fixed length: any length in planar graphs in O ( occurences ) [Eppstein ’95] cycles of length 4 and 5 in degenerate graphs in O ( occurences ) [Kowalik ’03] G. Manoussakis Listing all fixed-length simple cycles 9 / 19

  25. Related work: all cycles fixed length: any length in planar graphs in O ( occurences ) [Eppstein ’95] cycles of length 4 and 5 in degenerate graphs in O ( occurences ) [Kowalik ’03] any length in general graphs, randomized in O ( f ∗ occurences ) with f time to find one occurence [Meeks ’16]. G. Manoussakis Listing all fixed-length simple cycles 9 / 19

  26. Related work: all cycles fixed length: any length in planar graphs in O ( occurences ) [Eppstein ’95] cycles of length 4 and 5 in degenerate graphs in O ( occurences ) [Kowalik ’03] any length in general graphs, randomized in O ( f ∗ occurences ) with f time to find one occurence [Meeks ’16]. this talk: deterministic worst case output size optimal for any length in degenerate graphs in O ( n ⌊ p / 2 ⌋ k ⌈ p / 2 ⌉ ) G. Manoussakis Listing all fixed-length simple cycles 9 / 19

  27. Outline of the algorithm: given a k -degenerate graph Construct an acyclic orientation of the graph with out-degree bounded by k G. Manoussakis Listing all fixed-length simple cycles 10 / 19

  28. Outline of the algorithm: given a k -degenerate graph Construct an acyclic orientation of the graph with out-degree bounded by k Prove that any cycle can be decomposed into small easily computable parts G. Manoussakis Listing all fixed-length simple cycles 10 / 19

  29. Outline of the algorithm: given a k -degenerate graph Construct an acyclic orientation of the graph with out-degree bounded by k Prove that any cycle can be decomposed into small easily computable parts Form all possible cycles by computing all these possible parts and their possible combinations G. Manoussakis Listing all fixed-length simple cycles 10 / 19

  30. Outline of the algorithm: given a k -degenerate graph Construct an acyclic orientation of the graph with out-degree bounded by k Prove that any cycle can be decomposed into small easily computable parts Form all possible cycles by computing all these possible parts and their possible combinations Using properties of the decomposition output each cycle exactly once G. Manoussakis Listing all fixed-length simple cycles 10 / 19

  31. G. Manoussakis Listing all fixed-length simple cycles 11 / 19

  32. Acyclic orientation: ∃ some vertex with two out-going edges G. Manoussakis Listing all fixed-length simple cycles 11 / 19

  33. G. Manoussakis Listing all fixed-length simple cycles 12 / 19

  34. G. Manoussakis Listing all fixed-length simple cycles 13 / 19

  35. G. Manoussakis Listing all fixed-length simple cycles 14 / 19

  36. Definition ( t -path) t -path of size ( i , j ) : two oriented paths of length i and j starting from the same vertex G. Manoussakis Listing all fixed-length simple cycles 15 / 19

  37. Definition ( t -path) t -path of size ( i , j ) : two oriented paths of length i and j starting from the same vertex Remark in k-degenerate graphs, at most nk i + j such paths G. Manoussakis Listing all fixed-length simple cycles 15 / 19

  38. Algorithm: brute force is optimal input: graph G k -degenerate G. Manoussakis Listing all fixed-length simple cycles 16 / 19

  39. Algorithm: brute force is optimal input: graph G k -degenerate 1. Compute all possible acyclic orientations of a p -length simple cycle G. Manoussakis Listing all fixed-length simple cycles 16 / 19

  40. Algorithm: brute force is optimal input: graph G k -degenerate 1. Compute all possible acyclic orientations of a p -length simple cycle 2. For each orientation find a t -path decomposition t 1 , t 2 , ..., t r G. Manoussakis Listing all fixed-length simple cycles 16 / 19

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend