Buzen's algorithm
In queueing theory, a discipline within the mathematical theory of probability, Buzen's algorithm (or convolution algorithm) is an algorithm for calculating the normalization constant G(N) in the Gordon–Newell theorem. This method was first proposed by Jeffrey P. Buzen in his 1971 PhD dissertation[1] and subsequently published in a refereed journal in 1973.[2] Computing G(N) is required to compute the stationary probability distribution of a closed queueing network.[3]
Performing a naïve computation of the normalizing constant requires enumeration of all states. For a closed network with N circulating jobs and M service centers, G(N) is the sum of individual terms, with each term consisting of M factors raised to powers whose total sum is N. Buzen's algorithm computes G(N) using a total of NM multiplications and NM additions. This is a significant improvement that opened the door to applying the Gordon-Newell theorem to models of realistic size.[2] In addition, the values of G(1), G(2) ... G(N-1), which can be used to express other important quantities of interest,[1] are computed as by-products of the algorithm.
Problem setup
Consider a closed queueing network with M service facilities and N circulating customers. Assume that the service time for a customer at the ith facility is given by an exponentially distributed random variable with parameter μi and that, after completing service at the ith facility, a customer will proceed next to the jth facility with probability pij.[3]
It follows from the Gordon–Newell theorem that the equilibrium distribution of this model is
where
is the steady state probability that the number of customers at the ith service facility is equal to ni for i = 1, 2, ... , M
and where the Xi are found by solving
G(N) is a normalizing constant chosen so that the sum of all the above probabilities is equal to 1.[2]
Buzen's algorithm is an efficient method to compute G(N).[2]
Algorithm description
The algorithm is based on partitioning the set of terms that add up to G(N) into two groups. The first group comprises all terms for which the exponent of XM is greater than or equal to 1. This implies that XM can be factored out of each of these terms.
After factoring out XM , a surprising result emerges: the sum of the modified terms in the first group are exactly equal to the normalizing constant for the same network with one customer removed. Thus, the sum of the terms in the first group can be written as “XM times G(N -1)”.
Now consider the second group. The exponent of XM for every term in this group is zero. In effect, the M th service facility disappears from all terms in this group (since it reduces in every case to a factor of 1). This leaves the total number of customers at the remaining M -1 service facilities equal to N.
To express this result mathematically, assume that X1, X2, … XM have been obtained for a given network with M service facilities. For any n ≤ N and m ≤ M define g(n,m) as the normalizing constant for a network with n customers, service facilities 1,2, … m, and values of X1, X2, … Xm that match the first m members of the original sequence X1, X2, … XM
Given this definition, the normalizing constant G(N) in the Gordon-Newell theorem can now be re-written as g(N,M).
It also follows immediately that “XM times G(N -1)”, the sum of the terms in the first group, can be re-written as “XM times g(N -1,M )”. More importantly, the sum of the terms in the second group can now be written as g(N, M -1).
Since the combined sum of the terms in the first and second groups is equal to G(N),
G(N) = g(N, M ) = XM g(N -1,M ) + g(N,M -1)
This same recurrence relation clearly exists for any intermediate value of n from 1 to N, and for any intermediate value of m from 1 to M . This implies
g(n,m) = Xm g(n-1,m) + g(n,m-1).
The thought process that led to the discovery of this recurrence relation is discussed in the final sections of a 2016 interview. Buzen’s algorithm is simply the iterative application of this this fundamental recurrence relation, along with the following boundary conditions.
g(0,m) = 1 for m = 1, 2, …M
g(n,1) = (Xi)n for n = 0, 1, … N
Marginal distributions, expected number of customers
The Gordon-Newell theorem enables analysts to determine the stationary probability associated with each individual state of a closed queueing network. These individual probabilities must then be added together to evaluate marginal probabilities such as P(nj≥k), the probability that the total number of customers at service center i is greater than or equal to k (summed over all values of nj≥k and all possible ways the remaining N – ni customers can be distributed across the other M-1 service centers in the network).
Many of these marginal probabilities can be computed with minimal additional effort. This is easy to see for the case of P(nj≥k). Clearly, Xi must be raised to the power of k or higher in every state where the number of customers at service center i is greater than or equal to k. Thus (Xi)k can be factored out from each of these probabilities, leaving a set of modified probabilities whose sum is given by G(N-k)/G(N). This observation yields the following simple result:
P(nj≥k) = (Xi)k G(N-k)/G(N)
This relationship can then be used to compute the marginal distributions and expected number of customers at each service facility.
The expected number of customers at service facility i is given 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(n,m) is in principle a two dimensional matrix, it can be computed in a column by column fashion starting from the top of the leftmost column and running down each column to the bottom before proceeding to the next column on the right. The routine uses a single column vector C to represent the current column of g.
C[0] := 1
for n := 1 step 1 until N do
C[n] := 0;
for m := 1 step 1 until M do
for n := 1 step 1 until N do
C[n] := C[n] + X[m]*C[n-1];
At completion, C contains the desired values G(0), G(1), ... , G(N). [2]
References
- ^ a b Defense Technical Information Center (1971-08-01). DTIC AD0731575: Queueing Network Models of Multiprogramming.
- ^ a b c d e Buzen, J. P. (1973). "Computational algorithms for closed queueing networks with exponential servers" (PDF). Communications of the ACM. 16 (9): 527–531. doi:10.1145/362342.362345. S2CID 10702.
- ^ a b Gordon, W. J.; Newell, G. F. (1967). "Closed Queuing Systems with Exponential Servers". Operations Research. 15 (2): 254. doi:10.1287/opre.15.2.254. JSTOR 168557.