06-30-2003, 06:22 AM
Quote:Recursion in QB is horribly inefficient, especially for time-intensive operations, like quicksort.We agree that recursion is inefficient, especially in QB.
http://forum.qbasicnews.com/viewtopic.php?t=2176
Your QuickSort example is iterative, as you yourself said. Most implementations were originally done recursively, and some converted later to iterative precisely because of the inefficiency.
For the purpose of this challenge, maybe you could convert your example to recursive.
*****