Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

difference between subquadratic and quadratic algorithm [closed]

Tags:

algorithm

I am confused between a sub-quadratic and quadratic algorithm. I know quadratic is when the big O is n square. Then what is a sub-quadratic algorithm?

like image 459
anuj Avatar asked Aug 29 '14 04:08

anuj


1 Answers

Subquadratic designates an algorithm whose complexity is ~o(n^2), using the little-o notation. This means that the complexity grows much slower than n^2. It could be anything from linear to almost quadratic.

like image 57
Etienne Pellegrini Avatar answered Nov 08 '22 13:11

Etienne Pellegrini