tree decomposition
Post on 14-Feb-2016
83 Views
Preview:
DESCRIPTION
TRANSCRIPT
Tree Decompositio
nBenoit Vanalderweireldt
Phan Quoc TrungTram Minh TriVu Thi Phuong
1
Summary
2
• Introduction• Definition• Requirement• Data structure • Graph generators• Algorithm• Example• Benchmark and tests• Interpretation• Conclusion
Definition
3
Tree decomposition
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.
Introduction
5
Graph reachability answering using tree decomposition ?
Is it profitable to decompose a graphIn order to test reachability ?
Requirement
6
1. Understand notion of tree decomposition2. Develop a data structure for graphs3. Develop different graph generators4. Implement the 4 parts of the algorithms5. Make benchmark6. Analyze result7. Make conclusion8. Write report9. Present our work
Data structure
7
• Vertex• Tree • Node
Graph generators
8
In order to test the algorithm, we generated various kind of graphs :1. Inclusive square graph2. Friendship graph3. Random graph
Friendship graph
Algorithm
9
Algorithm 1 start with reduction of an undirected graph before construction the tree
Algorithm
10
Explanation in following examples
Algorithm
11
Example
12
Random graph
Example
13
Random graph
6
7
Example
14
1
2
34
5
2
34
5
34
5
Complete graph
12
3
Example
15
5
6 7
4
3
21
5
6 7
4
3
2
5
6 7
4
3
5
6 7
4
Wheel Graph
5
6 7
1 2
3 45
Example
16
31 2
46 5
32
46 5
3
46 5
Bipartite Graph
46 5
1 2 3
4
Example
17
Cycle graph
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 resultsOur series (around 20 measures) vary (increase or decrease) numbers of edges or vertices
What else ?
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
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 goodresponding time, the density of edges must be well know.
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 timeDisadvantage 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)
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.
Acknowledgements
23
This project was supported by a grant from the professor Bruno Courcelle and Anne Dicky
Reference1.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/K3. A partial k-arboretum of graph with bounded treewidth, by Hans Bodlaender
top related