ContentsFoundations to FrontierBezhig

frontier_code/README.md

All lab code. Download this file.

# Frontier labs

Runnable companions to F01 and F19 (Part X of Foundations to Frontier). Python 3.13 standard library only.

```sh
cd frontier_code
python -m unittest discover -s tests -p "test_*.py" -v      # reference solutions
python verify_f01.py                                          # numbers used in F01's worked examples
python verify_f19.py                                          # numbers used in F19's worked examples
```

Work the starters yourself, then test them instead of the reference:

```powershell
$env:MANUAL_IMPL = "starters"
python -m unittest discover -s tests -p "test_*.py" -v
Remove-Item Env:MANUAL_IMPL
```

| Lab | File | What you implement |
|---|---|---|
| F01.L1 | `starters/control_lab.py` | `PID.update` with derivative-on-measurement and anti-windup |
| F01.L2 | `starters/control_lab.py` | `bicycle_step`, the kinematic car model |
| F01.L3 | `starters/control_lab.py` | `pure_pursuit_steer` |
| F19.L1 | `starters/perf_lab.py` | `critical_path` |
| F19.L2 | `starters/perf_lab.py` | `list_schedule` (greedy VLIW packing) |
| F19.L3 | `starters/perf_lab.py` | `search_batch_lockstep` (batched tree traversal) |

Run one chapter's tests with `python -m unittest tests.test_frontier -v` (F01) or `python -m unittest tests.test_perf -v` (F19).