Structural Recursion as a Query Language on Lists and Ordered Trees

  • Authors:
  • Edward L. Robertson;Lawrence V. Saxton;Dirk Van Gucht;Stijn Vansummeren

  • Affiliations:
  • Indiana University, Bloomington, IN, USA;University of Regina, Regina, SK, Canada;Indiana University, Bloomington, IN, USA;Hasselt University and Translational University of Limburg, 3560, Diepenbeek, Belgium

  • Venue:
  • Theory of Computing Systems
  • Year:
  • 2009

Quantified Score

Hi-index 0.00

Visualization

Abstract

XML query languages need to provide some mechanism to inspect and manipulate nodes at all levels of an input tree. We investigate the expressive power provided in this regard by structural recursion. In particular, we show that the combination of vertical recursion down a tree combined with horizontal recursion across a list of trees gives rise to a robust class of transformations: it captures the class of all primitive recursive queries. Since queries are expected to be computable in at most polynomial time for all practical purposes, we next identify a restriction of structural recursion that captures the polynomial time queries. We also give corresponding results for list-based complex objects.