English

On the expressive power of query languages for matrices

Databases 2017-09-26 v1

Abstract

We investigate the expressive power of MATLANG\mathsf{MATLANG}, a formal language for matrix manipulation based on common matrix operations and linear algebra. The language can be extended with the operation inv\mathsf{inv} of inverting a matrix. In MATLANG+inv\mathsf{MATLANG}+\mathsf{inv} we can compute the transitive closure of directed graphs, whereas we show that this is not possible without inversion. Indeed we show that the basic language can be simulated in the relational algebra with arithmetic operations, grouping, and summation. We also consider an operation eigen\mathsf{eigen} for diagonalizing a matrix, which is defined so that different eigenvectors returned for a same eigenvalue are orthogonal. We show that inv\mathsf{inv} can be expressed in MATLANG+eigen\mathsf{MATLANG}+\mathsf{eigen}. We put forward the open question whether there are boolean queries about matrices, or generic queries about graphs, expressible in MATLANG+eigen\mathsf{MATLANG} + \mathsf{eigen} but not in MATLANG+inv\mathsf{MATLANG}+\mathsf{inv}. The evaluation problem for MATLANG+eigen\mathsf{MATLANG} + \mathsf{eigen} is shown to be complete for the complexity class R\exists \mathbf{R}.

Keywords

Cite

@article{arxiv.1709.08359,
  title  = {On the expressive power of query languages for matrices},
  author = {Robert Brijder and Floris Geerts and Jan Van den Bussche and Timmy Weerwag},
  journal= {arXiv preprint arXiv:1709.08359},
  year   = {2017}
}

Comments

21 pages, 3 figures