About 50 results
Open links in new tab
  1. c++ - What is a good example of recursion other than generating a ...

    Good examples of recursion are often related to cases where underlying data structure or the problem itself is recursive : trees, graphs, algorithms using divide and conquer approach (like many sorts), …

  2. Real-world examples of recursion - Stack Overflow

    Sep 20, 2008 · Recursion is a mathematical abstraction. You can model lots of things using recursion. In that sense, Fibonacci is absolutely real-world, as there are quite some real-world problems that can …

  3. Are there any examples of mutual recursion? - Stack Overflow

    The general term is “mutual recursion”, and yeah, there are many, many cases where the calls made by a function would be likely to cause a nested call into that function.

  4. SQL Server CTE and recursion example - Stack Overflow

    I never use CTE with recursion. I was just reading an article on it. This article shows employee info with the help of Sql server CTE and recursion. It is basically showing employees and their mana...

  5. recursion - Examples of Recursive functions - Stack Overflow

    Nov 27, 2013 · Can anybody suggest programming examples that illustrate recursive functions? There are the usual old horses such as Fibonacci series and Towers of Hanoi, but anything besides them …

  6. algorithm - What is tail recursion? - Stack Overflow

    Aug 29, 2008 · 59 Tail recursion refers to the recursive call being last in the last logic instruction in the recursive algorithm. Typically in recursion, you have a base-case which is what stops the recursive …

  7. What are the advantages and disadvantages of recursion?

    Mar 9, 2011 · With respect to using recursion over non-recursive methods in sorting algorithms or, for that matter, any algorithm what are its pros and cons?

  8. Difference between Left Factoring and Left Recursion

    Mar 4, 2013 · What is the difference between Left Factoring and Left Recursion ? I understand that Left factoring is a predictive top down parsing technique. But I get confused when I hear these two terms.

  9. algorithm - recursion versus iteration - Stack Overflow

    Mar 28, 2013 · Recursion is usually much slower because all function calls must be stored in a stack to allow the return back to the caller functions. In many cases, memory has to be allocated and copied …

  10. What is recursion and when should I use it? - Stack Overflow

    Recursion is a tree, with branches and leaves, called parents and children respectively. When you use a recursion algorithm, you more or less consciously are building a tree from the data.