Efficiency of algorithms (Edexcel GCSE Computer Science): Flashcards

📚Flashcards
Efficiency of algorithms
Sign up to keep revising.Create a free account to study more flashcards and track your progress.

Practise the cards

15 cards from this deck

Show

Factors affecting algorithm efficiency

Type of data, whether sorted, time available, and usage frequency

How linear search works

Checks each item one by one from start to end

When to use linear search

Unsorted list, short list, or won't search often

Linear search best case scenario

Item is the very first one in the list

Linear search worst case scenario

Item is last in list or not there at all

Binary search critical requirement

List must already be sorted

How binary search eliminates data

Divides list in half each time

When to use binary search

Long list, searched frequently, already sorted

How bubble sort works

Compares adjacent items, swaps if wrong order

When to use bubble sort

Small list, simple programming, memory limitations

Bubble sort best case scenario

List is already sorted

Merge sort approach type

Divide and conquer

When to use merge sort

Long lists, consistent performance, extra memory OK

Algorithms that handle long lists well

Binary search and merge sort

Algorithms using minimal extra memory

Linear search and bubble sort

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

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