ArticleslgStudy

mathematics

Firing squad synchronization problem

Firing squad synchronization problem is a mathematics 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 Firing squad synchronization problem rather than just read about it. In short: The firing squad synchronization problem is a problem in computer science and cellular automata in which the goal is to design a cellular automaton that, starting with a single active cell, eventually reaches a state in which all cells are simultaneously active. It was first proposed by John Myhill in 1957 and published (with a solution by John McCarthy and Marvin Minsky) in 1962 by Edward F.

Firing squad synchronization problem — main illustration
Firing squad synchronization problem — illustration

Key takeaways

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

Reference excerpt

The firing squad synchronization problem is a problem in computer science and cellular automata in which the goal is to design a cellular automaton that, starting with a single active cell, eventually reaches a state in which all cells are simultaneously active. It was first proposed by John Myhill in 1957 and published (with a solution by John McCarthy and Marvin Minsky) in 1962 by Edward F. Moore.

Problem statement The name of the problem comes from an analogy with real-world firing squads: the goal is to design a system of rules according to which an officer can command an execution detail to fire so that its members fire their rifles simultaneously. More formally, the problem concerns cellular automata, arrays of finite-state machines called cells arranged in a line, such that at each time step each machine transitions to a new state as a function of its previous state and the states of its two neighbors in the line. For the firing squad problem, the line consists of a finite number of cells, and the rule according to which each machine transitions to the next state should be the same for all of the cells interior to the line, but the transition functions of the two endpoints of the line are allowed to differ, as these two cells are each missing a neighbor on one of their two sides. The states of each cell include three distinct states: active, quiescent, and firing, and the transition function must be such that a cell that is quiescent and whose neighbors are quiescent remains quiescent. Initially, at time t = 0, all states are quiescent except for the cell at the far left (the general), which is active. The goal is to design a set of states and a transition function such that, no matter how long the line of cells is, there exists a time t such that every cell transitions to the firing state at time t, and such that no cell belongs to the firing state prior to time t.

Solutions The first solution to the FSSP was found by John McCarthy and Marvin Minsky and was published in Sequential Machines by Moore. Their solution involves propagating two waves down the line of soldiers: a fast wave and a slow wave moving three times as slow. The fast wave bounces off the other end of the line and meets the slow wave in the centre. The two waves then split into four waves, a fast and slow wave moving in either direction from the centre, effectively splitting the line into two equal parts. This process continues, subdividing the line until each division is of length 1. At this moment, every soldier fires. This solution requires 3n units of time for n soldiers. A solution using a minimal amount of time (which is 2n − 2 units of time for n soldiers), was first found by Eiichi Goto (1962), but his solution used thousands of states. Waksman (1966) improved this to 16 states, and Balzer (1967) further improved it to eight states, while claiming to prove that no four-state solution exists. Peter Sanders later found that Balzer's search procedure was incomplete, but managed to reaffirm the four-state non-existence result through a corrected search procedure. The best currently known solution, using six states, was introduced by Jacques Mazoyer (1987). It is still unknown whether a five-state solution exists. In the minimal-time solutions, the general sends to the right signals S1, S2, S3, ..., Si at speeds 1, 1/3, 1/7, ..., 1/(2 i−1 − 1). The signal S1 reflects at the right end of the line, and meets signal Si (for i ≥ 2) at cell n/2 i−1. When S1 reflects, it also creates a new general at the right end. Signals Si are constructed using auxiliary signals, which propagate to the left. Every second time a signal moves (to the right), it sends an auxiliary signal to the left. S1 moves on its own at speed 1 while each of the slower signals moves only when it gets an auxiliary signal.

Generalizations The firing squad synchronization problem has been generalized to many other types of cellular automaton, including higher-dimensional arrays of cells (Shinahr 1974). Variants of the problem with different initial conditions have also been considered (Kobayashi & Goldstein 2005). A solution of a generalized FSSP that is utilizing emergent information processing had been developed by (Kroc 2025), which could be used to develop implantable tissue engineered pacemakers, and in design of novel, emergent computers. Solutions to the firing squad problem may also be adapted to other problems. For instance, Patrick Fischer (1965) designed a cellular automaton algorithm to generate the prime numbers based on an earlier solution to the firing squad synchronization problem.

