About 5,230 results
Open links in new tab
  1. Iteration vs. recursion: what do these terms really mean?

    Sep 14, 2017 · One can remove any recursion using an explicitly programmed "call stack", as you say, but it's hardly iterative and non-recursive now. Apart from the extreme cases (explicit recursion vs …

  2. time complexity - Why are loops faster than recursion? - Computer ...

    May 1, 2016 · Looks are only faster than recursion in languages that implement them poorly. In a language with proper Tail Recursion, recursive programs can be translated into loops behind the …

  3. Iteration can replace Recursion? - Computer Science Stack Exchange

    Dec 26, 2016 · A computer can execute recursive functions with just this while loop to provide iteration, plus the mechanism to access memory, including the ability to increase the size of the memory at …

  4. Iteration vs Recursion question in Lisp method

    Jul 5, 2019 · Iteration vs Recursion question in Lisp method Ask Question Asked 6 years, 5 months ago Modified 6 years, 5 months ago

  5. Questions tagged [iteration] - Computer Science Stack Exchange

    Iteration can replace Recursion? I've been seeing all over stack Overflow, e.g here, here, here, here, here and some others I don't care to mention, that "any program that uses recursion can be …

  6. algorithms - Which is better ? Iterations or Recursions? - Computer ...

    Jan 12, 2019 · 0 I've heard that any algorithm using iterations can be changed into one that uses recursions and vice-versa. But which type of repetition is preferable for minimum amount of …

  7. What is tail recursion? - Computer Science Stack Exchange

    In this way, we don't care about previous values and one stack frame suffices for all of the recursive calls; tail-recursion is one way of optimizing recursive algorithms. The other advantage/optimization …

  8. Newest 'recursion' Questions - Computer Science Stack Exchange

    Iteration vs Recursion question in Lisp method I am curious if the following method would be called iterative or recursive: ...

  9. Unanswered 'iteration' Questions - Computer Science Stack Exchange

    Iteration vs. recursion: what do these terms really mean? Most of us know the typical answer to this question: if a function calls itself, it's recursion, if it's a loop, it's iteration.

  10. algorithms - How to solve Tower of Hanoi iteratively? - Computer ...

    Aug 26, 2018 · It may seem obvious to many but i am having a hard time figuring out the iterative solution to the Tower of Hanoi problem. There are some solutions on the Internet but without …