| Component | Weight | Duration | Date & Time | Style |
|---|---|---|---|---|
| Class Participation | 10% | Continuous | Throughout | Open Book |
| Lab Participation | 10% | Weekly | Thu 9–11 AM | Open Book |
| Term Project | 20% | Semester | Throughout | Open Book (Proposal + Presentation + Report) |
| Mid-Semester Exam | 25% | 90 mins | 06/10 | Closed Book |
| Comprehensive Exam | 35% | 180 mins | 04/12 AN | Closed Book |
NC Criterion: 30% of average of top 3 performers or 40% of median, whichever is lower.
How do you compute the area of this shape?
Grid method: Superimpose a fine grid. Count cells inside. Resolution-dependent and tedious.
A faster way — random sampling: 1. Enclose the shape in a bounding box. 2. Throw N darts uniformly at random. 3. Count M that land inside.
\text{Area}(S) \approx \text{Area}(\text{box}) \times \frac{M}{N}
Circle of radius r inscribed in a square of side 2r:
\frac{\text{Area of circle}}{\text{Area of square}} = \frac{\pi r^2}{4r^2} = \frac{\pi}{4}
Throw N darts uniformly, M land inside:
\pi \approx 4 \cdot \frac{M}{N}
Probability Review I: Random Variables & Expectation
Why this matters: expectation and linearity are the engine behind every expected-runtime analysis in Weeks 1–3.
CS G526: Advanced Algorithms & ComplexityTulasimohan Molli