Further algorithms - EdexcelStandard algorithms

Programs must run correctly or they are of little value. The careful planning and testing of a program is essential, as is writing code which assists future updating.

Part ofComputer SciencePrinciples of computer science

Standard algorithms

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

Two types of algorithm that are often used are searches and sorts. Searches enable a set to be examined and a specific item to be found. Sorts enable a data set to be sorted into order.

Standard searching algorithms include:

  • linear search
  • binary search

Standard sorting algorithms include:

  • bubble sort
  • merge sort