English

Efficient diagonalization of symmetric matrices associated with graphs of small treewidth

Data Structures and Algorithms 2021-10-28 v2 Symbolic Computation Combinatorics

Abstract

Let M=(mij)M=(m_{ij}) be a symmetric matrix of order nn whose elements lie in an arbitrary field F\mathbb{F}, and let GG be the graph with vertex set {1,,n}\{1,\ldots,n\} such that distinct vertices ii and jj are adjacent if and only if mij0m_{ij} \neq 0. We introduce a dynamic programming algorithm that finds a diagonal matrix that is congruent to MM. If GG is given with a tree decomposition T\mathcal{T} of width kk, then this can be done in time O(kT+k2n)O(k|\mathcal{T}| + k^2 n), where T|\mathcal{T}| denotes the number of nodes in T\mathcal{T}. Among other things, this allows one to compute the determinant, the rank and the inertia of a symmetric matrix in time O(kT+k2n)O(k|\mathcal{T}| + k^2 n).

Keywords

Cite

@article{arxiv.2109.02515,
  title  = {Efficient diagonalization of symmetric matrices associated with graphs of small treewidth},
  author = {Martin Fürer and Carlos Hoppen and Vilmar Trevisan},
  journal= {arXiv preprint arXiv:2109.02515},
  year   = {2021}
}