~/ learn/ comp-372/ cards/ Summations you will reuse forever
1 of 8

Type the arithmetic-series closed form

Type the arithmetic-series closed form

Answer

sum(k for k in range(1, n+1)) == n*(n+1)//2

Σ_{k=1}^n k = n(n+1)/2 = Θ(n²). This is the worst-case comparison count of insertion sort and shows up constantly.

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/129ad0e3-da30-4b49-b550-05081e83f9a8/flashcard utf-8 LF