Presentation is loading. Please wait.

Presentation is loading. Please wait.

Tree Decomposition Benoit Vanalderweireldt Phan Quoc Trung Tram Minh Tri Vu Thi Phuong 1.

Similar presentations


Presentation on theme: "Tree Decomposition Benoit Vanalderweireldt Phan Quoc Trung Tram Minh Tri Vu Thi Phuong 1."— Presentation transcript:

1 Tree Decomposition Benoit Vanalderweireldt Phan Quoc Trung Tram Minh Tri Vu Thi Phuong 1

2 Summary 2 Introduction Definition Requirement Data structure Graph generators Algorithm Example Benchmark and tests Interpretation Conclusion

3 Definition 3 Tree decomposition

4 Definition 4 Tree width 1.The width of a bag is the cardinality of the bag. 2.The width of a tree decomposition is the size of the largest bag minus one 3.The treewidth of a graph G is the minimum width among all possible tree decompositions of G minus 1, denoted as tw(G). Note that trees and forests are precisely the structures with treewidth of 1.

5 Introduction 5 Graph reachability answering using tree decomposition ? Is it profitable to decompose a graph In order to test reachability ?

6 Requirement 6 1.Understand notion of tree decomposition 2.Develop a data structure for graphs 3.Develop different graph generators 4.Implement the 4 parts of the algorithms 5.Make benchmark 6.Analyze result 7.Make conclusion 8.Write report 9.Present our work

7 Data structure 7 Vertex Tree Node

8 Graph generators 8 In order to test the algorithm, we generated various kind of graphs : 1.Inclusive square graph 2.Friendship graph 3.Random graph Friendship graph

9 Algorithm 9 Algorithm 1 start with reduction of an undirected graph before construction the tree

10 Algorithm 10 Explanation in following examples

11 Algorithm 11

12 Example 12 Random graph

13 Example 13 Random graph 6 7

14 Example 14 1 2 34 5 2 34 5 34 5 Complete graph 1 2 3

15 Example 15 5 67 4 3 21 5 67 4 3 2 5 67 4 3 5 67 4 Wheel Graph 5 67 12 3 4 5

16 Example 16 312 465 32 465 3 465 Bipartite Graph 465 1 2 3 4

17 Example 17 Cycle graph

18 Benchmark 18 The main goal of benchmark is to reveal in what condition it is gainful to reduced graph in order to check reachability. We run multiple series of benchmark : Various number of vertices and neighbors ….. Every test series have been past at least 2 times (to operating system accident) We compare effective results with expected results Our series (around 20 measures) vary (increase or decrease) numbers of edges or vertices What else ?

19 Benchmark 19 In order to have workable measure, we have to establish a protocol to collect data. We quickly realize that to have meaningful results, we need to apply the algorithm of really large graph (over hundred of vertices). Put some capture of result like in report

20 Interpretation 20 From these tests we found that the execution time of this algorithm is influenced by number of edges not really by number of vertices. If the density of edges increases then the computing time for the graph reduction increase. In order to use this algorithm in a good responding time, the density of edges must be well know.

21 Advantage & Disadvantage 21 Advantage of Tree Decomposition: Solving shortest path query answering over undirected large graphs. Many intractable problems (Independent Set, the Hamiltonian Circuits) can be solved in polynomial time or even in linear time Disadvantage of Tree Decomposition: Calculating the tree width of a graph is hard. (NP-complete) It’s impossible to guarantee that good performance will be obtained even though the tree width can be determined.  To solve really hard problems efficiently by using the tree decomposition based approaches, we have to require that the underlying graphs have bounded tree width (less than 10)

22 Conclusion 22 1.In this project, we implemented the algorithm of tree decomposition as the index structure for a large graphs to answer reachability queries efficiently. 2.This approach used to solve intractable problems (NP-complete) 3.One of the limitation of tree decomposition based approach is the underlying graphs have bounded treewidth, but in this algorithm the treewidth is adapted to be related to degree-l reduction, instead of the treewidth.

23 Acknowledgements 23 This project was supported by a grant from the professor Bruno Courcelle and Anne Dicky Reference 1. Efficient Graph Reachability Query Answering using Tree Decomposition, by Fang Wei (Computer Science Department, University of Freiburg, Germany). 2.Discrete Math for Bioinformatics, by A. Bockmayr/K 3. A partial k-arboretum of graph with bounded treewidth, by Hans Bodlaender


Download ppt "Tree Decomposition Benoit Vanalderweireldt Phan Quoc Trung Tram Minh Tri Vu Thi Phuong 1."

Similar presentations


Ads by Google