Photo AI

Last Updated Sep 26, 2025

Standard Searching Algorithms Simplified Revision Notes

Revision notes with simplified explanations to understand Standard Searching Algorithms quickly and effectively.

user avatar
user avatar
user avatar
user avatar
user avatar

457+ students studying

Standard Searching Algorithms

Searching algorithms are used to find a specific item in a list. The two main types are Linear Search and Binary Search. Each has different steps, uses, and efficiency depending on the dataset.

Linear Search

  • A linear search examines each item in the list one by one.
  • You start at the first item and check if it's the one you're looking for.
  • If it's not, move to the next item and repeat until you find the item or reach the end of the list.
  • This method works on unsorted lists.

Method

  1. Look at the first item in the list.
  2. If it matches the item you're searching for, stop.
  3. If not, move to the next item.
  4. Repeat this process until the item is found or the end of the list is reached.

Worked Example

infoNote

Given the list: 2, 0, 1, 7, 4, 3, 5, If you're searching for the number 7, you'll check each number (2, 0, 1) until you find it at the fourth position.

Binary Search

  • A binary search is a divide-and-conquer algorithm.
  • It requires the list to be sorted before searching.
  • The list is repeatedly divided in half, which reduces the number of items to search through.

Method

  1. Ensure the list is sorted.
  2. Find the middle item in the list.
  3. If the middle item is what you're looking for, stop.
  4. If the item you're searching for is less than the middle item, search the left half of the list.
  5. If the item you're searching for is greater than the middle item, search the right half of the list.
  6. Repeat the process until the item is found or there are no items left to search.

Worked Example

infoNote

Given the sorted list: 6, 23, 45, 55, 67, 90, 92, 96, 99 If you're searching for 96, start with the middle item (67). Since 96 is greater, you search the right half: 90, 92, 96, 99.

The middle of this half is 92. Since 96 is greater, continue to the right.

The next middle item is 96, which matches your search.

Comparing Linear Search and Binary Search

Linear SearchBinary Search
Can be used on unsorted lists.Requires the list to be sorted first.
Slower for large lists as it checks every item one by one.Faster for large lists, cutting the search area in half each time.
Simple to implement.More efficient, but requires extra steps to sort the list first.
infoNote

Key Points to Remember

  • Linear Search works on both sorted and unsorted lists, but it is less efficient for larger lists.
  • Binary Search requires the list to be sorted, but it is faster for large datasets because it halves the search space with each step.
  • Binary Search is a better option when dealing with large, sorted lists. Linear search is simpler for small or unsorted lists.
Books

Only available for registered users.

Sign up now to view the full note, or log in if you already have an account!

500K+ Students Use These Powerful Tools to Master Standard Searching Algorithms

Enhance your understanding with flashcards, quizzes, and exams—designed to help you grasp key concepts, reinforce learning, and master any topic with confidence!

40 flashcards

Flashcards on Standard Searching Algorithms

Revise key concepts with interactive flashcards.

Try Computer Science Flashcards

4 quizzes

Quizzes on Standard Searching Algorithms

Test your knowledge with fun and engaging quizzes.

Try Computer Science Quizzes

3 questions

Exam questions on Standard Searching Algorithms

Boost your confidence with real exam questions.

Try Computer Science Questions

3 exams created

Exam Builder on Standard Searching Algorithms

Create custom exams across topics for better practice!

Try Computer Science exam builder

13 papers

Past Papers on Standard Searching Algorithms

Practice past papers to reinforce exam experience.

Try Computer Science Past Papers

Other Revision Notes related to Standard Searching Algorithms you should explore

Discover More Revision Notes Related to Standard Searching Algorithms to Deepen Your Understanding and Improve Your Mastery

96%

114 rated

Computational Thinking, Searching & Sorting Algorithms

Principles of Computational Thinking

user avatar
user avatar
user avatar
user avatar
user avatar

484+ studying

197KViews

96%

114 rated

Computational Thinking, Searching & Sorting Algorithms

Standard Sorting Algorithms

user avatar
user avatar
user avatar
user avatar
user avatar

438+ studying

181KViews
Load more notes

Join 500,000+ GCSE students using SimpleStudy...

Join Thousands of GCSE Students Using SimpleStudy to Learn Smarter, Stay Organized, and Boost Their Grades with Confidence!

97% of Students

Report Improved Results

98% of Students

Recommend to friends

500,000+

Students Supported

50 Million+

Questions answered