Efficient diagonalization of symmetric matrices associated with graphs of small treewidth
arXiv:2109.02515
Abstract
Let be a symmetric matrix of order whose elements lie in an arbitrary field , and let be the graph with vertex set such that distinct vertices and are adjacent if and only if . We introduce a dynamic programming algorithm that finds a diagonal matrix that is congruent to . If is given with a tree decomposition of width , then this can be done in time , where denotes the number of nodes in . Among other things, this allows one to compute the determinant, the rank and the inertia of a symmetric matrix in time .