Enumeration on trees with tractable combined complexity and efficient updates

Antoine Amarilli, Pierre Bourhis, Stefan Mengel, Matthias Niewerth

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

We give an algorithm to enumerate the results on trees of monadic second-order (MSO) queries represented by nondeterministic tree automata. After linear time preprocessing (in the input tree), we can enumerate answers with linear delay (in each answer). We allow updates on the tree to take place at any time, and we can then restart the enumeration after logarithmic time in the tree. Further, all our combined complexities are polynomial in the automaton. Our result follows our previous circuit-based enumeration algorithms based on deterministic tree automata, and is also inspired by our earlier result on words and nondeterministic sequential extended variable-set automata in the context of document spanners. We extend these results and combine them with a recent tree balancing scheme by Niewerth, so that our enumeration structure supports updates to the underlying tree in logarithmic time (with leaf insertions, leaf deletions, and node relabelings). Our result implies that, for MSO queries with free first-order variables, we can enumerate the results with linear preprocessing and constant-delay and update the underlying tree in logarithmic time, which improves on several known results for words and trees. Building on lower bounds from data structure research, we also show unconditionally that up to a doubly logarithmic factor the update time of our algorithm is optimal. Thus, unlike other settings, there can be no algorithm with constant update time.

Original languageEnglish
Title of host publicationPODS 2019 - Proceedings of the 38th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems
PublisherAssociation for Computing Machinery
Pages89-103
Number of pages15
ISBN (Electronic)9781450362276
DOIs
Publication statusPublished - 25 Jun 2019
Externally publishedYes
Event38th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems, PODS 2019 held in conjunction with the 2019 ACM SIGMOD International Conference on Management of Data, SIGMOD 2019 - Amsterdam, Netherlands
Duration: 1 Jul 20193 Jul 2019

Publication series

NameProceedings of the ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems
ISSN (Print)1055-6338

Conference

Conference38th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems, PODS 2019 held in conjunction with the 2019 ACM SIGMOD International Conference on Management of Data, SIGMOD 2019
Country/TerritoryNetherlands
CityAmsterdam
Period1/07/193/07/19

Fingerprint

Dive into the research topics of 'Enumeration on trees with tractable combined complexity and efficient updates'. Together they form a unique fingerprint.

Cite this