Seneca

Search Algorithms

Computer Science: KS3, topic 1.2.8

Search Algorithms

Searching is a classic computer science problem. Searching involves finding a certain value in a set of other values.

Search algorithms

Search algorithms

  • A search algorithm is a set of instructions for finding a specific item of data within a data set.
  • Computer systems can store and process billions of pieces of data.
  • So it is vital that computers can find the information they need efficiently.
Effective searching

Effective searching

  • An effective search will always find the solution.
  • Otherwise, the search will determine that the target data is not present.
Efficient searching

Efficient searching

  • An efficient search will find the solution quickly.
  • The solution's location within the data set makes no difference.
Examples of search algorithms

Examples of search algorithms

  • Two common search algorithms are:
  • Linear search.
  • Binary search.

Test yourself on Search Algorithms

  • What is an efficient search?

  • Pick the sentence that is true.

  • A quiz program's search always shows if an answer is present or missing. It takes a long time to check answers near the end of a list. What does this show about the search?

Practise this topic for free