An algorithm is said to be solvable in polynomial time if the number of steps required to complete the algorithm for a given input is O(n^k) for some nonnegative integer k, where n is the complexity of the input. Polynomial-time algorithms are said to be "fast." Most familiar mathematical operations such as addition, subtraction, multiplication, and division, as well as computing square roots, powers, and logarithms, can be performed in polynomial time. Computing the digits of most interesting mathematical constants, including
and
, can also be done in polynomial time.
本文详细解释了何为多项式时间算法,这类算法对于给定输入的完成步骤数量为输入复杂性的某次幂,被视为高效算法。文章进一步指出常见的数学运算如加减乘除等均可在多项式时间内完成。
525

被折叠的 条评论
为什么被折叠?



