Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1007/11874683_11guideproceedingsArticle/Chapter ViewAbstractPublication PagesConference Proceedingsacm-pubtype
Article

MSO queries on tree decomposable structures are computable with linear delay

Published: 25 September 2006 Publication History

Abstract

Linear-Delaylin is the class of enumeration problems computable in two steps: the first step is a precomputation in linear time in the size of the input and the second step computes successively all the solutions with a delay between two consecutive solutions y1 and y2 that is linear in |y2|. We prove that evaluating a fixed monadic second order (MSO) query $\varphi(\bar{X})$ (i.e. computing all the tuples that satisfy the MSO formula) in a binary tree is a Linear-Delaylin problem. More precisely, we show that given a binary tree T and a tree automaton Γ representing an MSO query $\varphi(\bar{X})$, we can evaluate Γ on T with a preprocessing in time and space complexity O(|Γ|3|T|) and an enumeration phase with a delay O(|S|) and space O(max|S|) where |S| is the size of the next solution and max|S| is the size of the largest solution. We introduce a new kind of algorithm with nice complexity properties for some algebraic operations on enumeration problems. In addition, we extend the precomputation (with the same complexity) such that the ith (with respect to a certain order) solution S is produced directly in time O(|S|log(|T|)). Finally, we generalize these results to bounded treewidth structures.

References

[1]
Alfred V. Aho, John E. Hopcroft, and Jeffrey D. Ullman. Data Structures and Algorithms. Addison-Wesley Series in Computer Science and Information Processing. Addison-Wesley, 1982.
[2]
Stefan Arnborg, Jens Lagergren, and Detlef Seese. Easy problems for tree decomposable graphs. J. Algorithms, 12(2):308-340, 1991.
[3]
Hans L. Bodlaender. A tourist guide through treewidth. Acta Cybernetica, 11:1-21, 1993.
[4]
Hans L. Bodlaender. A linear-time algorithm for finding tree-decompositions of small treewidth. SIAM J. Comput., 25(6):1305-1317, 1996.
[5]
H. Comon, M. Dauchet, R. Gilleron, F. Jacquemard, D. Lugiez, S. Tison, and M. Tommasi. Tree automata techniques and applications. Available on: http://www.grappa.univ-lille3.fr/tata, 1997. release October, 1rst 2002.
[6]
Bruno Courcelle. Graph rewriting: An algebraic and logic approach. In Handbook of Theoretical Computer Science, Volume B: Formal Models and Sematics (B), pages 193-242. 1990.
[7]
Bruno Courcelle. Linear delay enumeration and monadic second-order logic, 2006. Submitted.
[8]
Bruno Courcelle and Mohamed Mosbah. Monadic second-order evaluations on tree-decomposable graphs. Theor. Comput. Sci., 109(1&2):49-82, 1993.
[9]
R. G. Downey and M. R. Fellows. Parameterized Complexity. Springer, 1999.
[10]
Arnaud Durand and Etienne Grandjean. First-order queries on structures of bounded degree are computable with constant delay. Transactions on Computational Logic, To appear.
[11]
Jörg Flum, Markus Frick, and Martin Grohe. Query evaluation via treedecompositions. J. ACM, 49(6):716-752, 2002.
[12]
Etienne Grandjean and Frédéric Olive. Graph properties checkable in linear time in the number of vertices. J. Comput. Syst. Sci., 68(3):546-597, 2004.
[13]
Etienne Grandjean and Thomas Schwentick. Machine-independent characterizations and complete problems for deterministic linear time. SIAM J. Comput., 32(1):196-230, 2002.
[14]
Leonid Libkin. Elements of finite model theory. Springer, 2004. LIB l04:11.Ex.
[15]
James W. Thatcher and Jesse B. Wright. Generalized finite automata theory with an application to a decision problem of second-order logic. Mathematical Systems Theory, 2(1):57-81, 1968.

Cited By

View all
  • (2024)Enumeration for MSO-Queries on Compressed TreesProceedings of the ACM on Management of Data10.1145/36511412:2(1-17)Online publication date: 14-May-2024
  • (2019)Efficient Logspace Classes for Enumeration, Counting, and Uniform GenerationProceedings of the 38th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems10.1145/3294052.3319704(59-73)Online publication date: 25-Jun-2019
  • (2019)Enumeration on Trees with Tractable Combined Complexity and Efficient UpdatesProceedings of the 38th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems10.1145/3294052.3319702(89-103)Online publication date: 25-Jun-2019
  • Show More Cited By

Recommendations

Comments

Information & Contributors

Information

Published In

cover image Guide Proceedings
CSL'06: Proceedings of the 20th international conference on Computer Science Logic
September 2006
626 pages
ISBN:3540454586
  • Editor:
  • Zoltán Ésik

Publisher

Springer-Verlag

Berlin, Heidelberg

Publication History

Published: 25 September 2006

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)0
  • Downloads (Last 6 weeks)0
Reflects downloads up to 30 Aug 2024

Other Metrics

Citations

Cited By

View all
  • (2024)Enumeration for MSO-Queries on Compressed TreesProceedings of the ACM on Management of Data10.1145/36511412:2(1-17)Online publication date: 14-May-2024
  • (2019)Efficient Logspace Classes for Enumeration, Counting, and Uniform GenerationProceedings of the 38th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems10.1145/3294052.3319704(59-73)Online publication date: 25-Jun-2019
  • (2019)Enumeration on Trees with Tractable Combined Complexity and Efficient UpdatesProceedings of the 38th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems10.1145/3294052.3319702(89-103)Online publication date: 25-Jun-2019
  • (2018)MSO Queries on TreesProceedings of the 33rd Annual ACM/IEEE Symposium on Logic in Computer Science10.1145/3209108.3209144(769-778)Online publication date: 9-Jul-2018
  • (2018)Constant Delay Algorithms for Regular Document SpannersProceedings of the 37th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems10.1145/3196959.3196987(165-177)Online publication date: 27-May-2018
  • (2018)Enumeration for FO Queries over Nowhere Dense GraphsProceedings of the 37th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems10.1145/3196959.3196971(151-163)Online publication date: 27-May-2018
  • (2018)Enumeration of MSO Queries on Strings with Constant Delay and Logarithmic UpdatesProceedings of the 37th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems10.1145/3196959.3196961(179-191)Online publication date: 27-May-2018
  • (2017)On the complexity of enumerating the extensions of abstract argumentation frameworksProceedings of the 26th International Joint Conference on Artificial Intelligence10.5555/3171642.3171805(1145-1152)Online publication date: 19-Aug-2017
  • (2015)Constant Delay Enumeration for Conjunctive QueriesACM SIGMOD Record10.1145/2783888.278389444:1(10-17)Online publication date: 21-May-2015
  • (2014)MSO queries on treesProceedings of the Joint Meeting of the Twenty-Third EACSL Annual Conference on Computer Science Logic (CSL) and the Twenty-Ninth Annual ACM/IEEE Symposium on Logic in Computer Science (LICS)10.1145/2603088.2603137(1-10)Online publication date: 14-Jul-2014
  • Show More Cited By

View Options

View options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media