About 216,000 results
Open links in new tab
  1. Introduction to Recursion - GeeksforGeeks

    Apr 24, 2025 · Common Applications of Recursion. Tree and Graph Traversal: Used for systematically exploring nodes/vertices in data structures like trees and graphs. Sorting Algorithms: Algorithms like quicksort and merge sort divide data into subarrays, sort them recursively, and merge them.

  2. Understanding Recursion and Its Applications in Coding Problems

    Recursion is a natural fit for traversing tree-like structures or graphs. Consider a binary tree traversal: inorderTraversal(node.left); . console.log(node.value); . inorderTraversal(node.right);}

  3. Recursion, Graphs, and Dynamic Programming · Aravind Vasudevan

    Feb 11, 2024 · We will start by exploring the idea behind recursion, followed by graphs, and finally wrap up with top-down dynamic programming. Recursion is defining a problem in terms of itself. What does this even mean? We all would have seen the classic example of generating the Nth fibonacci sequence using recursion:

  4. Recursion Tree and DAG (Dynamic Programming/DP) - VisuAlgo

    This is the Recursion Tree and Recursion Directed Acyclic Graph (DAG) visualization area. The Recursion Tree/DAG are drawn/animated as per how a real computer program that implements this recursion works, i.e., "depth-first".

  5. 10 Best Coding Exercises for Mastering Recursion: From Beginner …

    In this comprehensive guide, we’ll explore the best coding exercises for learning recursion, ranging from beginner-friendly problems to more advanced challenges. Before diving into the exercises, let’s quickly recap what recursion is and why it’s important:

  6. Understanding Recursion: Applications in Linked Lists, Trees, and Graphs

    Feb 18, 2025 · Recursion is a powerful concept in computer science that allows us to solve complex problems by breaking them down into smaller, more manageable subproblems. It is widely used in data...

  7. 17.4 Connectivity and Recursive Graph Traversal - cs.toronto.edu

    We’ll develop a recursive approach in this section, although it is possible to translate this approach into one that uses loops as well. Here is our “complete” implementation of Graph.connected. As we did in earlier chapters, we’re going to move the trickiest part (filling in that else branch) into a helper method.

  8. Understanding Recursion Through Graph Structures In …

    Sep 28, 2024 · Graphs can represent complex relationships and dependencies, making them an excellent tool for visualizing recursive processes. This article will guide you through the concept of recursion using graph structures, providing examples and code snippets to solidify your understanding. What Are Graphs?

  9. Make-School-Courses/CS-2.2-Graphs-Recursion - GitHub

    Jul 16, 2021 · Describe common graph algorithms including graph traversals, pathfinding, greedy algorithms, recursion, and dynamic programming. Model and solve real world problems using graph algorithms. Implement graph algorithms in code. Develop algorithmic thinking skills to expand on common graph algorithms and improve problem solving approaches.

  10. Graph Connectivity with Recursion - CodingDrills

    We will dive into the topic of graph connectivity using recursion and provide detailed explanations and code examples to help programmers understand the concepts. In this technical blog post, we will explore recursion algorithms, with a focus on recursion with trees and graphs.

  11. Some results have been removed