\Theta (n^2): quadratic (inputs up to 10 thousand) [00LE]
Examples of things that are \Theta (n^2):
- Two nested loops (often, but not necessarily)
- 1 + 2 + 3 + \dots + n = \frac {n(n+1)}{2} = \Theta (n^2)
- The number of pairs of items chosen out of n, \binom {n}{2} = \frac {n(n-1)}{2}.
- Repeatedly appending n characters to a string one by one
- Insertion sort, bubble sort