You searched for: “mnemotaxis
mnemotaxis (noun) (no plural)
A directed response of a moving organism back along their own tracks: In her biology class at school, Mary learned that animals possess a mnemotaxis in that they use their memories for retracing the paths they have already taken.