ArticleslgStudy

computer science

Buzen's algorithm

Buzen's algorithm is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Buzen's algorithm rather than just read about it. In short: 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.

Key takeaways

  • Buzen's algorithm belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Buzen's algorithm to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Buzen's algorithm from memory before moving on to harder problems.

Reference excerpt

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 and subsequently published in a refereed journal in 1973. Computing G(N) is required to compute the stationary probability distribution of a closed queueing network. Performing a naïve computation of the normalizing constant requires enumeration of all states. For a closed network with N circulating customers and M service facilities, G(N) is the sum of (N+M−1M−1) individual terms, with each term consisting of M factors raised to powers whose sum is N. Buzen's algorithm computes G(N) using only NM multiplications and NM additions. This dramatic improvement opened the door to applying the Gordon-Newell theorem to models of real world computer systems as well as flexible manufacturing systems and other cases where bottlenecks and queues can form within networks of inter-connected service facilities. The values of G(1), G(2) ... G(N -1), which can be used to calculate other important quantities of interest, 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 service facility i is given by an exponentially distributed random variable with parameter μi and that, after completing service at service facility i, a customer will proceed next to service facility j with probability pij. Let ℙ(n1,n2,⋯,nM) be the steady state probability that the number of customers at service facility i is equal to ni for i = 1, 2, ... , M . It follows from the Gordon–Newell theorem that ℙ(n1,n2,⋯,nM)=1G(N)(X1)n1(X2)n2 .... (XM)nM This result is usually written more compactly as ℙ(n1,n2,⋯,nM)=1G(N)∏i=1M(Xi)ni The values of Xi are determined by solving μjXj=∑i=1MμiXipij for j=1,…,M. G(N) is a normalizing constant chosen so that the sum of all (N+M−1M−1) values of ℙ(n1,n2,⋯,nM) is equal to 1. Buzen's algorithm represents the first efficient procedure for computing G(N).

Algorithm description The individual terms that must be added together to compute G(N) all have the following form: (X1)n1(X2)n2 .... (XM)nM. Note that this set of terms can be partitioned 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) raised to the power 1 can be factored out of each of these terms. After factoring out (XM), a surprising result emerges: the modified terms in the first group are identical to the terms used to compute 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)”. This insight provides the foundation for the development of the algorithm. Next consider the second group. The exponent of XM for every term in this group is zero. As a result, service facility M effectively 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. The second group includes all possible arrangements of these N customers. To express this concept precisely, 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, m 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 sum of the terms in the second group can now be written as g(N, M -1). 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 )”. In addition, the normalizing constant G(N) in the Gordon-Newell theorem can now be re-written as g(N,M). Since G(N) is equal to the combined sum of the terms in the first and second groups, 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). Buzen’s algorithm is simply the iterative application of 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 other important probabilities. For example P(ni ≥ k), the probability that the total number of customers at service center i is greater than or equal to k, must be summed over all values of ni ≥ k and, for each such value of ni, over 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(ni ≥ 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 and highly efficient result: P(ni ≥ 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. ℙ(ni=k)=XikG(N)[G(N−k)−XiG(N−k−1)] for k=0,1,…,N−1, ℙ(ni=N)=XiNG(N). The expected number of customers at service facility i is given by 𝔼(ni)=∑k=1NXikG(N−k)G(N). These characterizations of quantities of interest in terms of the G(n) are also due to Buzen.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Buzen's algorithm

Start with the simplest possible case. Write down what Buzen's algorithm claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Buzen's algorithm before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Buzen's algorithm ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Buzen's algorithm

In research
Buzen's algorithm appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Buzen's algorithm in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Buzen's algorithm is common in secondary-school and first-year university syllabi. It links to neighbouring topics Queueing theory, Statistical algorithms, so understanding it makes those chapters shorter.
In everyday life
Look for Buzen's algorithm outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Buzen's algorithm” →

How to study Buzen's algorithm in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Buzen's algorithm means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Buzen's algorithm out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Buzen's algorithm in simple terms?

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.

Why does Buzen's algorithm matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Buzen's algorithm?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Buzen's algorithm.

Tags

  • Queueing theory
  • Statistical algorithms

Keep exploring