Chapter 07 of 22 Part 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-p01 Foundational · ~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

  1. Compute exact Euclidean distance sqrt((x - xi)^2 + (y - yi)^2) for a grid of fictional points.
  2. Mark points where |dist - measured| <= deltaD as plausible.
  3. Compare plausible region area at Δd = 0.2 km vs. Δd = 1.5 km.
  4. 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?

Project 2 of 3 · v1-c07-p02 Intermediate · ~30 min

Three-Tower Fictional Grid Trilateration

Lab activity: 2. Explore an imaginary grid · Related code: block-02.js · Pioneer: View profile

Real-World Problem: When three towers observe timing/signal ranges, their uncertainty rings overlap in a smaller region.
Scientific Question: Why do collinear towers produce much larger location uncertainty than towers arranged in a triangle?

Objective: Intersect three fictional tower rings on a 2D grid and compare good vs. poor tower geometry (dilution of precision).

Hypothesis to Test: Three towers in a straight line leave a mirror-image ambiguity across the line.

Step-by-Step Implementation

  1. Evaluate every cell on a 20×20 fictional grid against three tower distance constraints.
  2. Count cells satisfying all three ranges simultaneously.
  3. Move the third tower onto the line joining the first two and observe the doubled/stretched zone.
  4. Inject a 2 km multipath bias on one tower and observe empty intersection.
Concrete Input: Triangular towers (0,0), (10,0), (5,9) vs. collinear towers (0,0), (5,0), (10,0).
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?

Project 3 of 3 · v1-c07-p03 Intermediate · ~25 min

Fictional Location-Evidence Critical Audit

Lab activity: 3. Inspect fictional evidence · Related code: block-03.js · Pioneer: View profile

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

  1. Parse the fictional timestamped tower log in Activity 3.
  2. Compute implied speed between consecutive tower coordinates.
  3. Flag implausible speeds as radio-handoff artifacts rather than physical motion.
  4. 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?