POV-Ray : Newsgroups : povray.off-topic : Oi, Darren : Re: Oi, Darren Server Time
7 Sep 2024 13:23:32 EDT (-0400)
  Re: Oi, Darren  
From: Warp
Date: 11 Jul 2008 15:51:24
Message: <4877b9bc@news.povray.org>
Orchid XP v8 <voi### [at] devnull> wrote:
> Mmm, I see. Yes, the third identity requires you to either recurse twice 
> (requiring more stack), or to build a table of results to avoid the 
> extra recursion (also requiring more memory).

  More concrete examples: Heap sort can be implemented iteratively (the
heap sort algorithm itself only requires O(1) memory to sort an array
of values). AFAIK, quicksort cannot be implemented iteratively.

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.