A finite set of instructions that, when followed, accomplishes a particular task.

"The sorting algorithm efficiently organizes the data into a particular order."

The basic technique used to get the job done.

"Sorting algorithms arrange data in a particular order within a data structure."