Tide Max Flow: Benchmark Report

Solvers: Tide Standard (Rust), Tide Adaptive (Rust), Google OR-Tools (C++ push-relabel), HPF (C, Hochbaum Pseudoflow).
Graph pool: 97 DIMACS graphs across 11 families: layered, grid, chains, bipartite, random, washington, vision2d, vision3d, rfim2d, rfim3d, and Waterloo vision benchmarks. Graphs range from 10 edges to 210M edges.
Hardware: Apple Silicon, single-threaded, --release builds. All phases ran sequentially (no CPU contention).
Timing: Tide: internal Instant (min of 3 runs for adaptive, 1 run for standard). OR-Tools/HPF: perf_counter (min of 3 runs).
Correctness: All max flow values match exactly across all solvers on all 97 graphs.

1. Summary

Tide is a push-relabel variant that operates in global tides: each tide performs a full BFS to compute exact distance labels, then a forward push sweep followed by a backward pull sweep. Structured graphs (layered, grid, chains) converge in 2–5 tides. Dense or vision-style graphs require 20–400+ tides.

2. Standard vs Adaptive Tide

Adaptive mode runs 5 standard BFS tides, then switches to local relabeling (skipping full BFS) until flow stalls. This helps on graphs that need many tides (bipartite, random, washington) but hurts on vision/RFIM graphs where local relabeling generates extra steps without reducing BFS cost.

2.1 By Family

Adaptive is faster on combinatorial graphs: bipartite 2x, random 1.7x, washington 2.5x faster.
Standard is faster on vision/RFIM graphs: adaptive inflates step count 2–7x on vision and RFIM families, making it 1.4–1.9x slower. For these graphs, use standard mode.

2.2 All Graphs: Adaptive vs Standard

3. Tide vs OR-Tools (C++ Push-Relabel)

OR-Tools uses a highest-label push-relabel implementation in C++ with pybind11 bindings. We compare Tide Standard on all 97 graphs (including graphs >1 GB that exceed OR-Tools' file size limit).

3.1 By Family

3.2 Head-to-Head: All Graphs

3.3 Scaling: Large Graphs

4. Tide vs HPF (Pseudoflow)

HPF (Hochbaum Pseudoflow, lowest-label FIFO) is the best-performing serial max-flow algorithm on vision graphs per Jensen et al. (2022 TPAMI). It solves the minimum cut via pseudoflows without computing explicit flows. We compare Tide Standard against HPF.

4.1 By Family

4.2 Head-to-Head: All Graphs

5. Tide Count as Performance Predictor

Tide count predicts everything. Graphs that converge in ≤5 tides are Tide's sweet spot: 10–100x faster than HPF, competitive with OR-Tools. Graphs requiring >30 tides are where OR-Tools and HPF win. The crossover is sharp and predictable from graph structure.

6. Full Results Table

GraphFamilyVEFlow Standard (ms)Adaptive (ms)OR-Tools (ms)HPF (ms) Std/ORTStd/HPFStd StepsAdp Steps

7. Conclusions

1. Tide dominates on structured graphs.
2. OR-Tools and HPF win on vision and physics graphs.
3. Tide count is the universal predictor.
4. Adaptive mode is not universally better.
5. Tide is a strong general-purpose max-flow algorithm.

8. Methodology