I read about the principle of least time. However, I think, for light to follow this principle, light would have to remember its past path before deciding where to go for its future path. Why I think that:
Suppose I shine a torch in the air medium, directed toward the water medium. I shine it at point A. It hits the surface of the water at point B. Here's light deciding where to go next from B while following the principle of least time:
For simplicity, let's consider two choices for the next point to visit (two nearby points to B):
- Point C- Light thinks: "If I go to C, I'd have traveled the path A-B-C overall. But there was a shorter path to C : (say) A-D-C. So I should have traveled through A-D-C all along if I wanted to go to C. Since, I journeyed through AB instead of AD, the point C is out of option now"
So light rejects C as its future point.
- Point E- Light thinks- "If I got to E from here, I'd have traveled along A-B-E overall. Since, there's no shorter path from A to E, so I can go to E"
Obviously, light can't think but I had to add that to make my argument clear. So all this requires light remembering that it traveled through AB before deciding where to go next from B. Is this true that light remembers its past path while deciding its future path?
To be clear, light can neither think nor decide, but do the physical laws governing propagation of light take light's past into account?
EDIT- That link does not answer my question, because my question is not limited to refraction. We can make the same argument as in my post by picking any point B in the middle of light's journey. The same argument can also be made for 'principle of least action' in mechanics in general.
My question is "Do all these principles of least things rely on remembering the past path to decide the future path?"
Also, is the argument in my post clear? I tried to explain it best by a scenario where light is thinking where to go next.