Skip to main content

Online Dynamic Programming Speedups

  • Conference paper
  • 627 Accesses

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 4368))

Abstract

Consider the Dynamic Program h(n) = min 1 ≤ j ≤ n a(n,j) for n = 1, 2, ..., N. For arbitrary values of a(n,j), calculating all the h(n) requires Θ(N 2) time. It is well known that, if the a(n,j) satisfy the Monge property, then there are techniques to reduce the time down to O(N). This speedup is inherently static, i.e., it requires N to be known in advance.

In this paper we show that if the a(n,j) satisfy a stronger condition, then it is possible, without knowing N in advance, to compute the values of h(n) in the order of n = 1, 2, ..., N, in O(1) amortized time per h(n). This maintains the DP speedup online, in the sense that the time to compute all h(n) is O(N). A slight modification of our algorithm restricts the worst case time to be O(logN) per h(n), while maintaining the amortized time bound. For a(n,j) that satisfy our stronger condition, our algorithm is also simpler to implement than the standard Monge speedup.

We illustrate the use of our algorithm on two examples from the literature. The first shows how to make the speedup of the D-median on a line problem in an online settings. The second shows how to improve the running time for a DP used to reduce the amount of bandwidth needed when paging mobile wireless users.

The research of the second and third authors was partially supported by Hong Kong RGC CERG grant HKUST6312/04E.

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   39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.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. Burkard, R.E., Klinz, B., Rudolf, R.: Perspectives of Monge properties in optimization. Discrete Applied Mathematics 70(2), 95–161 (1996)

    Article  MATH  MathSciNet  Google Scholar 

  2. Aggarwal, A., Klawe, M.M., Moran, S., Shor, P.W., Wilber, R.E.: Geometric applications of a matrix-searching algorithm. Algorithmica 2, 195–208 (1987)

    Article  MATH  MathSciNet  Google Scholar 

  3. Wilber, R.: The concave least-weight subsequence problem revisited. Journal of Algorithms 9(3), 418–425 (1988)

    Article  MATH  MathSciNet  Google Scholar 

  4. Eppstein, D., Galil, Z., Giancarlo, R.: Speeding up dynamic programming. In: Proceedings of the 29th Annual Symposium on Foundations of Computer Science, pp. 488–496 (1988)

    Google Scholar 

  5. Galil, Z., Giancarlo, R.: Speeding up dynamic programming with applications to molecular biology. Theoretical Computer Science 64(1), 107–118 (1989)

    Article  MATH  MathSciNet  Google Scholar 

  6. Galil, Z., Park, K.: A linear-time algorithm for concave one-dimensional dynamic programming. Information Processing Letters 33(6), 309–311 (1990)

    Article  MATH  MathSciNet  Google Scholar 

  7. Larmore, L.L., Schieber, B.: On-line dynamic programming with applications to the prediction of RNA secondary structure. Journal of Algorithms 12(3), 490–515 (1991)

    Article  MATH  MathSciNet  Google Scholar 

  8. Woeginger, G.J.: Monge strikes again: Optimal placement of web proxies in the Internet. Operations Research Letters 27(3), 93–96 (2000)

    Article  MATH  MathSciNet  Google Scholar 

  9. Fleischer, R., Golin, M.J., Zhang, Y.: Online maintenance of k-medians and k-covers on a line. Algorithmica 45(4), 549–567 (2006)

    Article  MATH  MathSciNet  Google Scholar 

  10. Krishnamachari, B., Gau, R.H., Wicker, S.B., Haas, Z.J.: Optimal sequential paging in cellular wireless networks. Wireless networks 10(2), 121–131 (2004)

    Article  Google Scholar 

  11. Bar-Noy, A., Feng, Y., Golin, M.J.: Efficiently paging mobile users under delay constraints (2006) (Unpublished manuscript)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2007 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Bar-Noy, A., Golin, M.J., Zhang, Y. (2007). Online Dynamic Programming Speedups. In: Erlebach, T., Kaklamanis, C. (eds) Approximation and Online Algorithms. WAOA 2006. Lecture Notes in Computer Science, vol 4368. Springer, Berlin, Heidelberg. https://doi.org/10.1007/11970125_4

Download citation

  • DOI: https://doi.org/10.1007/11970125_4

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-69513-4

  • Online ISBN: 978-3-540-69514-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics