Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is Linear Search?
Think about how you would look through a stack of papers.
What condition must be met to use Binary Search?
Recall the steps of Binary Search.
What is the time complexity of a Linear Search?
Think about how it processes elements one by one.
True or False: Binary Search can be used on unsorted lists.
Consider the requirement for 'dividing in half'.
Given a list of 10,000 sorted integers, determine how many comparisons are needed to find a target using Binary Search.
Think about how binary search divides the data.
Create a program to implement both Linear Search and Binary Search and compare their efficiency using large datasets.
Use a timing function available in your programming language for the comparison.
6 more questions in this section. Enroll free to practise them all.
Enroll free