In optics, Fermat's principle or the principle of least time is the idea that the path taken between two points by a ray of light is the path that can be traversed in the least time.
http://creativecommons.org/licenses/by-sa/3.0/Tap here to know more...