ArticleslgStudy

science

Strongly-polynomial time

Strongly-polynomial time is a 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 Strongly-polynomial time rather than just read about it. In short: In computer science, a polynomial-time algorithm is – generally speaking – an algorithm whose running time is upper-bounded by some polynomial function of the input size. The definition naturally depends on the computational model, which determines how the running time is measured, and how the input size is measured.

Key takeaways

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

Reference excerpt

In computer science, a polynomial-time algorithm is – generally speaking – an algorithm whose running time is upper-bounded by some polynomial function of the input size. The definition naturally depends on the computational model, which determines how the running time is measured, and how the input size is measured. Two prominent computational models are the Turing-machine model and the arithmetic model. A strongly-polynomial time algorithm is polynomial in both models, whereas a weakly-polynomial time algorithm is polynomial only in the Turing machine model. The difference between strongly- and weakly-polynomial time is when the inputs to the algorithms consist of integers or rational numbers. It is particularly common in optimization.

Computational models Two common computational models are the Turing-machine model and the arithmetic model:

In the arithmetic model, every real number requires a single memory cell, whereas in the Turing model the storage size of a real number depends on the number of bits required to represent it. In the arithmetic model, every basic arithmetic operation on real numbers (addition, subtraction, multiplication, and division) can be done in a single step, whereas in the Turing model the run-time of each arithmetic operation depends on the length of the operands. Some algorithms run in polynomial time in one model but not in the other one. For example:

The Euclidean algorithm runs in polynomial time in the Turing model, but not in the arithmetic model. The algorithm that reads n numbers and then computes 22n by repeated squaring runs in polynomial time in the Arithmetic model, but not in the Turing model. This is because the number of bits required to represent the outcome is exponential in the input size. However, if an algorithm runs in polynomial time in the arithmetic model, and in addition, the binary length of all inputs, outputs, and intermediate values is polynomial in the number of input values, then it is always polynomial-time in the Turing model. Such an algorithm is said to run in strongly polynomial time.

Definition Strongly polynomial time is defined in the arithmetic model of computation. In this model of computation the basic arithmetic operations (addition, subtraction, multiplication, division, and comparison) take a unit time step to perform, regardless of the sizes of the operands. The algorithm runs in strongly polynomial time if:

the number of operations in the arithmetic model of computation is bounded by a polynomial in the number of integers in the input instance; and the space used by the algorithm is bounded by a polynomial in the size of the input. Any algorithm with these two properties can be converted to a polynomial time algorithm by replacing the arithmetic operations by suitable algorithms for performing the arithmetic operations on a Turing machine. The second condition is strictly necessary: given the integer 2n (which takes up space proportional to n in the Turing machine model), it is possible to compute 22n with n multiplications using repeated squaring. However, the space used to represent 22n is proportional to 2n, and thus exponential rather than polynomial in the space used to represent the input. Hence, it is not possible to carry out this computation in polynomial time on a Turing machine, but it is possible to compute it by polynomially many arithmetic operations. However, for the first condition, there are algorithms that run in a number of Turing machine steps bounded by a polynomial in the length of binary-encoded input, but do not take a number of arithmetic operations bounded by a polynomial in the number of input numbers. The Euclidean algorithm for computing the greatest common divisor of two integers is one example. Given two integers a and b, the algorithm performs O(log⁡a+log⁡b) arithmetic operations on numbers with at most O(log⁡a+log⁡b) bits. At the same time, the number of arithmetic operations cannot be bounded by the number of integers in the input (which is constant in this case, there are always only two integers in the input). Due to the latter observation, the algorithm does not run in strongly polynomial time. Its real running time depends on the lengths of a and b in bits and not only on the number of integers in the input. An algorithm that runs in polynomial time but that is not strongly polynomial is said to run in weakly polynomial time. A well-known example of a problem for which a weakly polynomial-time algorithm is known, but was not (until 2026) known to admit a strongly polynomial-time algorithm, is linear programming. Weakly polynomial time should not be confused with pseudo-polynomial time, which depends on the magnitudes of values in the problem instead of the lengths and is not truly polynomial time.

Subtleties In order to specify the arithmetic model, there are several ways to define the division operation. The outcome of dividing an integer a by another integer b could be one of:

The rational number a/b (i.e., not reduced, since reduction cannot be done in strongly-polynomial time). The rational number a/b, except if it is known in advance that a/b is an integer, in which case it is the integer a/b. The rational number a/b, except if a/b is an integer, in which case it is the integer a/b. The integer floor(a/b). In all versions, strongly-polynomial-time implies polynomial-time in the Turing model.

References

Worked examples

Example 1 — a first encounter with Strongly-polynomial time

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

In research
Strongly-polynomial time appears in 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 Strongly-polynomial time 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
Strongly-polynomial time is common in secondary-school and first-year university syllabi. It links to neighbouring topics Complexity classes, so understanding it makes those chapters shorter.
In everyday life
Look for Strongly-polynomial time 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 “Strongly-polynomial time” →

How to study Strongly-polynomial time in 20 minutes

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

Frequently asked questions

What is Strongly-polynomial time in simple terms?

In computer science, a polynomial-time algorithm is – generally speaking – an algorithm whose running time is upper-bounded by some polynomial function of the input size. The definition naturally depends on the computational model, which determines how the running time is measured, and how the inpu…

Why does Strongly-polynomial time matter?

Because it connects several 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 Strongly-polynomial time?

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 Strongly-polynomial time.

Tags

  • Complexity classes

Keep exploring