1. Computing the numbers of independent sets and matchings of all sizes for graphs with bounded treewidth.
- Author
-
Wan, Pengfei, Tu, Jianhua, Zhang, Shenggui, and Li, Binlong
- Subjects
- *
GRAPH theory , *ALGORITHMS , *DYNAMIC programming , *INDEPENDENT sets , *RUN time systems (Computer science) - Abstract
In the theory and applications of graphs, it is a basic problem to compute the numbers of independent sets and matchings of given sizes. Since the problem of computing the total number of independent sets and that of matchings of graphs is #P-complete, it is unlikely to give efficient algorithms to find the numbers of independent sets and matchings of given sizes. In this paper, for graphs with order n and treewidth at most p , we present two dynamic algorithms to compute the numbers of independent sets of all sizes with runtime O (2 p · pn 3 ) and the numbers of matchings of all sizes with runtime O (2 2 p · pn 3 ), respectively. By the algorithms presented in this paper, for graphs with small treewidths, the numbers of independent sets and matchings of all possible sizes can be computed efficiently. [ABSTRACT FROM AUTHOR]
- Published
- 2018
- Full Text
- View/download PDF