Sorting and Searching Algorithms (AQA GCSE Computer Science): Flashcards

📚Flashcards
Linear Search
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

12 cards from this deck

Show

Searching algorithm definition

Instructions to find specific info in a list of data

Simplest searching algorithm

Linear search

Alternative name for linear search

Sequential search

Linear search starting point

Beginning of the list

How linear search checks items

One by one in order from start to finish

When linear search finds target

Stops immediately

Linear search reaches end, no match

Item is not in the list

Linear search data requirement

None - works on sorted and unsorted lists

Linear search advantage

Simple to understand and easy to program

Linear search disadvantage

Slow and inefficient for large datasets

Linear search worst-case

Item at end or not in list

Linear search time complexity

O(n)O(n) - may check every item

Explore AQA GCSE Computer Science Revision Notes by Topics

Explore AQA GCSE Computer Science Model Answers by Topics

Explore AQA GCSE Computer Science Quizzes by Topics

Explore AQA GCSE Computer Science Exam Questions by Topics

Join 100,000+ GCSE students studying Flashcards with us.

Select your subjects, and get access to A+ resources today.