3 ms·
would be nice to have a book with a bunch of algos and pseudocode to implement into any language you see fit.
by justanegg 7y ago
would be nice to have a book with a bunch of algos and pseudocode to implement into any language you see fit.
- numlock86 7y agoMy thought exactly. Lisp is probably okay (if not even one of the better choices) to get the general message transferred, though.
- drainyard 7y agoSomething like CRLS? That is fairly implementable pseudocode, but maybe still too hand wavey at times.
- abc_lisper 7y agoIt really is; it's irritating that they say it can be trivially proved with induction, robbing me from understanding the crux of the problem.
- IGI-111 7y agoIsn't that pretty much what CLRS is for?
- okaleniuk 7y agoIf you don't know Lisp, it would be basically a pseudocode in prefix notation for you. It takes some time to get used to reading s-expressions, but it's not that hard at all.
- squarefoot 7y agoOver at Rosettacode they already ported a lot of stuff in a huge number of languages. https://rosettacode.org/wiki/Category:Programming_Tasks https://rosettacode.org/wiki/Category:Programming_Tasks As for books, I liked a lot Niklaus Wirth's "Algorithms + data structures = programs" a couple geological eras back. The book was written with Pascal in mind before the OOP era, but given Pascal's simplicity its examples can be easily translated in other languages. I'd consider more modern books if I knew any; the very few I've briefly skimmed in the past seem either too advanced or too abstract.
- Datenstrom 7y agoThat is basically what The Art of Computer Programming by Donald Knuth is and I cant recommend the books enough.
- cameronbrown 7y agoPseudocode isn't perfect though. It's prone to off-by-one errors among other issues. You end up having to describe the specifics of your "flavour" of pseudocode and at that point you've just made a language.. except it's not well thought out and isn't executable anywhere. TL,DR Just use a language designed for readability, like Python.
- vseloved 7y agoThe idea of this book is not be a 10th version explaining the same algorithms. It is as more about how to implement those algorithms for real — production-level stuff, so to say. And pseudocode isn't an implementation language, you will not face the same difficulties, and not get to feel the tools