top | item 20505570

(no title)

justanegg | 6 years ago

would be nice to have a book with a bunch of algos and pseudocode to implement into any language you see fit.

discuss

order

squarefoot|6 years ago

Over at Rosettacode they already ported a lot of stuff in a huge number of languages.

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|6 years ago

That is basically what The Art of Computer Programming by Donald Knuth is and I cant recommend the books enough.

IGI-111|6 years ago

Isn't that pretty much what CLRS is for?

okaleniuk|6 years ago

If 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.

cameronbrown|6 years ago

Pseudocode 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|6 years ago

The 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

drainyard|6 years ago

Something like CRLS? That is fairly implementable pseudocode, but maybe still too hand wavey at times.

abc_lisper|6 years ago

It really is; it's irritating that they say it can be trivially proved with induction, robbing me from understanding the crux of the problem.

numlock86|6 years ago

My thought exactly. Lisp is probably okay (if not even one of the better choices) to get the general message transferred, though.