Quidest?

Polynomial VS Exponential time

· Lorenzo Drumond

Broadly speaking, algorithms can be classified into two categories:

There is also factorial time, but let’s lump it in together with exponential.

An algorithm runs in “Polynomial time” if its runtime does not grow faster than n^k, where k is any constant and n is the size of the input.

To put it simply, polynomial time algorithms can be useful. Exponential time algorithms are almost always too slow to ever be practical.

References

Next -> p-algorithms

#computer_science #algorithm #notation #programming #boot_dev #big_o