Top Qs
Timeline
Chat
Perspective
Computational complexity of mathematical operations
Algorithmic runtime requirements for common math procedures From Wikipedia, the free encyclopedia
Remove ads
Remove ads
The following tables list the computational complexity of various algorithms for common mathematical operations.
This article needs additional citations for verification. (April 2015) |

Here, complexity refers to the time complexity of performing computations on a multitape Turing machine.[1] See big O notation for an explanation of the notation used.
Note: Due to the variety of multiplication algorithms, below stands in for the complexity of the chosen multiplication algorithm.
Remove ads
Arithmetic functions
Summarize
Perspective
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).[6]
Remove ads
Algebraic functions
Summarize
Perspective
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.
Remove ads
Special functions
Summarize
Perspective
Many of the methods in this section are given in Borwein & Borwein.[7]
Elementary functions
The elementary functions are constructed by composing arithmetic operations, the exponential function (), the natural logarithm (), trigonometric functions (), 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 or in the complex domain can be computed with some complexity, then that complexity is attainable for all other elementary functions.
Below, the size refers to the number of digits of precision at which the function is to be evaluated.
It is not known whether is the optimal complexity for elementary functions. The best known lower bound is the trivial bound .
Non-elementary functions
Mathematical constants
This table gives the complexity of computing approximations to the given constants to correct digits.
Remove ads
Number theory
Summarize
Perspective
Algorithms for number theoretical calculations are studied in computational number theory.
Remove ads
Matrix algebra
Summarize
Perspective
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.[34]
Remove ads
Transforms
Algorithms for computing transforms of functions (particularly integral transforms) are widely used in all areas of mathematics, particularly analysis and signal processing.
Remove ads
Notes
- This form of sub-exponential time is valid for all . A more precise form of the complexity can be given as
Remove ads
References
Further reading
Wikiwand - on
Seamless Wikipedia browsing. On steroids.
Remove ads