References Balzer, Robert (1967), "An 8-state minimal time solution to the firing squad synchronization problem", Information and Control, 10 (1): 22–42, doi:10.1016/S0019-9958(67)90032-0. Fischer, Patrick C. (1965), "Generation of primes by a one-dimensional real-time iterative array", Journal of the ACM, 12 (3): 388–394, doi:10.1145/321281.321290. Goto, Eiichi (1962), A minimal time solution of the firing squad problem, Dittoed course notes for Applied Mathematics 298, Cambridge, MA: Harvard University, pp. 52–59. As cited by Waksman (1966). Kobayashi, Kojiro; Goldstein, Darin (2005), "On formulations of firing squad synchronization problems", Unconventional Computation (PDF), Lecture Notes in Computer Science, vol. 3699, Springer-Verlag, pp. 157–168, doi:10.1007/11560319_15, ISBN 978-3-540-29100-8. Mazoyer, Jacques (1987), "A six-state minimal time solution to the firing squad synchronization problem", Theoretical Computer Science, 50 (2): 183–238, doi:10.1016/0304-3975(87)90124-1. Moore, F. R.; Langdon, G. G. (1968), "A generalized firing squad problem", Information and Control, 12 (3): 212–220, doi:10.1016/S0019-9958(68)90309-4. Shinahr, Ilka (1974), "Two- and three-dimensional firing-squad synchronization problem", Information and Control, 24 (2): 163–180, doi:10.1016/S0019-9958(74)80055-0. Waksman, Abraham (1966), "An optimum solution to the firing squad synchronization problem", Information and Control, 9 (1): 66–78, doi:10.1016/S0019-9958(66)90110-0. Kroc, Jiri (2025), "Biological Applications of Emergent Information Processing: Fast, Long-Range Synchronization", preprints.org: 1–21, doi:10.20944/preprints202501.1722.v1.

External links Weisstein, Eric W. "Firing Squad Problem". MathWorld. A visualization and explanation of one of the solutions.

Illustrations

Firing squad synchronization problem: One solution to the FSSP using 15 states and 3n units of time. Time increases from top to bottom.
One solution to the FSSP using 15 states and 3n units of time. Time increases from top to bottom.
Firing squad synchronization problem: A solution using 2n-2 units of time. Time increases from bottom to top.
A solution using 2n-2 units of time. Time increases from bottom to top.
Firing squad synchronization problem: Mazoyer's solution using only 6 states, on a line of 29 cells (borders are not shown). Simultaneous firing happens at step 57.
Mazoyer's solution using only 6 states, on a line of 29 cells (borders are not shown). Simultaneous firing happens at step 57.

Worked examples

Example 1 — a first encounter with Firing squad synchronization problem

Start with the simplest possible case. Write down what Firing squad synchronization problem claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, 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 Firing squad synchronization problem 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 Firing squad synchronization problem 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 Firing squad synchronization problem

In research
Firing squad synchronization problem appears in mathematics 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 Firing squad synchronization problem 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
Firing squad synchronization problem is common in secondary-school and first-year university syllabi. It links to neighbouring topics Cellular automata, Mathematical problems, so understanding it makes those chapters shorter.
In everyday life
Look for Firing squad synchronization problem 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 “Firing squad synchronization problem” →

How to study Firing squad synchronization problem in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Firing squad synchronization problem 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 Firing squad synchronization problem out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Firing squad synchronization problem in simple terms?

The firing squad synchronization problem is a problem in computer science and cellular automata in which the goal is to design a cellular automaton that, starting with a single active cell, eventually reaches a state in which all cells are simultaneously active. It was first proposed by John Myhill…

Why does Firing squad synchronization problem matter?

Because it connects several mathematics 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 Firing squad synchronization problem?

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 Firing squad synchronization problem.

Tags

  • Cellular automata
  • Mathematical problems

Keep exploring