You know how a small boat navigates through rough waters by adjusting its sails and finding the most effective route?…