Computing the numbers of independent sets and matchings of all sizes for graphs with bounded treewidth

Pengfei Wan, Jianhua Tu, Shenggui Zhang, Binlong Li

Research output: Contribution to journalArticlepeer-review

6 Scopus citations

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(2p · pn3) and the numbers of matchings of all sizes with runtime O(22p · pn3), 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.

Original languageEnglish
Pages (from-to)42-47
Number of pages6
JournalApplied Mathematics and Computation
Volume332
DOIs
StatePublished - 1 Sep 2018

Keywords

  • Dynamic programming
  • Independent set
  • Matching
  • Treewidth

Fingerprint

Dive into the research topics of 'Computing the numbers of independent sets and matchings of all sizes for graphs with bounded treewidth'. Together they form a unique fingerprint.

Cite this