answersLogoWhite

0


Best Answer

Algorithms which have exponential time complexity grow much faster than polynomial algorithms. The difference you are probably looking for happens to be where the variable is in the equation that expresses the run time. Equations that show a polynomial time complexity have variables in the bases of their terms. Examples: n^3 + 2n^2 + 1. Notice n is in the base, NOT the exponent.

In exponential equations, the variable is in the exponent. Examples: 2^n.

As said before, exponential time grows much faster. If n is equal to 1000 (a reasonable input for an algorithm), then notice 1000^3 is 1 billion, and 2^1000 is simply huge!

For a reference, there are about 2^80 hydrogen atoms in the sun, this is much more than 1 billion.

User Avatar

Myrtice Paucek

Lvl 9
1y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is exponential time complexity and polynomial time complexity?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between polynomial and non polynomial time complexity?

Polynomial vs non polynomial time complexity


What is the difference between exponential and polynomial time complexity?

Algorithms which have exponential time complexity grow much faster than polynomial algorithms. The difference you are probably looking for happens to be where the variable is in the equation that expresses the run time. Equations that show a polynomial time complexity have variables in the bases of their terms. Examples: n^3 + 2n^2 + 1. Notice n is in the base, NOT the exponent. In exponential equations, the variable is in the exponent. Examples: 2^n. As said before, exponential time grows much faster. If n is equal to 1000 (a reasonable input for an algorithm), then notice 1000^3 is 1 billion, and 2^1000 is simply huge! For a reference, there are about 2^80 hydrogen atoms in the sun, this is much more than 1 billion.


How do polynomial time vs. exponential time algorithms compare?

An algorithm that completes in "polynomial time" is faster to solve than an algorithm that completes in "exponential time" in most of the important cases where it needs to be solved. An algorithm that completes in "polynomial time" the time to solve is always determinable by a polynomial equation (e.g. x^2, x^4+7*x^3+12*x^2+x+19, x^8392). An algorithm that completes in "exponential time" the time to solve can only be determined an exponential equation (e.g. 2^x, e^x, 10^x, 982301^x). Exponential equations give larger value answers than polynomial equations after a certain input value and then increase progressively faster. This makes "exponential time" algorithms take much longer than "polynomial time" algorithms to solve, often making many of them effectively unsolvable for certain cases. Many of the most important algorithms needed to solve real world problems are "exponential time" algorithms.


Example of fundamental difference between a polynomial function and an exponential function?

fundamental difference between a polynomial function and an exponential function?


Differentiate between polynomial algorithm and exponential algorithm?

Do you mean, "the difference between an algorithm that runs in polynomial time, and one that runs in exponential time".First a real quick review. A polynomial is any equation of the formy = cmxm + ... + c2x2 + c1x + c0 ,where ci are constantsAn exponential function is something of the formy = cxThese functions grow much faster than any polynomial function.So, if T(n) describes the runtime of an algorithm as a function of whatever (# of inputs, size of input, etc.)., and T(n) can be bound above by any polynomic function, then we say that algorithm runs in polynomial time.If it can't be bound above by a polynomial function, but can be bound above by an exponential function, we say it runs in exponential time.Note how ugly an exponential algorithm is. By adding one more input, we roughly double (or triple, whatever c is) the run-time.


What is polynomial complexity?

That means that the running time of a program is proportional to some power of the input size.


Is 1 divided by x exponential?

no it is a polynomial. exponential is a number to the x power (3^x)


What is the different of polynomial and non-polynomial?

Briefly: A polynomial consists only of powers of the variables - ie the variables multiplied by themselves or one another. A non polynomial can include any other function such as trigonometric, exponential, logarithmic etc.


What is the difference between P and NP complexity classes?

P is the class of problems for which there is a deterministic polynomial time algorithm which computes a solution to the problem. NP is the class of problems where there is a nondeterministic algorithm which computes a solution to the problem, but no known deterministic polynomial time solution


Difference between np and np complete?

A problem is 'in NP' if there exists a polynomial time complexity algorithm which runs on a Non-Deterministic Turing Machine that solves it. A problem is 'NP Hard' if all problems in NP can be reduced to it in polynomial time, or equivalently if there is a polynomial-time reduction of any other NP Hard problem to it. A problem is NP Complete if it is both in NP and NP hard.


What are computer problems of class NP?

NP stands for Nondeterministic Polynomial time, and is a class of complexity of problems. A problem is in NP if the computing time needed grows exponentially with the amount of input, but it only takes polynomial time to determine if a given solution is correct or not.It is called nondeterministic because a computer that always automatically chooses the right course of action in each step would come up with a correct solution in polynomial time.


Different types of functions in maths?

Piecewise, linear, exponential, quadratic, Onto, cubic, polynomial and absolute value.