大象传媒

Sorting, searching and validation - EduqasCommon algorithms

Sorting and searching are two of the most frequently needed tasks in program design. Common algorithms have evolved to take account of this need, such as linear search, binary search, bubble sort and merge sort.

Part of Computer ScienceUnderstanding Computer Science

Common algorithms

Since computers were created, users have devised . Many of these, in part, need to do the same thing. As a result, common have evolved and been adopted in many programs.

Two algorithms often used are sorts and searches:

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

Methods of sorting include:

Methods of searching include: