Reduction of a weighted graph without increasing its weighted treewidth by applying a set of safe reduction rules defined in (Eijkhof et al, 2002).
Description of the problem
We can preprocess a graph by applying reduction rules to reduce the size of the graph. This reduction has the property that a tree decomposition for the reduced graph with minimum treewidth can easily be extended to a tree decomposition for the original graph that also has minimum treewidth. A reduction rule that does not change the treewidth of the graph is called safe. Preprocessing applies a series of safe reduction rules on a graph until no more reduction rules can be applied. When the preprocessing results in an empty graph, we can trivially find a tree decomposition with minimum treewidth for the original graph. When the graph resulting after preprocessing is not empty, either the treewidth can be computed for the remaining graph by an exact, but possibly computational expensive algorithm (when the resulting graph is relatively small), or the treewidth can be approximated using heuristic algorithms. Throughout the application of the reduction rules, a variable low which represents the largest lower bound known for the weighted treewidth of the original graph is maintained.
Preprocessing a graph by applying safe reduction rules takes on additional significance when using stochastic algorithms, since stochastic algorithms are usually applied a large number of times (at least 100), and hence, applying them on the reduced graph for the same number of iterations saves time. If we use the saved time to apply additional iterations, we might find a lower cost elimination sequence.
Preprocessing a graph may be used not only for finding treewidth or its approximation. For example, in many applications the problem is to find the sum of neighborhood weights of eliminated vertices, also called the total state space. Despite the fact that safe rules do not change the treewidth of a graph, they nevertheless may increase the total state space. However, in practice, reduction rules reduce the running time and improve the cost also for this problem.
We implemented the following reduction rules, that were defined in Eijkhof et al. (2002):
1. Simplicial rule.
2. Almost simplicial rule.
3. Buddies rule (generalized).
4. Cube rule.
The variable low is updated when applying the simplicial reduction rule. The other rules remove only vertices whose the elimination cost is less than, or equal to low.
Experimental Results
First Experiment
This experiment is conducted on 20 probabilistic networks. The Diabetes, Link, Munin networks are taken from medical applications, Barley is used for agricultural purposes, the Water network models a water purification system, and Superlink networks were generated by Superlink - a genetic linkage analysis program. Table 1 shows some results of the preprocessing technique.
The preprocessing consists of 3 phases. In each phase a set of reduction rules is employed.
1. Prepro-1 = {Simplicial rule}.
2. Prepro-2 = {Simplicial rule, Almost
simplicial rule}.
3. Prepro-3 = {Simplicial rule, Almost
simplicial rule, Buddies rule and Cube rule}. The Buddies rule is applied
separately for "buddies set" size = 2, 3, and 4.
For each problem instance, the size of the graph is shown
after moralization and after applying the first, second and third phases.
After each phase we also provide the percentage of vertices deleted
by each reduction rule in the set, the value of variable low, representing
the maximum lower bound currently known for the weighted treewidth, and
the running time of the preprocessing. The Buddies rule with "buddies set"
size = 4 and the Cube rule did not result in elimination of vertices.
Therefore, we concluded that there is no need in generalization of the
Cube rule, or in running the Buddies rule with set size more then 4. A
summary explaining all table entries is available here.
|
|
|
|
|
|
||||||||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||
Second Experiment
The next experiment has been conducted on 100 graphs to check whether the time saved due to the reductions can be used by running more iterations to improve the cost. Each graph was processed in four different ways: using the minimum fill-in algorithm with or without application of reduction rules, and using the weighted minimum fill-in algorithm with or without application of reduction rules. The reduction rules used are the simplicial rule, the almost simplicial rule, and the buddy rule (with buddy sets of 3 or 4). The first experiment clearly shows that this is an appropriate choice of reduction rules. Each of the four runs was given 1000 seconds.
Summary of Results
The results show that these reductions use a very small
amount of time and increase dramatically the number of stochastic iterations
that the two min-fill algorithms can run in this time framework of 1000
seconds. Furthermore, the resulting cost was also improved in most cases.
In particular, Min-Fill with reduction rules (as preprocessing) is superior
over Min-Fill without reduction rules in 68% of the graphs. In this case,
the average improvement in cost is ~4.2% which means an average reduction
of ~60% in memory requirements. If reductions are applied on all graphs
the average improvement is ~2.9% which means an average reduction of ~43%
in memory requirements. In 11% of the graphs Min-Fill found the same cost
with and without application of reduction rules.
The result for the weighted version are similar. The
weighted Min-Fill algorithm with reduction rules is superior over the weighted
Min-Fill algorithm without reduction rules in 67% of the graphs. In this
case, the average improvement in cost is ~4.4%. Assuming the reduction
rules are applied on all graphs (namely, also when they do not help) the
average improvement reduces to ~2.8%. In 12% of the graphs algorithm weighted
Min-Fill found the same cost with and without reduction rules.
Detailed Results
Each cell in the table below contains two numbers: the cost found, namely, log10 of the sum of table sizes produced during elimination, and the number of iterations performed in the given time frame of 1000 seconds. In addition, for each algorithm, the lowest cost, with reduction rules versus without reduction rules, is underlined. If the costs are equal, both are underlined.
|
|
|
|
|
|
|
|
|
||
|
|
|
|
|
||||||
|
|
|
|
|
|
|
6676 |
38385 |
3634 |
20616 |
|
|
|
|
|
|
|
495 |
519 |
264 |
282 |
|
|
|
|
|
|
|
4415 |
13066 |
2259 |
6494 |
|
|
|
|
|
|
|
1167 |
1597 |
593 |
810 |
|
|
|
|
|
|
|
1077 |
1263 |
597 |
712 |
|
|
|
|
|
|
|
2561 |
8495 |
1410 |
4674 |
|
|
|
|
|
|
|
1628 |
3202 |
905 |
1879 |
|
|
|
|
|
|
|
22253 |
1301257 |
12772 |
733295 |
|
|
|
|
|
|
|
6 14 73 |
4127 |
817 |
2215 |
|
|
|
|
|
|
|
820 |
1590 |
463 |
900 |
|
|
|
|
|
|
|
395 |
608 |
232 |
370 |
|
|
|
|
|
|
|
393 |
529 |
215 |
295 |
|
|
|
|
|
|
|
1325 |
3114 |
718 |
1677 |
|
|
|
|
|
|
|
583 |
873 |
314 |
469 |
|
|
|
|
|
|
|
315 |
436 |
166 |
234 |
|
|
|
|
|
|
|
381 |
489 |
203 |
268 |
|
|
|
|
|
|
|
1521 |
5795 |
829 |
3189 |
|
|
|
|
|
|
|
1240 |
4764 |
691 |
2605 |
|
|
|
|
|
|
|
480 |
847 |
264 |
481 |
|
|
|
|
|
|
|
791 |
2434 |
444 |
1355 |
|
|
|
|
|
|
|
193 |
293 |
103 |
162 |
|
|
|
|
|
|
|
255 |
372 |
139 |
199 |
|
|
|
|
|
|
|
540 |
722 |
284 |
384 |
|
|
|
|
|
|
|
784 |
3707 |
429 |
2014 |
|
|
|
|
|
|
|
726 |
1745 |
378 |
911 |
|
|
|
|
|
|
|
669 |
1764 |
344 |
879 |
|
|
|
|
|
|
|
367 |
628 |
193 |
338 |
|
|
|
|
|
|
|
1200 |
2980 |
661 |
1729 |
|
|
|
|
|
|
|
473 |
766 |
241 |
396 |
|
|
|
|
|
|
|
660 |
877 |
304 |
418 |
|
|
|
|
|
|
|
603 |
784 |
269 |
334 |
|
|
|
|
|
|
|
4016 |
17593 |
2082 |
9062 |
|
|
|
|
|
|
|
41589 |
1339162 |
22362 |
680463 |
|
|
|
|
|
|
|
1165 |
1758 |
590 |
877 |
|
|
|
|
|
|
|
165 |
172 |
94 |
100 |
|
|
|
|
|
|
|
344 |
366 |
153 |
162 |
|
|
|
|
|
|
|
1728 |
2463 |
940 |
1357 |
|
|
|
|
|
|
|
93 |
100 |
68 |
75 |
|
|
|
|
|
|
|
100 |
103 |
62 |
68 |
|
|
|
|
|
|
|
380 |
421 |
194 |
220 |
|
|
|
|
|
|
|
491 |
547 |
283 |
315 |
|
|
|
|
|
|
|
191 |
215 |
106 |
118 |
|
|
|
|
|
|
|
147 |
156 |
92 |
99 |
|
|
|
|
|
|
|
600 |
695 |
315 |
370 |
|
|
|
|
|
|
|
516 |
554 |
325 |
341 |
|
|
|
|
|
|
|
380 |
439 |
220 |
264 |
|
|
|
|
|
|
|
621 |
839 |
398 |
539 |
|
|
|
|
|
|
|
2572 |
9475 |
1513 |
5736 |
|
|
|
|
|
|
|
1130 |
2264 |
678 |
1421 |
|
|
|
|
|
|
|
170 |
183 |
111 |
119 |
|
|
|
|
|
|
|
239 |
251 |
141 |
148 |
|
|
|
|
|
|
|
146 |
167 |
95 |
107 |
|
|
|
|
|
|
|
3829 |
4877 |
2540 |
3293 |
|
|
|
|
|
|
|
235 |
245 |
154 |
164 |
|
|
|
|
|
|
|
2820 |
14032 |
1661 |
7260 |
|
|
|
|
|
|
|
960 |
1425 |
560 |
833 |
|
|
|
|
|
|
|
332 |
400 |
199 |
232 |
|
|
|
|
|
|
|
3233 |
12811 |
1862 |
7254 |
|
|
|
|
|
|
|
341 |
394 |
182 |
211 |
|
|
|
|
|
|
|
6089 |
1311527 |
3554 |
744369 |
|
|
|
|
|
|
|
9009 |
1294078 |
5297 |
743450 |
|
|
|
|
|
|
|
18845 |
145720 |
10809 |
82540 |
|
|
|
|
|
|
|
891 |
1316 |
504 |
748 |
|
|
|
|
|
|
|
2418 |
1306060 |
1435 |
749090 |
|
|
|
|
|
|
|
794 |
1045 |
466 |
597 |
|
|
|
|
|
|
|
332 |
405 |
184 |
222 |
|
|
|
|
|
|
|
672 |
1967 |
383 |
1101 |
|
|
|
|
|
|
|
468 |
639 |
271 |
369 |
|
|
|
|
|
|
|
5428 |
38726 |
3072 |
21133 |
|
|
|
|
|
|
|
16105 |
348323 |
9594 |
207446 |
|
|
|
|
|
|
|
6290 |
75238 |
3868 |
45068 |
|
|
|
|
|
|
|
2567 |
3748 |
1510 |
2201 |
|
|
|
|
|
|
|
732 |
1645 |
426 |
962 |
|
|
|
|
|
|
|
7858 |
1288974 |
4850 |
797134 |
|
|
|
|
|
|
|
5958 |
1306149 |
3665 |
788481 |
|
|
|
|
|
|
|
912 |
2588 |
545 |
1526 |
|
|
|
|
|
|
|
452 |
752 |
255 |
440 |
|
|
|
|
|
|
|
348 |
545 |
202 |
333 |
|
|
|
|
|
|
|
888 |
1977 |
534 |
1005 |
|
|
|
|
|
|
|
1182 |
3425 |
727 |
2057 |
|
|
|
|
|
|
|
2816 |
223139 |
1692 |
133853 |
|
|
|
|
|
|
|
5348 |
23217 |
2926 |
12470 |
|
|
|
|
|
|
|
1925 |
3656 |
1071 |
2500 |
|
|
|
|
|
|
|
2095 |
4987 |
1129 |
2685 |
|
|
|
|
|
|
|
3610 |
5640 |
2008 |
3097 |
|
|
|
|
|
|
|
3977 |
7187 |
2317 |
4159 |
|
|
|
|
|
|
|
1365 |
39776 |
785 |
22725 |
|
|
|
|
|
|
|
5998 |
14932 |
3462 |
8506 |
|
|
|
|
|
|
|
162067 |
1266975 |
98110 |
757484 |
|
|
|
|
|
|
|
314 |
344 |
139 |
156 |
|
|
|
|
|
|
|
2762 |
10122 |
1872 |
6737 |
|
|
|
|
|
|
|
14328 |
679530 |
15322 |
755786 |
|
|
|
|
|
|
|
524 |
670371 |
580 |
751241 |
|
|
|
|
|
|
|
2310 |
703264 |
2444 |
752771 |
|
|
|
|
|
|
|
982 |
2495 |
970 |
2424 |
|
|
|
|
|
|
|
3070 |
16803 |
2967 |
16196 |
|
|
|
|
|
|
|
1349 |
3705 |
1205 |
3116 |
|
|
|
|
|
|
|
125 |
144 |
122 |
142 |
|
|
|
|
|
|
|
1873 |
5823 |
1796 |
5412 |
|
|
|
|
|
|
|
7480 |
88146 |
7259 |
85595 |
Acknowledgements:
We thank the Research Unit of Decision Support Systems Aalborg University for providing instances of probabilistic networks.
Definitions, algorithms and some of the wordings were taken from the following references:
References
1. Hans L. Bodlaender, Arie M. C. A. Koster, Frank van den Eijkof, Linda C. van der Gaag: Pre-processing for Triangulation of Probabilistic Networks (ZIB Report 01-39, appeared in Proceedings of the 17th Conference on Uncertainty in Artificial Intelligence, J. Breese and D. Koller Eds., (2001), pp. 32-39, Published by Morgan Kaufmann Publishers, San Francisco)
2. Frank van den Eijkhof, Hans L. Bodlaender, Arie M.C.A. Koster: Safe reduction rules for weighted treewidth Konrad-Zuse-Zentrum für Informationstechnik Berlin, ZIB PaperWeb Reports / Preprints 2002 .