Food Supply Storage & Allocation
Manage physical inventories, warehouses, and run multi-depot demand fulfillment algorithms.
Add Food Supply Item
Food Request & Allocation
Total Stock Items
0
Total Weight
0 kg
Warehouses
0
Current Food Stock Table
| # | Food Item | Available Qty | Warehouse Location | Action |
|---|
String Matching Engine (Module 2)
Implementations of Naive, Knuth-Morris-Pratt (KMP), Z-Algorithm, and Rabin-Karp Rolling Hash for food batch and inventory search.
Match Execution Results
ReadyWagner-Fischer Edit Distance (Module 3)
Compute Levenshtein distance with full 2D Dynamic Programming table visualization and search for typo-tolerant supplies (distance ≤ 2).
Interactive DP Matrix
Similar Food Search (Threshold ≤ 2)
Enter a query to find close food items in stock.
Wagner-Fischer DP Table Visualization
Cell: dp[i][j]Matrix Chain Multiplication & Bitmask TSP (Module 3)
Optimize batch computational pipelines with Matrix Chain Multiplication (MCM) and solve minimal food distribution routes with Bitmask TSP.
Matrix Chain Multiplication (MCM)
O(n³) DPFor n matrices A1...An, provide n+1 dimensions: p[0], p[1], ..., p[n].
Distribution Tour via Bitmask DP (TSP)
O(n² 2ⁿ) DPDinic's Maximum Network Flow (Module 4)
Compute the maximum metric tons of supplies that can be routed from Central Depot (Source = 0) to Relief Camp (Sink = N-1) using BFS level graphs and DFS blocking flows.
Network Configuration
One directed edge per line: u v capacity
Throughput from Central Source to Disaster Relief Sink.
Network Graph Layout
Auto-rendered SVG| From | To | Capacity |
|---|
Vertex Cover 2-Approximation (Module 5)
NP-Complete optimization: Select the minimal set of strategic food checkpoint checkpoints such that every transport route (edge) is inspected.
Graph Edges
Guaranteed to be within at most 2 × OPT size.
Road Network Graph & Selected Cover
Randomized & Streaming Algorithms (Module 6)
Miller-Rabin Primality Testing, Reservoir Sampling for real-time streams, Randomized Quicksort, and Range Prefix Sums.
Miller-Rabin Primality Verification
RandomizedTry numbers like 1000000007 (Prime), 104729 (Prime), 999999999 (Composite), 561 (Carmichael number).
Streaming Reservoir Sampling (1/i)
O(1) MemoryRandomized Quicksort
Expected O(n log n)Prefix Sum Range Calculator
O(1) QueriesFoodChain Verification & Benchmark Suite
Cross-check all core DSA modules against the test suite defined in Main.java:testAlgorithms().