Algorithm Learning Hub

Knapsack Problem

The knapsack problem is a combinatorial optimization problem where the goal is to maximize the total value of items placed in a knapsack of limited capacity.

Knapsack Problem Animation

Dijkstra's Algorithm

Dijkstra's algorithm finds the shortest paths between nodes in a graph, which may represent, for example, road networks.It was developed by Dutch computer scientist Edsger W. Dijkstra in 1956.

Dijkstra's Algorithm Animation

Huffman's Algorithm

Huffman's algorithm is a greedy algorithm used for lossless data compression by constructing an optimal prefix code.

Huffman's Algorithm Animation

Floyd's Algorithm

Floyd's algorithm, also known as Floyd-Warshall, finds the shortest paths between all pairs of nodes in a weighted graph.

Floyd's Algorithm Animation