MSO Queries on Trees: Enumerating Answers under Updates Using Forest Algebras

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Kleest-Meißner, Sarah, Marasus, Jonas, Niewerth, Matthias
Format: Preprint
Published: 2022
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915535975874560
author Kleest-Meißner, Sarah
Marasus, Jonas
Niewerth, Matthias
author_facet Kleest-Meißner, Sarah
Marasus, Jonas
Niewerth, Matthias
contents We describe a framework for maintaining forest algebra representations that are of logarithmic height for unranked trees. Such representations can be computed in O(n) time and updated in O(log(n)) time. The framework is of potential interest for data structures and algorithms for trees whose complexity depend on the depth of the tree (representation). We provide an exemplary application of the framework to the problem of efficiently enumerating answers to MSO-definable queries over trees which are subject to local updates. We exhibit an algorithm that uses an O(n) preprocessing phase and enumerates answers with O(log(n)) delay between them. When the tree is updated, the algorithm can avoid repeating expensive preprocessing and restart the enumeration phase within O(log(n)) time. Our algorithms and complexity results in the paper are presented in terms of node-selecting tree automata representing the MSO queries.
format Preprint
id arxiv_https___arxiv_org_abs_2208_04180
institution arXiv
publishDate 2022
record_format arxiv
spellingShingle MSO Queries on Trees: Enumerating Answers under Updates Using Forest Algebras
Kleest-Meißner, Sarah
Marasus, Jonas
Niewerth, Matthias
Logic in Computer Science
Data Structures and Algorithms
We describe a framework for maintaining forest algebra representations that are of logarithmic height for unranked trees. Such representations can be computed in O(n) time and updated in O(log(n)) time. The framework is of potential interest for data structures and algorithms for trees whose complexity depend on the depth of the tree (representation). We provide an exemplary application of the framework to the problem of efficiently enumerating answers to MSO-definable queries over trees which are subject to local updates. We exhibit an algorithm that uses an O(n) preprocessing phase and enumerates answers with O(log(n)) delay between them. When the tree is updated, the algorithm can avoid repeating expensive preprocessing and restart the enumeration phase within O(log(n)) time. Our algorithms and complexity results in the paper are presented in terms of node-selecting tree automata representing the MSO queries.
title MSO Queries on Trees: Enumerating Answers under Updates Using Forest Algebras
topic Logic in Computer Science
Data Structures and Algorithms
url https://arxiv.org/abs/2208.04180