Abstract
We consider the problem of coding labeled trees by means of strings of node labels and we present a unified approach based on a reduction of both coding and decoding to integer (radix) sorting. Applying this approach to four well-known codes introduced by Prüfer [18], Neville [17], and Deo and Micikevicius [5], we close some open problems. With respect to coding, our general sequential algorithm requires optimal linear time, thus solving the problem of optimally computing the second code presented by Neville. The algorithm can be parallelized on the EREW PRAM model, so as to work in O(log n) time using O(n) or \(O(n \sqrt{log n})\) operations, depending on the code.
With respect to decoding, the problem of finding an optimal sequential algorithm for the second Neville code was also open, and our general scheme solves it. Furthermore, in a parallel setting our scheme yields the first efficient decoding algorithms for the codes in [5] and [17].
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
Atallah, M.J., Cole, R., Goodrich, M.T.: Cascading divide-and-conquer: a technique for designing parallel algorithms. SIAM Journal of Computing 18(3), 499–532 (1989)
Cayley, A.: A theorem on trees. Quarterly Journal of Mathematics 23, 376–378 (1889)
Chen, H.C., Wang, Y.L.: An efficient algorithm for generating Prüfer codes from labelled trees. Theory of Computing Systems 33, 97–105 (2000)
Cormen, T.H., Leiserson, C.E., Rivest, R.L., Stein, C.: Introduction to algorithms. McGraw-Hill, New York (2001)
Deo, N., Micikevicius, P.: A new encoding for labeled trees employing a stack and a queue. Bulletin of the Institute of Combinatorics and its Applications 34, 77–85 (2002)
Deo, N., Micikevicius, P.: Prüfer-like codes for labeled trees. Congressus Numerantium 151, 65–73 (2001)
Deo, N., Micikevicius, P.: Parallel algorithms for computing Prüfer-like codes of labeled trees. Computer Science Technical Report CS-TR-01-06 (2001)
Edelson, W., Gargano, M.L.: Feasible encodings for GA solutions of constrained minimal spanning tree problems. In: Proceedings of the Genetic and Evolutionary Computation Conference, p. 754. Morgan Kaufmann Publishers, San Francisco (2000)
Greenlaw, R., Halldorsson, M.M., Petreschi, R.: On computing Prüfer codes and their corresponding trees optimally. In: Proceedings Journees de l’Informatique Messine, Graph algorithms (2000)
Greenlaw, R., Petreschi, R.: Computing Prüfer codes efficiently in parallel. Discrete Applied Mathematics 102, 205–222 (2000)
Han, Y., Shen, X.: Parallel integer sorting is more efficient than parallel comparison sorting on exclusive write PRAMS. SIAM Journal of Computing 31(6), 1852–1878 (1852)
Jájá, J.: An Introduction to parallel algorithms. Addison Wesley, Reading (1992)
Kelmans, A., Pak, I., Postnikov, A.: Tree and forest volumes of graphs. DIMACS Technical Report 2000-03 (2000)
Kumar, V., Deo, N., Kumar, N.: Parallel generation of random trees and connected graphs. Congressus Numerantium 130, 7–18 (1998)
Lo, W.T., Peng, S.: The optimal location of a structured facility in a tree network. Journal of Parallel Algorithms and Applications 2, 43–60 (1994)
Moon, J.W.: Counting labeled trees. William Clowes and Sons, London (1970)
Neville, E.H.: The codifying of tree structures. Proceedings of Cambridge Philosophical Society 49, 381–385 (1953)
Prüfer, H.: Neuer Beweis eines Satzes über Permutationen. Archiv für Mathematik und Physik 27, 142–144 (1918)
Wang, Y.L., Chen, H.C., Liu, W.K.: A parallel algorithm for constructing a labeled tree. IEEE Transactions on Parallel and Distributed Systems 8(12), 1236–1240 (1997)
Zhou, G., Gen, M.: A note on genetic algorithms for degree-constrained spanning tree problems. Networks 30, 91–95 (1997)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2004 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Caminiti, S., Finocchi, I., Petreschi, R. (2004). A Unified Approach to Coding Labeled Trees. In: Farach-Colton, M. (eds) LATIN 2004: Theoretical Informatics. LATIN 2004. Lecture Notes in Computer Science, vol 2976. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-24698-5_38
Download citation
DOI: https://doi.org/10.1007/978-3-540-24698-5_38
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-21258-4
Online ISBN: 978-3-540-24698-5
eBook Packages: Springer Book Archive