Displacement is the shortest distance between the initial and final positions of the object.
Displacement is the shortest distance between two points. In the above case, to travel from A to C, a person can travel through the straight line joining the two points i.e. through F or he can travel through AEC or can chose the path ABDC. But the shortest distance will be the path through F.
AFC is the displacement in this case.