Skip to main content

11 docs tagged with "greedy algorithms"

View all tags

Activity Selection Problem

In this blog post, we'll explore the Activity Selection Problem, a classic greedy algorithm used to select the maximum number of activities that don't overlap.

Commonly asked Greedy questions

This document explores various commonly greedy algorithm patterns, highlighting their definitions, characteristics, and common applications.

Fractional Knapsack Algorithm

In this blog post, we'll explore the Fractional Knapsack problem, a greedy algorithm-based approach to maximize the value of items within a weight limit by taking fractions of items.

Fractional Knapsack Problem 1

In this post, we'll explore the Fractional Knapsack Problem, a greedy algorithm used to maximize the value of items that can be fit into a knapsack with a weight limit.

Fractional Knapsack Problem 2

In this blog post, we'll explore the Fractional Knapsack Problem, a greedy algorithm used to maximize the value of items that can be carried in a knapsack with a weight limit.

Graph Coloring Algorithm

In this blog post, we'll explore Graph Coloring, Graph coloring refers to the problem of coloring vertices of a graph in such a way that no two adjacent vertices have the same color.

Huffman Coding Algorithm

In this blog post, we'll explore Huffman Coding, a popular lossless data compression algorithm that assigns variable-length codes to input characters based on their frequencies.

Job Scheduling with Deadline

The problem aims to maximize total profit by scheduling a set of jobs, each with a deadline and profit, ensuring selected jobs are completed within their deadlines.

Job Sequencing Algorithm

In this blog post, we'll explore the Job Sequencing problem, a classical greedy algorithm that schedules jobs within their deadlines to maximize profit.

Prim's Algorithm

Prim's algorithm is a greedy algorithm that finds the Minimum Spanning Tree (MST)