algorithmica icon indicating copy to clipboard operation
algorithmica copied to clipboard

Recursion vs. work list

Open dabrahams opened this issue 3 years ago • 0 comments

Recursive algorithms that can't tail-call optimized can still be implemented without recursion by using an auxiliary work list (essentially replacing the call stack with a dynamically allocated array). It would be useful to see some discussion of the tradeoffs inherent in that approach.

dabrahams avatar Aug 13 '22 22:08 dabrahams