Skip to main content

A Unified Approach to Coding Labeled Trees

  • Conference paper
LATIN 2004: Theoretical Informatics (LATIN 2004)

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

Included in the following conference series:

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].

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.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

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. 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)

    Article  MATH  MathSciNet  Google Scholar 

  2. Cayley, A.: A theorem on trees. Quarterly Journal of Mathematics 23, 376–378 (1889)

    Google Scholar 

  3. 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)

    Article  MATH  MathSciNet  Google Scholar 

  4. Cormen, T.H., Leiserson, C.E., Rivest, R.L., Stein, C.: Introduction to algorithms. McGraw-Hill, New York (2001)

    MATH  Google Scholar 

  5. 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)

    MATH  MathSciNet  Google Scholar 

  6. Deo, N., Micikevicius, P.: Prüfer-like codes for labeled trees. Congressus Numerantium 151, 65–73 (2001)

    MATH  MathSciNet  Google Scholar 

  7. Deo, N., Micikevicius, P.: Parallel algorithms for computing Prüfer-like codes of labeled trees. Computer Science Technical Report CS-TR-01-06 (2001)

    Google Scholar 

  8. 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)

    Google Scholar 

  9. 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)

    Google Scholar 

  10. Greenlaw, R., Petreschi, R.: Computing Prüfer codes efficiently in parallel. Discrete Applied Mathematics 102, 205–222 (2000)

    Article  MATH  MathSciNet  Google Scholar 

  11. 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)

    Article  MathSciNet  Google Scholar 

  12. Jájá, J.: An Introduction to parallel algorithms. Addison Wesley, Reading (1992)

    MATH  Google Scholar 

  13. Kelmans, A., Pak, I., Postnikov, A.: Tree and forest volumes of graphs. DIMACS Technical Report 2000-03 (2000)

    Google Scholar 

  14. Kumar, V., Deo, N., Kumar, N.: Parallel generation of random trees and connected graphs. Congressus Numerantium 130, 7–18 (1998)

    MATH  MathSciNet  Google Scholar 

  15. 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)

    MATH  Google Scholar 

  16. Moon, J.W.: Counting labeled trees. William Clowes and Sons, London (1970)

    Google Scholar 

  17. Neville, E.H.: The codifying of tree structures. Proceedings of Cambridge Philosophical Society 49, 381–385 (1953)

    Article  MATH  MathSciNet  Google Scholar 

  18. Prüfer, H.: Neuer Beweis eines Satzes über Permutationen. Archiv für Mathematik und Physik 27, 142–144 (1918)

    Google Scholar 

  19. 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)

    Article  Google Scholar 

  20. Zhou, G., Gen, M.: A note on genetic algorithms for degree-constrained spanning tree problems. Networks 30, 91–95 (1997)

    Article  MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints 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

Publish with us

Policies and ethics