Example 35: Zig zag zog



Only the exact distance is computed on this pair. frechet_c_compute is very slow on it: its refinement (frechet_c_approx) keeps growing the two zig-zags, of 15 and 16 vertices. On the machine that built the gallery it took 947 seconds and about 10 GB of memory (single-threaded, measured on 2026-11-28), against under a millisecond for frechet_c_compute_exact (below). The page is kept as a record of the limits of that refinement. The full page, with frechet_c_compute and the morphings, can be built with julia --project=examples examples/webpage/generate_examples.jl full35; this is not recommended (well over half an hour, and more than 10 GB of memory).
Curves# Vertices
P15
Q16

DistanceValueTime (s)
Fréchet, exact (frechet_c_compute_exact)0.42063269853590750.000291
Times are wall-clock seconds of one run, single-threaded, on the machine that built the gallery (after compilation).
2026-11-28 14:16:54