Skip to main content

Exact Algorithms and Time/Space Tradeoffs

  • Reference work entry
  • First Online:
Encyclopedia of Algorithms
  • 52 Accesses

Years and Authors of Summarized Original Work

  • 2010; Lokshtanov, Nederlof

Problem Definition

In the subset sum problem, we are given integers a1, …, a n , t and are asked to find a subset \(X \subseteq \{ 1,\ldots ,n\}\) such that \(\sum _{i\in X}a_{i} = t\). In the Knapsack problem, we are given a1, …, a n , b1, …, b n , t, u and are asked to find a subset \(X \subseteq \{ 1,\ldots ,n\}\) such that \(\sum _{i\in X}a_{i} \leq t\) and \(\sum _{i\in X}b_{i} \geq u\). It is well known that both problems can be solved in O(nt) time using dynamic programming. However, as is typical for dynamic programming, these algorithms require a lot of working memory and are relatively hard to execute in parallel on several processors: the above algorithms use O(t) space which may be exponential in the input size.

This raises the question: when can we avoid these disadvantages and still be (approximately) as fast as dynamic programming algorithms? It appears that by (slightly) loosening the time budget,...

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 1,599.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 1,999.99
Price excludes VAT (USA)
  • Durable hardcover 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

Recommended Reading

  1. Brent R, Zimmermann P (2010) Modern computer arithmetic. Cambridge University Press, New York

    Book  MATH  Google Scholar 

  2. Chudnovsky DV, Chudnovsky GV (1997) Approximations and complex multiplication according to ramanujan. In: Pi: a source book. Springer, New York, pp 596–622

    Google Scholar 

  3. Dasgupta S, Papadimitriou CH, Vazirani U (2006) Algorithms. McGraw-Hill, Boston

    Google Scholar 

  4. Dreyfus SE, Wagner RA (1972) The Steiner problem in graphs. Networks 1:195–207

    Article  MathSciNet  MATH  Google Scholar 

  5. Fürer M (2009) Faster integer multiplication. SIAM J Comput 39(3):979–1005

    Article  MathSciNet  MATH  Google Scholar 

  6. Knuth DE (1997) The art of computer programming, vol 2 (3rd edn.): seminumerical algorithms. Addison-Wesley Longman, Boston

    MATH  Google Scholar 

  7. Lokshtanov D, Nederlof J (2010) Saving space by algebraization. In: Proceedings of the forty-second ACM symposium on theory of computing, STOC ’10, Cambridge. ACM, New York, pp 321–330

    Chapter  Google Scholar 

  8. Nederlof J (2013) Fast polynomial-space algorithms using inclusion-exclusion. Algorithmica 65(4):868–884

    Article  MathSciNet  MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Jesper Nederlof .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer Science+Business Media New York

About this entry

Cite this entry

Nederlof, J. (2016). Exact Algorithms and Time/Space Tradeoffs. In: Kao, MY. (eds) Encyclopedia of Algorithms. Springer, New York, NY. https://doi.org/10.1007/978-1-4939-2864-4_517

Download citation

Publish with us

Policies and ethics