Chapter 07 of 22Part II: Networks and Communication
The Digital Detective
Each project below is tailored to a specific algorithm and scientific question from Chapter 07, with concrete inputs, verifiable numerical outputs, boundary cases, and links to the related lab and pioneer.
Project 1 of 3 · v1-c07-p01Foundational · ~25 min
Tower Distance & Uncertainty Ring Calculator
Lab activity: 1. Measure a distance · Related code: block-01.js · Pioneer: View profile
Real-World Problem: Cell-tower timing advance and signal strength give rough distances, not exact coordinates.
Scientific Question: How does measurement error ±Δd transform a circle into an uncertainty ring (annulus)?
Objective: Compute Euclidean distances on a fictional 2D map and classify candidate points inside/outside uncertainty bands.
Hypothesis to Test: Increasing ±Δd widens the ring area proportionally to 4π · d · Δd.
Step-by-Step Implementation
Compute exact Euclidean distance sqrt((x - xi)^2 + (y - yi)^2) for a grid of fictional points.
Mark points where |dist - measured| <= deltaD as plausible.
Compare plausible region area at Δd = 0.2 km vs. Δd = 1.5 km.
Verify that a single tower can never distinguish directions around the ring.
Concrete Input: Tower at (10, 10), measured distance d = 5.0 km, uncertainty Δd = ±1.0 km; test point (14, 13).
Expected Output: True distance = 5.0 km -> inside plausible ring [4.0, 6.0] km; ring area ≈ 62.8 km².
Test Cases: (14,13) from (10,10) -> dist 5.0; (10,16.5) -> outside [4,6].
Boundary Condition: If measured d < Δd, the ring collapses into a filled disk centered on the tower.
Common Mistake to Avoid: Treating a single cell-tower connection as pinpoint GPS evidence.
Interpreting Results: Every physical measurement carries uncertainty that must be reported honestly alongside the estimate.
Show Hint, Extension Challenge & Reflection
Hint: Review the worked example and equation in Chapter 07 before testing the boundary case: If measured d < Δd, the ring collapses into a filled disk centered on the tower.
Extension Challenge: Add a 120° directional antenna sector filter and measure how much it reduces the plausible area.
Reflection Question: Why can misinterpreting cell-tower precision lead to serious mistakes in real-world investigations?
Expected Output: Triangle -> single tight overlap zone; Collinear -> two symmetric candidate zones.
Test Cases: Consistent triangular ranges -> unique cluster; Conflicting biased range -> 0 exact cells.
Boundary Condition: Multipath building reflections can make measured distances strictly larger than true straight-line distance.
Common Mistake to Avoid: Assuming circles always intersect cleanly at a single point in noisy environments.
Interpreting Results: Geometry (DOP) and multipath propagation govern real-world positioning accuracy.
Show Hint, Extension Challenge & Reflection
Hint: Review the worked example and equation in Chapter 07 before testing the boundary case: Multipath building reflections can make measured distances strictly larger than true straight-line distance.
Extension Challenge: Find the least-squares best-fit grid cell when noisy rings do not overlap cleanly.
Reflection Question: Why do emergency services combine cellular, Wi-Fi, and GPS rather than trusting one sensor?
Real-World Problem: Real phones often connect to a non-nearest tower due to congestion, terrain, or indoor walls.
Scientific Question: What alternative explanations must be ruled out before drawing conclusions from a tower log?
Objective: Audit a fictional sequence of timestamped tower records for impossible speeds, congestion handoffs, and coverage overlap.
Hypothesis to Test: A sudden jump between two towers 2 km apart in 3 seconds can occur from load-balancing handoff without the phone moving.
Step-by-Step Implementation
Parse the fictional timestamped tower log in Activity 3.
Compute implied speed between consecutive tower coordinates.
Flag implausible speeds as radio-handoff artifacts rather than physical motion.
Summarize what the evidence supports vs. what remains uncertain.
Concrete Input: Fictional log: 10:00:00 Tower A -> 10:00:03 Tower B (2 km away) -> 10:00:08 Tower A.
Expected Output: Flagged as overlapping coverage / congestion bounce, not 2,400 km/h travel.
Test Cases: 2 km in 3 s -> implied 667 m/s -> flagged as overlapping cell coverage.
Boundary Condition: Missing timestamps or unsorted log entries must be handled cleanly.
Common Mistake to Avoid: Equating tower coordinates with exact phone coordinates.
Interpreting Results: Scientific reasoning separates what data actually proves from unsupported assumptions.
Show Hint, Extension Challenge & Reflection
Hint: Review the worked example and equation in Chapter 07 before testing the boundary case: Missing timestamps or unsorted log entries must be handled cleanly.
Extension Challenge: Write a timeline validator that computes both minimum and maximum plausible travel distances using sector radii.
Reflection Question: What ethical responsibilities do engineers have when building location-logging systems?