r/AskComputerScience • u/mydevcookie • May 14 '21
Books on fun/practical stories of Algorithms
Hi guys, I am looking for books that contains stories about how algorithms solved issues of business. Or some book which contains history of interesting algorithms or interesting real life implicating anecdotes?
5
u/endallk007 May 14 '21
This sounds something like what you are looking for.
https://www.goodreads.com/book/show/25666050-algorithms-to-live-by
If you are looking for more technical things try reading some case studies or some white papers from Amazon and Google. They are usually based on things those companies actually use.
1
u/mydevcookie May 14 '21
Awesome Dude! Thanks for the book recommendation. About case studies and white papers, could you guide little more on that?
2
u/endallk007 May 14 '21
Here is an example of whitepapers from Amazon and Google.
https://research.google/pubs/pub44915/
This is the paper talking through the design of Google Spanner, a distributed database that is foundational to Google Cloud. There are some very interesting algorithmic things here.
Similar to the Google paper, this talks about the design of Amazon Aurora, one of Amazon's distributed databases.
Case studies are not as centralized, but O'reilly has a few. Honestly I feel like most case studies are written by former engineers at those companies and are more scattered across the net.
Other good resources are a companies engineering blog, though there is a lot to weed through if you are just looking for application of algorithms.
5
u/DrunkHacker May 14 '21 edited May 14 '21
The Art of Doing Science and Engineering by Richard Hamming.
He discusses his work programming simulations at Los Alamos, calculating the optimal launch trajectory of Nike missiles (hint: for earth, you just want to go straight up at first), and even sharing an office with the CS legend Claude Shannon at Bell Labs. But he doesn't shy away from details, even spending a chapter on the mathematics of n-dimensional space before showing how it relates to Hamming codes. Having a good grasp of linear algebra, calc, and diffeq is definitely helpful but I'd estimate 80% of the value of the book can be had without.
Oh, and the whole time he's also waxing philosophical about working with others, sharing or claiming credit, creativity, and bad metrics.
If I could recommend a non-textbook for every CS major to read, it would be this.
2
u/not-just-yeti May 14 '21
The Art of Doing Science and Engineering by Richard Hamming.
I think I heard him talk once long ago, and the one point that has stuck with me -- and is great thought for all who are in grad school -- is included in the book (thanks for that link!):
after I had been eating for some years with the physics table at the Bell Telephone Laboratories restaurant… I shifted to the chemistry table in another corner of the restaurant. I began by asking what the important problems were in chemistry, then later what important problems they were working on, and finally one day said, “If what you are working on is not important and not likely to lead to important things, then why are you working on it?” After that I was not welcome and had to shift to eating with the engineers! That was in the spring, and in the fall one of the chemists stopped me in the hall and said, “What you said caused me to think for the whole summer about what the important problems are in my field, and while I have not changed my research it was well worth the effort.” I thanked him and went on—and noticed in a few months he was made head of the group. About ten years ago I saw he became a member of the National Academy of Engineering. No other person at the table did I ever hear of, and no other person was capable of responding to the question I had asked: “Why are you not working on and thinking about the important problems in your area?” If you do not work on important problems, then it is obvious you have little chance of doing important things.
The book can be ordered from press.stripe.com and here is the final summary(?) chapter sample which contains that excerpt.
2
u/DrunkHacker May 14 '21
all who are in grad school
Yep. The book was actually based on his teaching at the Naval Postgraduate School.
The beauty of the book is Hamming's ability to seamlessly jump between PDEs and personal stories while dispensing sage advice.
4
u/Cryptic_Rogue1 May 14 '21
Remindme! 1 day
1
u/SteadfastPooper May 14 '21
what is this? will reddit send me a reminder if I write this? where can I find more like this?
1
u/Cryptic_Rogue1 May 14 '21
It will, that's what I've noticed from using it. This is my first time trying this.
1
u/RemindMeBot May 14 '21
There is a 14 hour delay fetching comments.
I will be messaging you in 1 day on 2021-05-15 03:16:26 UTC to remind you of this link
CLICK THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
Info Custom Your Reminders Feedback
2
u/midwayfair May 14 '21
Skiena's Algorithm Design Manual has about a dozen multi-page anecdotes about solving various real-world problems, including the failures along the way. It's not the focus of the book, but I learned a lot from them and they're quite motivating. I'd even say it's one of the main reasons I recommend that book.
0
u/S-S-R May 14 '21
^ This is why I don't hang out with software devs.
1
u/SteadfastPooper May 14 '21
Lol why? because they want to read books on algorithms? I've got a book about deserts. You would hate me.
2
u/S-S-R May 14 '21
Ecology is interesting though. Op's book would be like the effects of the Australian desert on tourists.
I personally find straight algorithms books (like CLRS, with it's sorting and graphs) quite tedious and boring, I focus mostly on the computational math side instead.
Algorithms applied to business, just struck me as an incredibly boring topic.
1
u/SteadfastPooper May 14 '21
Actually yeah the algos applied to business part probably isn't something i'll read for a while, business is structured enough as it is, art applied to business would be a good read.
7
u/PropagandaOfTheDude May 14 '21
While I don't know for certain whether they meet your critera, look for Programming Pearls and More Programming Pearls by Jon Bentley.