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

    Sep 14, 2017 · To me recursive/iterative has more to do with whether we start at the root or the leaves of a computational dependency graph (in which a problem instance has an edge …

  2. Performance of Recursive vs Iterative Solution to "Maximum …

    Mar 10, 2020 · There are two solutions to this question - the recursive solution and the iterative / breadth-first traversal solution. My question is in regards to the memory requirements of each …

  3. Induction to prove equivalence of a recursive and iterative …

    Using induction how do you prove that two algorithm implementations, one recursive and the other iterative, of the Towers of Hanoi perform identical move operations? The …

  4. Iterative and/or tail-recursive implementations of merge sort?

    3 I recently learned how to implement merge-sort, using a standard recursive algorithm. Can the algorithm be implemented in a way that allows for a tail-recursive implementation? Can it be …

  5. How does DNS work if there is no recursive querying?

    When a DNS server sees a recursive query, and it is willing to provide an answer to that recursive query, then it usually does iterative resolution. Iterative resolution works by sending the query …

  6. Technique for converting recursive DP to iterative DP

    Nov 26, 2020 · The title is misleading in the sense that dynamic programming can use either recursive method or iterative method. The correct title should be "How to convert DP using …

  7. Comparison between IDA* and Recursive best first search

    6 How does IDA* compare to recursive best first search (RBFS), in terms of (a) the number of nodes expanded, and (b) space complexity? Both algorithms are intended to be memory …

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

  9. graphs - DFS (Depth-first search) vs BFS (Breadth-first search) …

    Apr 16, 2024 · 2 Problem I am currently digging deep into some optimizations on the classical iterative approaches to both DFS and BFS algorithms. The material I'm currently using at my …

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

    Aug 26, 2018 · Since there is a unique minimal solution, the iterative solution must be the same as the usual recursive solution. You should be able to prove this by induction.