Queueing, Scheduling & Network Flow Explorer
Analyze queueing systems with M/M/1 and M/M/c models, compare single-machine scheduling algorithms with interactive Gantt charts, and find maximum flow in directed networks using the Edmonds-Karp algorithm.
M/M/1 Queue Metrics
Little's Law check = 3.0000 × 0.5000 = 1.5000 ≈ 1.5000
Reference Guide
M/M/1 Queue Formulas
The M/M/1 queue has Poisson arrivals (rate ) and exponential service times (rate ) with a single server. The system is stable when .
The average time a customer spends waiting in the queue and in the system overall are given by
For M/M/c queues with servers, the Erlang-C formula gives the probability that an arriving customer must wait. Utilization per server becomes .
Little's Law (L = λW)
Little's Law is a fundamental theorem in queueing theory that holds for any stable system, regardless of arrival distribution, service distribution, or scheduling policy.
where is the average number of items in the system, is the average arrival rate, and is the average time an item spends in the system.
This also applies to the queue alone
Little's Law is used in factory throughput analysis, software performance modeling, and hospital patient flow estimation.
Scheduling Algorithms
Single-machine scheduling optimizes different objectives depending on which rule is used.
SPT (Shortest Processing Time) minimizes average flow time by processing the shortest jobs first.
EDD (Earliest Due Date) minimizes maximum lateness by scheduling jobs with the nearest deadlines first.
WSPT (Weighted Shortest Job) minimizes total weighted completion time by sorting jobs in decreasing order of .
For a single machine, all algorithms produce the same makespan . The choice of rule depends on the optimization objective.
Max Flow / Min Cut
The max-flow problem finds the greatest amount of flow that can be sent from a source to a sink in a directed graph where each edge has a capacity constraint.
The Max-Flow Min-Cut Theorem states that the maximum flow equals the minimum total capacity of edges whose removal disconnects the source from the sink.
The Ford-Fulkerson method repeatedly finds augmenting paths in the residual graph and pushes flow along them. The Edmonds-Karp variant uses BFS, guaranteeing time complexity.
Applications include network routing, bipartite matching, transportation logistics, and image segmentation.