title: Does java recursion algorithms consume more heap causing additional garbage collection?
body: <p>If I have two algorithms that produce the same results, where the first is based on recursion and the other is a loop based one, which will cause more garbage collection with regards to pure program flow management ? </p>