Algorithm explains how ants create and repair trail networks

Imagine you’re a member of the Cephalotes goniodontus species, an arboreal ant with a Darth Vader-like head that has inspired humans to call you “turtle ants.” You’re moving along a branch of the tangled tree canopy in Jalisco, Mexico, following a scent trail left by other ants from your colony, but you hit an abrupt end where the branch is broken. How do you know where to go?