Finding Paths with the Right Cost

  • Conference paper
  • First Online:
STACS 99 (STACS 1999)

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

Included in the following conference series:

Abstract

We study a problem related to finding shortest paths in weighted graphs. We ask whether or not there is a path between two nodes that is of a given cost. The edge weights of the graph can be both positive and negative integers, or even integer vectors. We show that most variants of this problem are NP-complete. We also develop a pseudopolynomial algorithm for the case where the edge weights are integers. The running time of this algorithm is O(M 2 N 3 + |w|min(|w|, M)N 2) where N is the number of nodes in the graph, M is the largest absolute value of any edge weight, and w is the target cost. The algorithm is based on preprocessing the graph with a relaxation algorithm to eliminate the effects of weight sign alternations along a path.

Supported by Academy of Finland grant number 42977.

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

Access this chapter

Subscribe and save

Springer+ Basic
EUR 32.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or Ebook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (Canada)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (Canada)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (Canada)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free ship** 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.

Similar content being viewed by others

References

  1. N. Alon, Z. Galil, and O. Margalit. On the exponent of the all pairs shortest path problem. Journal of Computer and System Sciences, 54:255–262, 1997.

    Article  MATH  MathSciNet  Google Scholar 

  2. D.P. Bertsekas. An auction algorithm for shortest paths. SIAM Journal on Optimization, 1(4):425–447, 1991.

    Article  MATH  MathSciNet  Google Scholar 

  3. D. Coppersmith and S. Winograd. Matrix multiplication via arithmetic progressions. Journal of Symbolic Computation, 9:251–280, 1990.

    Google Scholar 

  4. T.H. Cormen, C.E. Leiserson, and R.L. Rivest. Introduction to Algorithms. McGraw-Hill, 1990.

    Google Scholar 

  5. H.N. Gabow and R.E. Tarjan. Faster scaling algorithms for network problems. SIAM Journal on Computing, 18(5):1013–1036, 1989.

    Article  MATH  MathSciNet  Google Scholar 

  6. Z. Galil and O. Margalit. All pairs shortest distances for graphs with small integer length edges. Journal of Computer and System Sciences, 54:243–254, 1997.

    Article  MATH  MathSciNet  Google Scholar 

  7. M.R. Garey and D.S. Johnson. Computers and Intractability: A Guide to the Theory of NP-Completeness. Freeman, 1979.

    Google Scholar 

  8. G. Grahne and M. Nykänen. Safety, translation and evaluation of Alignment Calculus. In Advances in Databases and Information Systems, Springer Electronic Workshops in Computing, pages 295–304, 1997.

    Google Scholar 

  9. G. Grahne, M. Nykänen, and E. Ukkonen. Reasoning about strings in databases. In ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems, pages 303–312, 1994.

    Google Scholar 

  10. D. Gusfield. Algorithms on Strings, Trees, and Sequences: Computer Science and Computational Biology. Cambridge University Press, 1997.

    Google Scholar 

  11. S.R. Kosaraju. Decidability of reachability in vector addition systems. In ACM Symposium on Theory of Computing, pages 267–281, 1982.

    Google Scholar 

  12. E.W. Mayr. An algorithm for the general Petri net reachability problem. SIAM Journal on Computing, 13(3):441–460, 1984.

    Article  MATH  MathSciNet  Google Scholar 

  13. M. Nykänen. Querying String Databases with Modal Logic. PhD thesis, Department of Computer Science, University of Helsinki, Finland, 1997.

    MATH  Google Scholar 

  14. M. Nykänen. Using acceptors as transducers. In Third International Workshop on Implementing Automata (WIA’ 98), 1998. In press.

    Google Scholar 

  15. C.H. Papadimitriou and K. Steiglitz. Combinatorial Optimization: Algorithms and Complexity. Prentice-Hall, 1982.

    Google Scholar 

  16. R. Seidel. On the all-pairs-shortest-path problem in unweighted undirected graphs. Journal of Computer and System Sciences, 51:400–403, 1995.

    Article  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 1999 springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Nykänen, M., Ukkonen, E. (1999). Finding Paths with the Right Cost. In: Meinel, C., Tison, S. (eds) STACS 99. STACS 1999. Lecture Notes in Computer Science, vol 1563. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-49116-3_32

Download citation

  • DOI: https://doi.org/10.1007/3-540-49116-3_32

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-65691-3

  • Online ISBN: 978-3-540-49116-3

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics

Navigation