Abstract
We investigate garbage collection of unreachable parts of rooted graphs from a categorical point of view. First, we define this task as the right adjoint of an inclusion functor. We also show that garbage collection may be stated via a left adjoint, hence preserving colimits, followed by two right adjoints. These three adjoints cope well with the different phases of a traditional garbage collector. Consequently, our results should naturally help to better formulate graph transformation steps in order to get rid of garbage (unwanted nodes). We illustrate this point on a particular class of graph rewriting systems based on a double pushout approach and featuring edge redirection. Our approach gives a neat rewriting step akin to the one on terms, where garbage never appears in the reduced term.
This work has been partly funded by the projet ARROWS of the French Agence Nationale de la Recherche.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Banach, R.: Term graph rewriting and garbage collection using opfibrations. Theoretical Computer Science 131, 29–94 (1994)
Barendregt, H., van Eekelen, M., Glauert, J., Kenneway, R., Plasmeijer, M.J., Sleep, M.: Term graph rewriting. In: de Bakker, J.W., Nijman, A.J., Treleaven, P.C. (eds.) PARLE 1987. LNCS, vol. 259, pp. 141–158. Springer, Heidelberg (1987)
Broek, P.V.D.: Algebraic graph rewriting using a single pushout. In: Abramsky, S. (ed.) CAAP 1991 and TAPSOFT 1991. LNCS, vol. 493, pp. 90–102. Springer, Heidelberg (1991)
Cohen, J.: Garbage collection of linked data structures. Computing Surveys 13(3), 341–367 (1981)
Collins, G.: A method for overlapping and erasure of lists. Communication of the ACM 3(12), 655–657 (1960)
Duval, D., Echahed, R., Prost, F.: Modeling pointer redirection as cyclic term graph rewriting. In: TERMGRAPH 2006 (2006) (Extended version to appear in ENTCS)
Ehrig, H., Pfender, M., Schneider, H.J.: Graph-grammars: An algebraic approach. In: FOCS 1973, pp. 167–180 (1973)
Jones, R.E., Lins, R.: Garbage Collection: Algorithms for Automatic Dynamic Memory Management. J. Wiley & Son, New York (1996)
McCarthy, J.: Recursive functions of symbolic expressions and their computation by machine-i. Communication of the ACM 3(1), 184–195 (1960)
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 2007 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Duval, D., Echahed, R., Prost, F. (2007). Adjunction for Garbage Collection with Application to Graph Rewriting. In: Baader, F. (eds) Term Rewriting and Applications. RTA 2007. Lecture Notes in Computer Science, vol 4533. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-73449-9_11
Download citation
DOI: https://doi.org/10.1007/978-3-540-73449-9_11
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-73447-5
Online ISBN: 978-3-540-73449-9
eBook Packages: Computer ScienceComputer Science (R0)