Bornat Visualizer
AlgorithmsData StructuresNeural NetPracticePlaygroundCompareDocs

Greedy Algorithms

Locally optimal choices building global solutions — scheduling, Huffman codes, and more.

4 visualizations

Compare

Activity Selection

Selects the maximum number of non-overlapping activities by always taking the one that finishes earliest.

Beginnergreedyinterval scheduling

Fractional Knapsack

Maximizes value under a weight limit when items can be split, by greedily taking the highest value/weight ratio first.

Intermediategreedyoptimization

Job Sequencing with Deadlines

Schedules unit-time jobs to maximize profit by taking the most profitable jobs first and placing them in the latest free slot before their deadline.

Intermediategreedyscheduling

Huffman Coding

Builds an optimal prefix-free binary code by repeatedly merging the two lowest-frequency nodes into a tree.

Advancedgreedycompression
Bornat Data Structure Visualizer

Learn, visualize, experiment, and master data structures & algorithms with fully interactive, step-by-step animations.

Made with by Jibreel Bornat

Computer Engineering — Birzeit University

Explore

  • Sorting
  • Searching
  • Linked Lists
  • Stacks & Queues
  • Hashing
  • Trees
  • Graphs

App

  • All Algorithms
  • Practice
  • Playground
  • Documentation
  • About
  • Settings
Bornat Data Structure Visualizer© All Rights Reserved