An efficient algorithm is presented to compute the characteristic polynomial of a threshold graph. Threshold graphs were introduced by Chvátal and Hammer, as well as by Henderson and Zalcstein in 1977. A threshold graph is obtained from a one vertex graph by repeatedly adding either an isolated vertex or a dominating vertex, which is a vertex adjacent to all the other vertices. Threshold graphs are special kinds of cographs, which themselves are special kinds of graphs of clique-width 2. We obtain a running time of O(nlog2n) for computing the characteristic polynomial, while the previously fastest algorithm ran in quadratic time. We improve the running time drastically in the case where there is a small number of alternations between 0's and 1's in the sequence defining a threshold graph.
All Science Journal Classification (ASJC) codes
- Theoretical Computer Science
- General Computer Science