What is an algorithm? Simply put, it is a set of instructions for completing a task. This includes everything from the simplest tasks like sorting your sock drawer to more complicated ones like finding the shortest route between two points on a map. Data structures are just some of the…