
Mastering algorithms with C
by Kyle Loudon, Andy Oram · first published 1999
9mentions
3recommended by
9HN commenters
2010–2020first – last mentioned
33% recommend67% neutral
Theoretically underpins families of basic algorithms, and then presents working C code.
Affiliate links. As an Amazon Associate I earn from qualifying purchases.







…Steele. It has many tiny examples, but it is mainly used as a reference manual (as the title suggests). http://www.amazon.com/Reference-Manual-Samuel-P-Harbison/dp/... A good book for learning C is _Mastering Algorithms with C_ by Loudon. The source code is over-commented and contains too much white space, which is a bit annoying, but the content is quite nice. http://www.amazon.com/Mastering-Algorithms-C-Kyle-Loudon/dp/...
on “Ask HN: I use and love Python. What's the best book to learn C ?” ↗Like others, I would suggest K&R. Perhaps after that, Lourdon's "Mastering algorithms with C". I've found that structuring any program around well understood datastructures and keeping it KISS after that takes you a very long way. Also applies to C. Like others have commented, stylistically the…
on “Learn C and build your own Lisp” ↗I enjoyed Mastering Algorithms With C. After going through that book I was able to actually get things done. I recommend this because it walks through the implementation of basic data structures that you will be working with no matter what…
on “Ask HN: What are some good resources for learning C?” ↗…Theory, Languages and Computation; Hopcroft Ullmann (the cinderella book), Object Oriented Python; Goldwasser Letscher, An Introduction to Database Systems; Date, C Programming A Modern Approach; K.N King, Mastering Algorithms with C Loudon, Computer Logic Designs and Applications; Hsu. Live in Chicago, happy to help.
on “Gift HN: Book Giveaway/Exchange” ↗The alternative would be to rely on void* for all data types, which was really nicely presented in Mastering Algorithms with C by Kyle Loudon, but after working through it the lack of type safety for even basic types was a huge pain. At least with a bit of pre-processor magic, type safety and contiguous data is promised. Also,…
on “What's Wrong with C++ Templates? (2003)” ↗…feel paralyzed. It's been terribly wrong for a long time but I've personally lacked the experience and formal training to make it better through libraries and wrappers. About a year ago I picked up "Mastering Algorithms with C" and it was very helpful at teaching complex algorithms but never really helped me abstract our code base in to something portable and reusable. I'm certain this book will help me tremendously. :P
on “ISO C is increasingly moronic” ↗…explain data structures. They are very intertwined topics. CLRS has 2/7 main sections dedicated to data structures and makes a fine reference, but it's also a lot of pseudocode and is quite in-depth. "Mastering Algorithms with C" is split nearly 50/50 between them and has real code examples though I don't care for the coding style. My personal preference has been Sedgewick's "Algorithms in C" which introduces elementary structures…
on “Ask HN: What are the top textbooks for data structures?” ↗…this certainly sparks my interest. Could I ask for some recommendations for any books and articles on algorithms which take the current computer/memory architecture into account? I'm currently reading "Mastering algorithms with C", and I had some other books in queue. But I'm always looking for some fresh content.
on “You're Doing It Wrong: CS in the real world” ↗…any of these, make sense to a mid-level C developer: read K&R inside and out, had a bit of code in the kernel, worked on a major "C+", i.e., "C with classes" project? The only one of these I own are "Mastering Algorithms with C" (fairly useful) and "Understanding the Linux Kernel" (rather useful and well written, could actually be used for an graduate/advanced undergraduate operating systems class).
on “In honor of Dennis Ritchie, 50% off all C/C++ ebooks” ↗