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. 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 …

  4. 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.

  5. 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...

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

    Aug 29, 2008 · Tail recursion optimization is to remove call stack for the tail recursion call, and instead do a jump, like in a while loop. But if you do use the return value of a recursive call before return it, it …

  7. 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.

  8. recursion - Java recursive Fibonacci sequence - Stack Overflow

    1 By using an internal ConcurrentHashMap which theoretically might allow this recursive implementation to properly operate in a multithreaded environment, I have implemented a fib function that uses both …

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

    There are a number of good explanations of recursion in this thread, this answer is about why you shouldn't use it in most languages.* In the majority of major imperative language implementations …

  10. 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?