BarrierBreak

Behind the map

How BarrierBreak works under the hood

Everything you see on the map comes from four small algorithms running on the same set of streets. If you wanted to, you could check any number here by hand.

Two ways to look at the same map

A broken curb ramp can be judged two ways. A prioritization list built from only one of them will keep missing the other.

The barrier itself

How bad is it, how many people walk past it, is it near a school. Cities already work this way, and it is a reasonable way to work. Its blind spot is that it ranks one barrier at a time.

The route it sits on

What this repair does to the walk. Some of them change almost nothing alone and open a whole trip the moment they sit next to one other repair. That only shows up when you look at the street network as a whole.

Both views are in the app because both are needed. Connect One Trip follows a single walk and names everything standing in its way. The Planner runs the other direction: you choose repairs, and it shows what they do to the rest of the map. The example below is a pair the first view would have thrown away — two barriers worth nothing on their own but the best when put together.

Terminology

Before any formulas, here is what each term means. They are just short names for things you can point at on the map.

Network
The map reduced to two lists: the places people want to get to, and the walking routes that connect them.
Point
A spot on the map — a corner, a front door, a school gate. Every point has real coordinates.
Link
One stretch of walking route between two points.
Blocked link
A stretch people can't walk safely. Each one names the repair that would open it.
Households
How many homes sit at a point. We made these numbers up for the demo, but they never change once set.
Origin demand
How many households live at a starting point. The formula calls it that because the walk originates there. It is the same households number from the table, doing the work of a weight.
Reachable
You can walk there without stepping onto a blocked stretch. One blocked link is enough to close a whole route.
Connection
One household reaching one place. A neighborhood of 286 homes that can get to 2 places is worth 572 connections.
Score
All the city's connections added together. It's the number the app is trying to push up.
Baseline
The score before anything is repaired. Every gain is measured from here.
Gain
How much the score goes up after a repair. Score after, minus score before.
Synergy
What two repairs accomplish together, minus what each one accomplishes alone. If it's positive, the pair is worth more than its parts.
Cost
What a repair would run in dollars. It sits next to the gain so the trade-off is hard to miss.

Example of how to score connections for a scenario

Take Redmond the way the demo has it. Nothing is fixed yet, so each neighborhood can only get to two or three of the seven places on the map. For each one, multiply its homes by the number of places it can reach. Add those up and you have the city score.

The Redmond demo map with the two Meadow Park repairs selected. The link into Meadow Park has turned green; every other blocked stretch is still red.
The demo map with the two Meadow Park repairs selected. The green stretch is the path they open into the park; the red dashes are everything still blocked.
NeighborhoodHouseholdsPlaces nowConnectionsAfter both repairs
South Education Hill — 172nd Ave NE at NE 116th St2862572858
180th Ave NE at NE 104th St1683504504
Meadow Park neighborhood — 166th Ave NE2042408612
Juel Park edge — 176th Ave NE1422284426
Education Hill north — 162nd Ave NE1763528528
NE 104th St at 166th Ave NE2143642642
City score1,190—2,9383,570

The last column changes for three neighborhoods only, and only because of one pair of repairs: the sidewalk gap on the Meadow Park connector and the bad path grade at its entry. Fix one of them and you arrive at a stretch of path that still ends at the other gap. Fix the other alone and you cannot get there in the first place.

Meadow Park homesgap Aa short stretch of pathgap BMeadow Park
286 + 204 + 142 = 632 new connections 3,570 − 2,938 = 632 gain
both repairs together
632
sidewalk gap alone
− 0
path grade alone
− 0
synergy
632

Each of those three neighborhoods gains exactly one place — Meadow Park — so their households simply add up. Neither repair does anything on its own, so both gains are zero, and the synergy is the entire 632. That is the point of this whole project: rank barriers by what each one does alone and these two sit at the bottom of the list, worth nothing. Rank them by what they do together and they are the best $88,000 on the map.

Graph model

The shorthand below is just those two lists and that one multiplication written compactly.

Node

A point on the map — an intersection, a home, or a destination. Each one has real coordinates, and homes can carry a number of households.

Edge

A walking link between two points. It is either accessible or blocked, and a blocked one names the repair that would fix it.

Repair

What it would take to fix a barrier: cost, severity, how many people walk through, and whether a public facility is nearby.

G = (V, E)
F(S) = Σ origin demand × reachable destination count
Synergy(A,B) = Gain(A,B) − Gain(A) − Gain(B)

G = (V, E) — a graph is just two lists: points and links. V is the points (every intersection, home, and destination on the map) and E is the links (the walking routes between them).

F(S) — the score. Pick any set of repairs S. For every starting point, count which destinations you can reach on foot, multiply by its origin demand — the number of households living there — and add it all up. A bigger score means more trips became possible. That is the table above.

Synergy(A, B) — what A and B are worth together, minus what each is worth alone. If the answer is positive, the two repairs only pay off as a team, and neither one would have been funded on its own. That is the 632 above.

Algorithms used

01

BFS reachability

Breadth-first search from each origin node: expand outward link by link through every passable connection and record which destination nodes are reachable.

Linear in the size of the network — every node and link is touched at most once per origin.

02

Single-repair impact

Re-run the traversal with one barrier marked passable, then take the difference between the two reachable sets to get the new connections.

One extra traversal per barrier, so the total work grows in a straight line with the number of barriers.

03

Pair dependency

Run the traversal for every two-barrier combination, then subtract the two single-repair gains; whatever is left over is the synergy.

One traversal per pair — 210 pairs across 21 barriers — so the work grows quadratically with the number of barriers.

04

Least-cost journey

Dijkstra’s shortest path over the same network, where each blocked link carries the cost of the repair that would open it. The cheapest route to a chosen destination is also the least expensive way to make that trip possible.

A priority queue settles each node once, so it costs a little more than a plain traversal — a logarithmic factor per step.

What is real

The streets and destinations are real places around Sammamish and Redmond with real coordinates. The walking routes came from Google once and were saved into the app, so every demonstration shows the same thing and the app never has to ask Google for directions while it runs.

What is invented

The barriers themselves — their condition, cost, and how many households we say live nearby — are invented to show how the idea works. A real version would swap these for an actual sidewalk and curb ramp inventory.

If this were real

To use this for real, we would start with a reviewed inventory of sidewalks and curb ramps, then sit down with planners and disability advocates to agree on what counts as demand and which destinations matter. After the costs are checked, the next step is small: see whether these two views actually make prioritization conversations better.

The math stops at a ranking. It does not know what a maintenance calendar looks like, which crews are free in the fall, or what a neighborhood has been asking for at meetings. Those go into the decision, and they belong to a person.