View image An algorithm is the sequence of steps needed to perform a particular task.