I Polynomial vs. Exponential time

  • Thread starter Thread starter senmeis
  • Start date Start date
  • Tags Tags
    Complexity
senmeis
Messages
73
Reaction score
2
Hi,

How much time difference can be expected between polynomial and exponential time?
 
Mathematics news on Phys.org
I don't know how "time" is related to this, but as ##x## gets large, a polynomial in ##x## grows proportional to the highest power of ##x## in the polynomial. An exponential function of ##x## grows much faster. There is no limit to the how large the difference can get.
If ##time_{poly}## is a polynomial function of ##x## and ##time_{exp}## is an exponential function of ##x##, there is no limit to the difference.
 
Guessing OP is referring to solving times, like sorting algorithms.

Algorithms with polynomial run times proceed at a manageable rate, whereas algorithms with exponential run times often double their run times with each additional element, rapidly becoming unmanageable.
 
Last edited:
senmeis said:
Hi,

How much time difference can be expected between polynomial and exponential time?
This is only relevant for large input lengths. An example. Strassen's matrix multiplication has brought the number of multiplications, which were time-consuming in relation to additions, from ##n^3## to ##n^{2.8}##. I've heard rumors that this was enough to implement the algorithm in airplane software. And this was only a polynomial improvement.

If you look at NP complete problems like the travelling salesman problem, which has many real-world applications like staffing in industries such as airlines, hospitals, or logistics, where a large number of persons and regulations have to be juggled, you get a tremendous benefit between polynomial and exponential.

##100^5=10^{10}## but ##e^{100}\sim 10^{43}=1000\cdot 10^{10}\cdot 10^{10}\cdot 10^{10}\cdot 10^{10}.## So even ##n=100## can vary between doable and hopeless.
 
Last edited:

Similar threads

Replies
7
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 10 ·
Replies
10
Views
2K
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K