2 ms·
I gave it a small go recently to try and learn "loopless" methods for permutation generation. Also used it for heap methods. Plan on using it for a few other
by taeric 10y ago
I gave it a small go recently to try and learn "loopless" methods for permutation generation. Also used it for heap methods. Plan on using it for a few other things, but haven't gotten there, yet.
In both cases, it worked better than I was expecting it to. I have no doubt that I would quickly forget either method, as I don't use them often, but I can at least type them up quickly into a scratch buffer. Even better, by having the entire thing worked out out and known at the algorithm layer, I was able to focus on some of the language specifics in implementation later.
All of that is to say, it was great for remembering pseudo code that I would then later focus on implementing. Gave me a much better appreciation for pseudo code, actually.