News for hackers. Stuff that matters.
Re:Thinking About Recursion by ColinWright on Sunday October 11, 2020 @07:03AM (#24744962)
Educational examples are rarely "real world", and anything "real world" is usually too complex to make the underlying principles clear. In quicksort, for example, any genuine example code has to deal with the partitioning code, and then the recursion aspect is swamped with the details of getting the partitioning right. Trying to avoid that by simply describing the algorithm is generally unsatisfying.

I'm going to write a follow-up post to this with a genuine real-world (well, pure maths calculation) example ... perhaps you will find that more satisfying.

There are no comments on this comment yet.