The difference between sub-quadratic and quadratic algorithm

I am confused between sub-quadratic and quadratic algorithm. I know it is quadratic when big O is equal to n squared. Then what is a subquadratic algorithm?

+4
source share
2 answers

Subquadratic denotes an algorithm whose complexity ~o(n^2), using not-o notation . This means that complexity is growing much slower than n^2. It can be anything from linear to almost quadratic.

+4
source

In unprofessional terms, it is something between linear and quadratic, for example n^2/logn.

+2
source

All Articles