What this final lecture covers
- Title the lecturer gives the day: "the power of random signs" — one matrix construction reused across four problems
0:03. - The four applications
0:03,1:28:- L2-norm estimation in a stream
- Fast least-squares regression
- Point query
- Dimensionality reduction
- Caveat: all of these are covered in depth in CS 229R, Algorithms for Big Data; this lecture gives a taste and skips most proofs
1:28.
The streaming model (recap from the previous lecture)
- A vector
x ∈ ℝⁿwithnhuge; we want to computef(x)without storingx2:19. xstarts as the zero vector, and updates arrive asxᵢ ← xᵢ + v; queries ask forf(x)2:49.- Last lecture's restriction:
vwas always1(insert-only), andf(x)was the support size ofx— the distinct-elements problem, solved non-trivially under an idealized hash function2:49,3:31. - This lecture's target function:
f(x) = ‖x‖₂². Estimating it to1 ± εgives‖x‖₂to roughly1 ± εby taking a square root3:53. - The algorithm shown is due to Alon–Matias–Szegedy (AMS)
4:21.