FoSSaCS 2013: Foundations of Software Science and Computation Structures pp 385-400 | Cite as
Weighted Specifications over Nested Words
Abstract
This paper studies several formalisms to specify quantitative properties of finite nested words (or equivalently finite unranked trees). These can be used for XML documents or recursive programs: for instance, counting how often a given entry occurs in an XML document, or computing the memory required for a recursive program execution. Our main interest is to translate these properties, as efficiently as possible, into an automaton, and to use this computational device to decide problems related to the properties (e.g., emptiness, model checking, simulation) or to compute the value of a quantitative specification over a given nested word. The specification formalisms are weighted regular expressions (with forward and backward moves following linear edges or call-return edges), weighted first-order logic, and weighted temporal logics. We introduce weighted automata walking in nested words, possibly dropping/lifting (reusable) pebbles during the traversal. We prove that the evaluation problem for such automata can be done very efficiently if the number of pebble names is small, and we also consider the emptiness problem.
Keywords
Temporal Logic Regular Expression Zero Divisor Tree Automaton Recursive ProgramReferences
- 1.Alur, R., Madhusudan, P.: Adding nesting structure to words. J. ACM 56, 16:1–16:43 (2009)MathSciNetCrossRefGoogle Scholar
- 2.Gauwin, O., Niehren, J., Roos, Y.: Streaming tree automata. Inf. Process. Lett. 109(1), 13–17 (2008)MathSciNetCrossRefGoogle Scholar
- 3.Alur, R., Arenas, M., Barceló, E.K., Immerman, N., Libkin, L.: First-order and temporal logics for nested words. LMCS 4(4) (2008)Google Scholar
- 4.Madhusudan, P., Viswanathan, M.: Query Automata for Nested Words. In: Královič, R., Niwiński, D. (eds.) MFCS 2009. LNCS, vol. 5734, pp. 561–573. Springer, Heidelberg (2009)CrossRefGoogle Scholar
- 5.Bollig, B., Gastin, P., Monmege, B., Zeitoun, M.: Pebble Weighted Automata and Transitive Closure Logics. In: Abramsky, S., Gavoille, C., Kirchner, C., Meyer auf der Heide, F., Spirakis, P.G. (eds.) ICALP 2010. LNCS, vol. 6199, pp. 587–598. Springer, Heidelberg (2010)CrossRefGoogle Scholar
- 6.Schützenberger, M.P.: On the definition of a family of automata. Information and Control 4, 245–270 (1961)MathSciNetMATHCrossRefGoogle Scholar
- 7.Droste, M., Gastin, P.: Weighted automata and weighted logics. In: Handbook of Weighted Automata, pp. 175–211. Springer (2009)Google Scholar
- 8.Mathissen, C.: Weighted logics for nested words and algebraic formal power series. Logical Methods in Computer Science 6(1) (2010)Google Scholar
- 9.Droste, M., Vogler, H.: Weighted logics for unranked tree automata. Theory Comput. Syst. 48(1), 23–47 (2011)MathSciNetMATHCrossRefGoogle Scholar
- 10.Bojańczyk, M.: Tree-Walking Automata. In: Martín-Vide, C., Otto, F., Fernau, H. (eds.) LATA 2008. LNCS, vol. 5196, pp. 1–2. Springer, Heidelberg (2008)CrossRefGoogle Scholar
- 11.Engelfriet, J., Hoogeboom, H.J., Samwel, B.: XML transformation by tree-walking transducers with invisible pebbles. In: Proceedings of PODS 2007, pp. 63–72 (2007)Google Scholar
- 12.Gastin, P., Monmege, B.: Adding Pebbles to Weighted Automata. In: Moreira, N., Reis, R. (eds.) CIAA 2012. LNCS, vol. 7381, pp. 28–51. Springer, Heidelberg (2012)CrossRefGoogle Scholar
- 13.Bollig, B., Gastin, P., Monmege, B.: Weighted specifications over nested words. Technical report (2013), http://www.lsv.ens-cachan.fr/Publis/RAPPORTS_LSV/newrapports
- 14.Droste, M., Kuich, W.: Semirings and formal power series. In: Handbook of Weighted Automata, pp. 3–27. Springer (2009)Google Scholar
- 15.Sakarovitch, J.: Automata and expressions. In: AutoMathA Handbook (2012) (to appear)Google Scholar
- 16.Conway, J.: Regular Algebra and Finite Machines. Chapman & Hall (1971)Google Scholar
- 17.Libkin, L.: Elements of Finite Model Theory. In: EATCS. Springer (2004)Google Scholar