In queueing theory, a discipline within the mathematical theory of probability, Buzen's algorithm is an algorithm for calculating the normalization constantG in the Gordon–Newell theorem. This method was first proposed by Jeffrey P. Buzen in 1973. Computing G is required to compute the stationary probability distribution of a closedqueueing network. Performing a naïve computation of the normalising constant requires enumeration of all states. For a system with N jobs and M states there are states. Buzen's algorithm "computes G, G,..., G using a total of NM multiplications and NM additions." This is a significant improvement and allows for computations to be performed with much larger networks.
Problem setup
Consider a closed queueing network with M service facilities and N circulating customers. Write ni for the number of customers present at the ith facility at time t, such that. We assume that the service time for a customer at the ith facility is given by an exponentially distributedrandom variable with parameter μi and that after completing service at the ith facility a customer will proceed to the jth facility with probability pij. It follows from the Gordon–Newell theorem that the equilibrium distribution of this model is where the Xi are found by solving and G is a normalizing constant chosen that the above probabilities sum to 1. Buzen's algorithm is an efficient method to compute G.
Algorithm description
Write g for the normalising constant of a closed queueing network with N circulating customers and M service stations. The algorithm starts by noting solving the above relations for the Xi and then setting starting conditions The recurrence relation is used to compute a grid of values. The sought for value G = g.
The coefficients g, computed using Buzen's algorithm, can also be used to compute marginal distributions and expected number of customers at each node. the expected number of customers at facility i by
Implementation
It will be assumed that the Xm have been computed by solving the relevant equations and are available as an input to our routine. Although g is in principle a two dimensional matrix, it can be computed in a column by column fashion starting from the leftmost column. The routine uses a single column vectorC to represent the current column of g. C := 1 for n := 1 step 1 until N do C := 0; for m := 1 step 1 until M do for n := 1 step 1 until N do C := C + X*C;
At completion, C contains the desired values G, G to G.