Originally posted by zeitghost



Linear O(n^1) [the '1' being unnecessary], quadratic is O(n^2) etc. Quadratic functions quickly become slower to run than linear ones as the size of input grows, because the number of operations grows as the square of n. So if n were 10 say, a O(n) function would take 10 steps to complete, and a quadratic one 100.






Leave a comment: