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,...
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Recommended Reading
Brent R, Zimmermann P (2010) Modern computer arithmetic. Cambridge University Press, New York
Chudnovsky DV, Chudnovsky GV (1997) Approximations and complex multiplication according to ramanujan. In: Pi: a source book. Springer, New York, pp 596–622
Dasgupta S, Papadimitriou CH, Vazirani U (2006) Algorithms. McGraw-Hill, Boston
Dreyfus SE, Wagner RA (1972) The Steiner problem in graphs. Networks 1:195–207
Fürer M (2009) Faster integer multiplication. SIAM J Comput 39(3):979–1005
Knuth DE (1997) The art of computer programming, vol 2 (3rd edn.): seminumerical algorithms. Addison-Wesley Longman, Boston
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
Nederlof J (2013) Fast polynomial-space algorithms using inclusion-exclusion. Algorithmica 65(4):868–884
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights 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
DOI: https://doi.org/10.1007/978-1-4939-2864-4_517
Published:
Publisher Name: Springer, New York, NY
Print ISBN: 978-1-4939-2863-7
Online ISBN: 978-1-4939-2864-4
eBook Packages: Computer ScienceReference Module Computer Science and Engineering