Common algorithms

Since computers were created, users have devised programs, many of which have needed to do the same thing. As a result, common algorithms have evolved and been adopted in many programs.

Two algorithms often used are searches and sorts:

  • searches allow a set of data to be examined and for a specific item to be found
  • sorts allow a data set to be sorted into order

Methods of searching include:

  • linear search
  • binary search

Methods of sorting include:

  • bubble sort
  • merge sort
  • insertion sort