Skip to content
HomeVideosBooks
AllTopicsTrends
BlogsPodcasts
HistoryListsWatch laterLiked videosFollowing

The videos, books, blogs and podcasts Hacker News keeps recommending, all in one place.

VideosBooksBlogsPodcastsAboutPrivacySettings

Data from Hacker News, HackerTube, HackerBooks, HackerBlogs and Open Library. Credits · Not affiliated with Y Combinator.

HomeVideosBooksBlogsPodcasts
Ctrl K
    Cover of Probability and Computing

    Probability and Computing

    Michael Mitzenmacher, Eli Upfal · 2005

    Data & StatisticsComputer Science
    Open LibraryAmazon
    Stats for nerds
    4recommend
    8mentions
    8people
    2011–2025years
    50% recommend50% neutral

    Mentions per year

    20112013201520172019202120232025

    What Hacker News says

    1. abetuskApr 2025
      I'm not a practitioner, so read with some skepticism, but here's my list:

      * Calculus

      * Real Analysis

      * Statistical Mechanics

      * Probability

      I'm not sure I have any good recommendations for Calculus, but for real analysis, I would recommend "The Way of Analysis" by Strichartz [0].

      I don't have good recommendations for books on statistical mechanics, as I haven't found a book that isn't entrenched in coming from a physics perspective and teaches the underlying methods and algorithms. The best I can recommend is "Complexity and Criticality" by Christensen and Moloney [1], but it's pretty far afield of statistical mechanics and the like. Simulating percolation, the Ising model and ricepiles uses a lot of the same methods as financial simulation (MCMC, etc.).

      For probability, I would recommend "Probability and Computing" by Mitzenmacher and Upfal [2], "Probability ..." by Durrett [3] and Feller Vol. 1 and 2 [4] [5] for reference.

      I also would recommend "Frequently asked questions in Quantitative Finance" by Wilmott [6].

      Also know that there's a quantitative finance SO [7] that might be helpful.

      [0] https://www.amazon.com/Analysis-Revised-Jones-Bartlett-Mathe...

      [1] https://www.amazon.com/COMPLEXITY-CRITICALITY-Imperial-Colle...

      [2] https://www.amazon.com/Probability-Computing-Randomization-P...

      [3] https://www.amazon.com/Probability-Theory-Examples-Durrett-H...

      [4] https://www.amazon.com/Introduction-Probability-Theory-Appli...

      [5] https://www.amazon.com/Introduction-Probability-Theory-Appli...

      [6] https://www.amazon.com/Frequently-Asked-Questions-Quantitati...

      [7] https://quant.stackexchange.com/

      thread
    2. FiberBundleJul 2020
      Probability and Computing by mitzenmacher is a very good book
      thread
    3. maxovJul 2020
      I'm surprised and delighted to see someone recommend The Discrepancy Method by Chazelle. I love this book, but even beyond it requiring a lot of mathematical prerequisites, I'm not sure of the use to most software engineers. I think only the chapters on sampling, geometric algorithms, minimum spanning trees, and maybe linear programming would be useful references on algorithm design for most software engineers.

      I second the recommendation of Probability and Computing by Mitzenmacher and Upfal. In addition to being much more mathematically self-contained, there is more focus on models and techniques that I imagine software engineers might actually use, e.g. hashing, load balancing.

      In addition, Randomized Algorithms by Motwani and Raghavan is a fantastic book, and should be doable after completing Mitzenmacher and Upfal. It goes into further depth on techinques for designing randomized algorithms.

      A bit orthogonal but still related to the idea of "what should a software engineer read for interesting algorithm ideas", I really like Approximation Algorithms by Shmoys and Williamson. There is some intersection with randomized algorithms there too.

      thread
    4. todd8Oct 2016
      Depending on your level of programming ability, one algorithm a day, IMHO, is completely doable. A number of comments and suggestions say that one per day is an unrealistic goal (yes, maybe it is) but the idea of setting a goal and working through a list of algorithms is very reasonable.

      If you are just learning programming, plan on taking your time with the algorithms but practice coding every day. Find a fun project to attempt that is within your level of skill.

      If you are a strong programmer in one language, find a book of algorithms using that language (some of the suggestions here in these comments are excellent). I list some of the books I like at the end of this comment.

      If you are an experienced programmer, one algorithm per day is roughly doable. Especially so, because you are trying to learn one algorithm per day, not produce working, production level code for each algorithm each day.

      Some algorithms are really families of algorithms and can take more than a day of study, hash based look up tables come to mind. First there are the hash functions themselves. That would be day one. Next there are several alternatives for storing entries in the hash table, e.g. open addressing vs chaining, days two and three. Then there are methods for handling collisions, linear probing, secondary hashing, etc.; that's day four. Finally there are important variations, perfect hashing, cuckoo hashing, robin hood hashing, and so forth; maybe another 5 days. Some languages are less appropriate for playing around and can make working with algorithms more difficult, instead of a couple of weeks this could easily take twice as long. After learning other methods of implementing fast lookups, its time to come back to hashing and understand when its appropriate and when alternatives are better and to understand how to combine methods for more sophisticated lookup methods.

      I think you will be best served by modifying your goal a bit and saying that you will work on learning about algorithms every day and cover all of the material in a typical undergraduate course on the subject. It really is a fun branch of Computer Science.

      A great starting point is Sedgewick's book/course, Algorithms [1]. For more depth and theory try [2], Cormen and Leiserson's excellent Introduction to Algorithms. Alternatively the theory is also covered by another book by Sedgewick, An Introduction to the Analysis of Algorithms [3]. A classic reference that goes far beyond these other books is of course Knuth [4], suitable for serious students of Computer Science less so as a book of recipes.

      After these basics, there are books useful for special circumstances. If your goal is to be broadly and deeply familiar with Algorithms you will need to cover quite a bit of additional material.

      Numerical methods -- Numerical Recipes 3rd Edition: The Art of Scientific Computing by Tuekolsky and Vetterling. I love this book. [5]

      Randomized algorithms -- Randomized Algorithms by Motwani and Raghavan. [6], Probability and Computing: Randomized Algorithms and Probabilistic Analysis by Michael Mitzenmacher, [7]

      Hard problems (like NP) -- Approximation Algorithms by Vazirani [8]. How to Solve It: Modern Heuristics by Michalewicz and Fogel. [9]

      Data structures -- Advanced Data Structures by Brass. [10]

      Functional programming -- Pearls of Functional Algorithm Design by Bird [11] and Purely Functional Data Structures by Okasaki [12].

      Bit twiddling -- Hacker's Delight by Warren [13].

      Distributed and parallel programming -- this material gets very hard so perhaps Distributed Algorithms by Lynch [14].

      Machine learning and AI related algorithms -- Bishop's Pattern Recognition and Machine Learning [15] and Norvig's Artificial Intelligence: A Modern Approach [16]

      These books will cover most of what a Ph.D. in CS might be expected to understand about algorithms. It will take years of study to work though all of them. After that, you will be reading about algorithms in journal publications (ACM and IEEE memberships are useful). For example, a recent, practical, and important development in hashing methods is called cuckoo hashing, and I don't believe that it appears in any of the books I've listed.

      [1] Sedgewick, Algorithms, 2015. https://www.amazon.com/Algorithms-Fourth-Deluxe-24-Part-Lect...

      [2] Cormen, et al., Introduction to Algorithms, 2009. https://www.amazon.com/s/ref=nb_sb_ss_i_1_15?url=search-alia...

      [3] Sedgewick, An Introduction to the Analysis of Algorithms, 2013. https://www.amazon.com/Introduction-Analysis-Algorithms-2nd/...

      [4] Knuth, The Art of Computer Programming, 2011. https://www.amazon.com/Computer-Programming-Volumes-1-4A-Box...

      [5] Tuekolsky and Vetterling, Numerical Recipes 3rd Edition: The Art of Scientific Computing, 2007. https://www.amazon.com/Numerical-Recipes-3rd-Scientific-Comp...

      [6] https://www.amazon.com/Randomized-Algorithms-Rajeev-Motwani/...

      [7]https://www.amazon.com/gp/product/0521835402/ref=pd_sim_14_2...

      [8] Vazirani, https://www.amazon.com/Approximation-Algorithms-Vijay-V-Vazi...

      [9] Michalewicz and Fogel, https://www.amazon.com/How-Solve-Heuristics-Zbigniew-Michale...

      [10] Brass, https://www.amazon.com/Advanced-Data-Structures-Peter-Brass/...

      [11] Bird, https://www.amazon.com/Pearls-Functional-Algorithm-Design-Ri...

      [12] Okasaki, https://www.amazon.com/Purely-Functional-Structures-Chris-Ok...

      [13] Warren, https://www.amazon.com/Hackers-Delight-2nd-Henry-Warren/dp/0...

      [14] Lynch, https://www.amazon.com/Distributed-Algorithms-Kaufmann-Manag...

      [15] Bishop, https://www.amazon.com/Pattern-Recognition-Learning-Informat...

      [16] Norvig, https://www.amazon.com/Artificial-Intelligence-Modern-Approa...

      thread
    5. rramadassApr 2024
      Any study recommendations (beginner friendly to advanced) on this topic i.e. Probability/Randomness and Computation?

      Google brings up Probability and Computing: Randomization and Probabilistic Techniques in Algorithms and Data Analysis by Eli Upfal and Michael Mitzenmacher but i can't find any beginner/introductory books/articles/videos.

      thread
    6. chalmetteMay 2018
      Looks like this book heavily intersects with "Probability and Computing: Randomization and Probabilistic Techniques in Algorithms and Data Analysis" by Mitzenmacher/Upfal [0].

      [0] https://books.google.com/books?id=E9UlDwAAQBAJ&pg=PA1&source...

      thread

    Related

    Cover of Randomized algorithms
    2010–2023

    Randomized algorithms

    Rajeev Motwani
    4 recommend · 7
    Cover of Introduction to Probability
    2015–2023

    Introduction to Probability

    Joseph K. Blitzstein
    5 recommend · 7
    Cover of Probability Theory
    2008–2026

    Probability Theory

    E. T. Jaynes
    77 recommend · 193
    Cover of Probability and statistics
    2017–2020

    Probability and statistics

    Michael J. Evans
    0 recommend · 2
    Cover of Introduction to probability theory
    2013–2026

    Introduction to probability theory

    Paul Gerhard Hoel
    7 recommend · 11
    Cover of A first course in probability
    2011–2022

    A first course in probability

    Sheldon M. Ross
    9 recommend · 16
    Cover of Probability
    2018–2026

    Probability

    David Morin
    3 recommend · 3
    Cover of Probability and statistics for engineers and scientists
    2010–2023

    Probability and statistics for engineers and scientists

    Anthony Hayter
    2 recommend · 3