~/ 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/7fcd80fc-f820-47ce-85a1-c27b9665f9a2/flashcard utf-8 LF