| name | project-context |
|---|---|
| description | Project context for Baswana-Sen spanner experiments — algorithm goals, structure, parameters, and workflow. Use when implementing or modifying spanner code, running experiments, or analyzing results. |
- Implement Baswana-Sen and Greedy spanner algorithms correctly
- Evaluate on Erdős–Rényi G(n,p) graphs across n, p, k
- Measure spanner size, stretch, and runtime
- Produce reproducible CSV results and notebook visualizations
- Custom adjacency lists (not NetworkX) for performance
- Unweighted graphs; BFS for distances
- Largest connected component when G is disconnected
- Deterministic seeds via
set_seed()
See scripts/run_all_experiments.py — typical n ∈ {500,1000,2000}, k ∈ {2,3,4,5}, 5 repetitions.
make install && make test
python scripts/run_all_experiments.py
jupyter labPolicy and constraints: root AGENTS.md.