Skip to main content

Graphs and decidable transductions based on edge constraints

Extended abstract

  • Contributed Papers
  • Conference paper
  • First Online:
Trees in Algebra and Programming — CAAP'94 (CAAP 1994)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 787))

Included in the following conference series:

Abstract

We give examples to show that not even c-edNCE, the most general known notion of context-free graph grammar, is suited for the specification of some common data structures.

To overcome this problem, we use monadic second-order logic and introduce edge constraints as a new means of specifying a large class of graph families. Our notion stems from a natural dichotomy found in programming practice between ordinary pointers forming spanning trees and auxiliary pointers cutting across.

Our main result is that for certain transformations of graphs definable in monadic second-order logic, the question of whether a graph family given by a specification A is mapped to a family given by a specification B is decidable. Thus a decidable Hoare logic arises.

The author is supported by a fellowship from the Danish Research Council.

The author is partially supported by the BRICS Center under the Danish Research Foundation.

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

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. B. Courcelle. Graph rewriting: an algebraic and logic approach. In J. van Leeuwen, editor, Handbook of Theoretical Computer Science, volume B, pages 193–242. Elsevier Science Publishers, 1990.

    Google Scholar 

  2. B. Courcelle. The monadic second-order logic of graphs I. Recognizable sets of finite graphs. Information and computation, 85:12–75, 1990.

    Article  Google Scholar 

  3. B. Courcelle. Monadic second-order definable graph transductions. In J.C. Raoult, editor, CAAP '92, Colloquium on Trees in Algebra and Programming, LNCS 581, pages 124–144. Springer Verlag, 1992.

    Google Scholar 

  4. J. Engelfriet. A characterizarion of context-free NCE graph languages by monadic second-order logic on trees. In H. Ehrig, H.J. Kreowski, and G. Rozenberg, editors, Graph grammars and their applications to computer science, 4th International Workshop, LNCS 532, pages 311–327. Springer Verlag, 1990.

    Google Scholar 

  5. N. Klarlund and M. Schwartzbach. Graph types. In Proc. 20th Symp. on Princ. of Prog. Lang., pages 196–205. ACM, 1993.

    Google Scholar 

  6. N. Klarlund and M. Schwartzbach. Invariants as data types. Unpublished, 1993.

    Google Scholar 

  7. M. Rabin. A simple method for undecidability proofs and some applications. In Logic, Methodology and Philosophy of Science II, pages 58–68. North-Holland, 1965.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Sophie Tison

Rights and permissions

Reprints and permissions

Copyright information

© 1994 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Klarlund, N., Schwartzbach, M.I. (1994). Graphs and decidable transductions based on edge constraints. In: Tison, S. (eds) Trees in Algebra and Programming — CAAP'94. CAAP 1994. Lecture Notes in Computer Science, vol 787. Springer, Berlin, Heidelberg. https://doi.org/10.1007/BFb0017482

Download citation

  • DOI: https://doi.org/10.1007/BFb0017482

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-57879-6

  • Online ISBN: 978-3-540-48373-1

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics