Skip to main content

Finding a Two-Core of a Tree in Linear Time

  • Conference paper
  • First Online:
  • 717 Accesses

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

Abstract

Let T be an edge-weighted tree. A p-core of T is a set of p mutually disjoint paths in T that minimizes the sum of the distances of all vertices in T from any of the p paths, where p≥1 is an integer. Let n be the number of vertices in T. In this paper, an O(n) time algorithm is proposed for the case p=2. Applying our 2-core algorithm as a procedure, we also show that the p-core problem can be solved in O(n p-1) time for any constant p≥2.

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

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. R. I. Becker and Y. Perl, “Finding the two-core of a tree,” Discrete Applied Mathematics, vol. 11, no. 2, pp.103–113, 1985.

    Article  MATH  MathSciNet  Google Scholar 

  2. B. Gavih and S. Sridhar, “Computing the 2-median on tree networks in O(nlg n) time,” Networks, vol. 26, iss. 4, pp. 305–317, 1995.

    Article  MathSciNet  Google Scholar 

  3. A.J. Goldman, “Optimal center location in simple networks”, Transportation Science, vol. 5, pp. 212–221, 1971.

    MathSciNet  Google Scholar 

  4. S. L. Hakimi, E. F. Schmeichel, and M. Labbe, “On locating path-or tree-shaped facilities on networks,” Networks, vol. 23, pp. 543–555, 1993.

    Article  MATH  MathSciNet  Google Scholar 

  5. G.Y. Handler and P. Mirchandani, Location on Networks, MIT Press, Cambridge, MA, 1979.

    MATH  Google Scholar 

  6. D.E. Knuth, The Art of Computer Programming, vol. 1, Addison-Wesley, Reading, MA, 1968.

    Google Scholar 

  7. N. Megiddo, A. Tamir, E. Zemel, and R. Chandrasekaran, “An O(nlog2 n) time algorithm for the kth longest path in a tree with applications to location problems,” SIAM Journal on Computing, vol. 10, pp. 328–337, 1981.

    Article  MATH  MathSciNet  Google Scholar 

  8. E. Minieka and N.H. Patel, “On finding the core of a tree with a specified length”, Journal of Algorithms, vol. 4, pp. 345–352, 1983.

    Article  MATH  MathSciNet  Google Scholar 

  9. C.A. Morgan and P.L. Slater, “A linear time algorithm for a core of a tree”, Journal of Algorithms, vol. 1, pp. 247–258, 1980.

    Article  MATH  MathSciNet  Google Scholar 

  10. S. Peng and W. Lo, “Efficient algorithms for finding a core of a tree with specified length”, Journal of Algorithms, vol. 15, pp. 143–159, 1996.

    Article  MathSciNet  Google Scholar 

  11. A. Shioura and T. Uno, “A linear time algorithm for finding a k-tree core,” Journal of Algorithms, vol. 23, pp. 281–290, 1997.

    Article  MATH  MathSciNet  Google Scholar 

  12. P.J. Slater, “Locating central paths in a network”, Transportation Science, vol. 16, no. 1, pp.1–18, 1982.

    Article  MathSciNet  Google Scholar 

  13. A. Tamir, “An O(pn2) time algorithm for the p-median and related problems on tree graphs,” Operations Research Letters, vol. 19, iss. 2, pp. 59–64, 1996.

    Article  MATH  MathSciNet  Google Scholar 

  14. B.-F. Wang, “Finding a k-tree core and a k-tree center of tree network in parallel”, IEEE Transactions on Parallel and Distributed Systems, vol. 9, no. 2, pp. 186–191, 1999.

    Article  Google Scholar 

  15. B.-F. Wang, “Efficient parallel algorithms for optimally locating a path and a tree of a specified length in a weighted tree network”, Journal of Algorithms, vol. 34, pp. 90–108, 2000.

    Article  MATH  Google Scholar 

  16. B.-F. Wang, “Finding a 2-core of a tree in linear time”, manuscript.

    Google Scholar 

  17. B.-F. Wang, S.-C. Ku, K.-H. Shi, T.-K. Hung, and P.-S. Liu, “Parallel algorithms for the tree bisector problem and applications,” in Proceedings of the 1999 International Conference on Parallel Processing, 1999, pp. 192–199.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2000 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Wang, BF., Lin, JJ. (2000). Finding a Two-Core of a Tree in Linear Time. In: Goos, G., Hartmanis, J., van Leeuwen, J., Lee, D.T., Teng, SH. (eds) Algorithms and Computation. ISAAC 2000. Lecture Notes in Computer Science, vol 1969. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-40996-3_40

Download citation

  • DOI: https://doi.org/10.1007/3-540-40996-3_40

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-41255-7

  • Online ISBN: 978-3-540-40996-0

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics