Skip to main content

On Synchronizing Tree Automata and Their Work–Optimal Parallel Run, Usable for Parallel Tree Pattern Matching

  • Conference paper
  • First Online:

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 12011))

Abstract

We present a way of synchronizing finite tree automata: We define a synchronizing term and a k-local deterministic finite bottom–up tree automaton. Furthermore, we present a work–optimal parallel algorithm for parallel run of the deterministic k-local tree automaton in \(\mathcal {O}(\log {n})\) time with \(\lceil \frac{n}{\log {n}}\rceil \) processors, for \(k \le \log {n}\), or in \(\mathcal {O}(k)\) time with \(\lceil \frac{n}{k}\rceil \) processors, for \(k \ge \log {n}\), where n is the number of nodes of an input tree, on EREW PRAM. Finally, we prove that the deterministic finite bottom–up tree automaton that is used as a standard tree pattern matcher is k-local with respect to the height of a tree pattern.

The authors acknowledge the support of the OP VVV MEYS funded project CZ.02.1.01/0.0/0.0/16_019/0000765 “Research Center for Informatics”.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

References

  1. Béal, M.-P., Perrin, D.: Symbolic dynamics and finite automata. In: Rozenberg, G., Salomaa, A. (eds.) Handbook of Formal Languages, pp. 463–506. Springer, Heidelberg (1997). https://doi.org/10.1007/978-3-662-07675-0_10

    Chapter  Google Scholar 

  2. Chen, C.C.-Y., Das, S.: Breadth-first traversal of trees and integer sorting in parallel. Inf. Process. Lett. 41, 39–49 (1992)

    Article  MathSciNet  Google Scholar 

  3. Cleophas, L.G.W.A.: Tree algorithms: two taxonomies and a toolkit. Ph.D. thesis, Department of Mathematics and Computer Science (2008)

    Google Scholar 

  4. Comon, H., et al.: Tree automata techniques and applications (2007). http://www.grappa.univ-lille3.fr/tata. Accessed 12 Oct 2007

  5. Gécseg, F., Steinby, M.: Tree languages. In: Handbook of Formal Languages, vol. 3, pp. 1–68. Springer, New York (1997). https://doi.org/10.1007/978-3-642-59136-5

    MATH  Google Scholar 

  6. Hoffmann, C.M., O’Donnell, M.J.: Pattern matching in trees. J. ACM 29(1), 68–95 (1982)

    Article  MathSciNet  Google Scholar 

  7. Holub, J., Štekr, S.: On parallel implementations of deterministic finite automata. In: Maneth, S. (ed.) CIAA 2009. LNCS, vol. 5642, pp. 54–64. Springer, Heidelberg (2009). https://doi.org/10.1007/978-3-642-02979-0_9

    Chapter  MATH  Google Scholar 

  8. JaJa, J.F.: An Introduction to Parallel Algorithms. Addison Wesley Longman Publishing Co., Inc., Redwood City (1992)

    MATH  Google Scholar 

  9. Lohrey, M.: On the parallel complexity of tree automata. In: Middeldorp, A. (ed.) RTA 2001. LNCS, vol. 2051, pp. 201–215. Springer, Heidelberg (2001). https://doi.org/10.1007/3-540-45127-7_16

    Chapter  Google Scholar 

  10. Prasad, S.K., Das, S.K., Chen, C.C.-Y.: Efficient EREW PRAM algorithms for parentheses-matching. IEEE Trans. Parallel Distrib. Syst. 5(9), 995–1008 (1994)

    Article  Google Scholar 

  11. Ramesh, R., Ramakrishnan, I.V.: Parallel tree pattern matching. J. Symb. Comput. 9(4), 485–501 (1990)

    Article  Google Scholar 

  12. Tarora, K., Hirata, T., Inagaki, Y.: A parallel algorithm for tree pattern matching. Syst. Comput. Japan 24(5), 30–39 (1993)

    Article  Google Scholar 

  13. Černý, J.: Poznámka k homogénnym experimentom s konečnými automatmi. Matematicko-fyzikálny časopis 14(3), 208–216 (1964)

    Google Scholar 

  14. Rosenauerová, B., Černý, J., Pirická, A.: On directable automata. Kybernetika 7(4), 289–298 (1971)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding authors

Correspondence to Štěpán Plachý or Jan Janoušek .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Plachý, Š., Janoušek, J. (2020). On Synchronizing Tree Automata and Their Work–Optimal Parallel Run, Usable for Parallel Tree Pattern Matching. In: Chatzigeorgiou, A., et al. SOFSEM 2020: Theory and Practice of Computer Science. SOFSEM 2020. Lecture Notes in Computer Science(), vol 12011. Springer, Cham. https://doi.org/10.1007/978-3-030-38919-2_47

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-38919-2_47

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-38918-5

  • Online ISBN: 978-3-030-38919-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics