• Introduction
      • Implementation
      • Better Approach
      • Binary Search on an Arbitrary Predicate
      • Binary Search on Answer
      • Binary Search on Answer: Example
    • Introduction
      • Activity Selection Problem
      • Introduction to Huffman Coding
      • Alphabet
      • Codes
      • Prefix-Free Codes
      • Fixed-Length Binary Codes
      • Variable-Length Binary Codes
      • The Problem: Optimal Prefix-Free Codes
      • Codes as Trees
      • Huffman's Greedy Algorithm
      • Pseudocode
      • Implementation
      • Русский
    • to navigate
    • to select
    • to close
      • Home
      • Greedy Algorithms
      On this page

      Greedy Algorithms

      Discover greedy algorithms, a powerful class of algorithms that build solutions step-by-step by making locally optimal choices. Learn their applications in optimization problems, their efficiency, limitations, and scenarios where greedy strategies yield optimal results.

      article

      Introduction

      An introductory overview of Greedy algorithms.

      article folder

      Some Basic Examples

      Basic Greedy Algorithms Examples

      article folder

      Huffman Coding


      © 2025 AlgorithmsHub