ArticleslgStudy

computer science

Computational complexity of mathematical operations

Computational complexity of mathematical operations 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 Computational complexity of mathematical operations rather than just read about it. In short: The following tables list the computational complexity of various algorithms for common mathematical operations. Here, complexity refers to the time complexity of performing computations on a multitape Turing machine.

Computational complexity of mathematical operations — main illustration
Computational complexity of mathematical operations — illustration

Key takeaways

  • Computational complexity of mathematical operations 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 Computational complexity of mathematical operations to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Computational complexity of mathematical operations from memory before moving on to harder problems.

Reference excerpt

The following tables list the computational complexity of various algorithms for common mathematical operations. Here, complexity refers to the time complexity of performing computations on a multitape Turing machine. See big O notation for an explanation of the notation used. Note: Due to the variety of multiplication algorithms, M(n) below stands in for the complexity of the chosen multiplication algorithm.

Arithmetic functions This table lists the complexity of mathematical operations on integers.

On stronger computational models, specifically a pointer machine and consequently also a unit-cost random-access machine it is possible to multiply two n-bit numbers in time O(n).

Algebraic functions Here we consider operations over polynomials and n denotes their degree; for the coefficients we use a unit-cost model, ignoring the number of bits in a number. In practice this means that we assume them to be machine integers. For this section M(n) indicates the time needed for multiplying two polynomials of degree at most n.

Special functions Many of the methods in this section are given in Borwein & Borwein.

Elementary functions The elementary functions are constructed by composing arithmetic operations, the exponential function (exp), the natural logarithm (log), trigonometric functions (sin⁡,cos), and their inverses. The complexity of an elementary function is equivalent to that of its inverse, since all elementary functions are analytic and hence invertible by means of Newton's method. In particular, if either exp or log in the complex domain can be computed with some complexity, then that complexity is attainable for all other elementary functions. Below, the size n refers to the number of digits of precision at which the function is to be evaluated.

It is not known whether O(M(n)log⁡n) is the optimal complexity for elementary functions. The best known lower bound is the trivial bound Ω(M(n)).

Non-elementary functions

Mathematical constants This table gives the complexity of computing approximations to the given constants to n correct digits.

Number theory Algorithms for number theoretical calculations are studied in computational number theory.

Matrix algebra

The following complexity figures assume that arithmetic with individual elements has complexity O(1), as is the case with fixed-precision floating-point arithmetic or operations on a finite field.

In 2005, Henry Cohn, Robert Kleinberg, Balázs Szegedy, and Chris Umans showed that either of two different conjectures would imply that the exponent of matrix multiplication is 2.

Transforms Algorithms for computing transforms of functions (particularly integral transforms) are widely used in all areas of mathematics, particularly analysis and signal processing.

Notes

References

Further reading

Illustrations

Computational complexity of mathematical operations: Graphs of functions commonly used in the analysis of algorithms, showing the number of operations N versus input size n for each function
Graphs of functions commonly used in the analysis of algorithms, showing the number of operations N versus input size n for each function

Worked examples

Example 1 — a first encounter with Computational complexity of mathematical operations

Start with the simplest possible case. Write down what Computational complexity of mathematical operations 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 Computational complexity of mathematical operations 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 Computational complexity of mathematical operations 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 Computational complexity of mathematical operations

In research
Computational complexity of mathematical operations 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 Computational complexity of mathematical operations 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
Computational complexity of mathematical operations is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computational complexity theory, Computer arithmetic algorithms, Mathematics-related lists, so understanding it makes those chapters shorter.
In everyday life
Look for Computational complexity of mathematical operations 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 “Computational complexity of mathematical operations” →

How to study Computational complexity of mathematical operations in 20 minutes

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

Frequently asked questions

What is Computational complexity of mathematical operations in simple terms?

The following tables list the computational complexity of various algorithms for common mathematical operations. Here, complexity refers to the time complexity of performing computations on a multitape Turing machine.

Why does Computational complexity of mathematical operations 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 Computational complexity of mathematical operations?

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 Computational complexity of mathematical operations.

Tags

  • Computational complexity theory
  • Computer arithmetic algorithms
  • Mathematics-related lists
  • Number theoretic algorithms
  • Unsolved problems in computer science

Keep exploring