About 267,000 results
Open links in new tab
  1. Greedy algorithm - Wikipedia

    Kruskal's algorithm and Prim's algorithm are greedy algorithms for constructing minimum spanning trees of a given connected graph. They always find an optimal solution, which may …

  2. Greedy Algorithms - GeeksforGeeks

    Jul 25, 2025 · Greedy algorithms are a class of algorithms that make locally optimal choices at each step with the hope of finding a global optimum solution. At every step of the algorithm, …

  3. What is a Greedy Algorithm? Examples of Greedy Algorithms

    May 12, 2023 · In computer science, a greedy algorithm is an algorithm that finds a solution to problems in the shortest time possible. It picks the path that seems optimal at the moment …

  4. Greedy Algorithms: Concept, Examples, and Applications

    First, let’s understand what a greedy algorithm is. A greedy algorithm is an optimization technique that solves problems step by step, always selecting the best possible choice at each moment.

  5. DSA Greedy Algorithms - W3Schools

    Two properties must be true for a problem for a greedy algorithm to work: Greedy Choice Property: Means that the problem is so that the solution (the global optimum) can be reached …

  6. Greedy Algorithm - Programiz

    A greedy algorithm is an approach for solving a problem by selecting the best option available at the moment, without worrying about the future result it would bring.

  7. Understanding and Applying Greedy Algorithms: A …

    In this comprehensive guide, we’ll dive deep into the concept of greedy algorithms, explore their applications, and learn how to implement them effectively. What are Greedy Algorithms?

  8. Greedy Algorithms: Use Cases, Examples & Optimization Tips

    May 8, 2025 · Greedy algorithms solve problems by making the best choice at each step, hoping it leads to the optimal solution. Imagine you’re trying to make change with the fewest coins …

  9. Greedy Algorithms | Brilliant Math & Science Wiki

    A greedy algorithm is a simple, intuitive algorithm that is used in optimization problems. The algorithm makes the optimal choice at each step as it attempts to find the overall optimal way …

  10. Greedy Algorithm Tutorial - GeeksforGeeks

    Jul 23, 2025 · Greedy algorithms are used for optimization problems. An optimization problem can be solved using Greedy if the problem has the following property: At every step, we can make …