Greedy Techniques

Greedy is an algorithmic paradigm that builds up a solution piece by piece, always choosing the next piece that offers the most obvious and immediate benefit. So the problems where choosing locally optimal also leads to global solution are best fit for Greedy.

This Web Dashboard implements various Greedy Techniques.

Created by Harsh Badhai

Huffman Coding

A Huffman code is a particular type of optimal prefix code that is commonly used for lossless data compression.

Try it Out

Prim's Algorithm

Prim's algorithm is a greedy algorithm that finds a minimum spanning tree for a weighted undirected graph.

Try it Out

Fractional Knapsack

In Fractional Knapsack Fractions of items can be taken rather than having to make binary (0-1) choices for each item.

Try it Out

Task Scheduling

It is the dispute of optimally scheduling unit time tasks on a single processor where each job has a deadline and a penalty that necessary be paid if the deadline is missed.

Try it Out

Single source shortest path

The shortest path algorithm is about finding a path between 2 vertices in a graph such that the total sum of the edge weights is minimum

Try it Out

Comparative Graph of all the above algorithms