Abstract
An O(nlog2 n) algorithm is presented to compute all coefficients of the characteristic polynomial of a tree on n vertices improving on the previously best quadratic time. With the same running time, the algorithm can be generalized in two directions. The algorithm is a counting algorithm for matchings, and the same ideas can be used to count other objects. For example, one can count the number of independent sets of all possible sizes simultaneously with the same running time. These counting algorithms not only work for trees, but can be extended to arbitrary graphs of bounded tree-width.
Original language | English (US) |
---|---|
Pages (from-to) | 626-642 |
Number of pages | 17 |
Journal | Algorithmica |
Volume | 68 |
Issue number | 3 |
DOIs | |
State | Published - Mar 2014 |
All Science Journal Classification (ASJC) codes
- General Computer Science
- Computer Science Applications
- Applied Mathematics