0
0
Intro to Computingfundamentals~5 mins

Search and find operations in Intro to Computing - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a search operation in computing?
A search operation is the process of looking through data to find a specific item or value. It is like looking for a book in a library by checking each shelf until you find the right one.
Click to reveal answer
intermediate
Explain the difference between linear search and binary search.
Linear search checks each item one by one until it finds the target. Binary search works on sorted data by repeatedly dividing the search area in half, quickly narrowing down where the target is.
Click to reveal answer
beginner
What is the main requirement for using binary search?
The data must be sorted in order (like numbers from smallest to largest) before you can use binary search.
Click to reveal answer
intermediate
Why is binary search faster than linear search on large data sets?
Because binary search cuts the search area in half each time, it finds the item much faster than checking every item one by one like linear search.
Click to reveal answer
beginner
What does a find operation return if the item is not found?
It usually returns a special value like -1 or 'not found' to show the item is not in the data.
Click to reveal answer
Which search method checks each item one by one?
ABinary search
BHash search
CLinear search
DQuick search
What must be true about data to use binary search?
AData must be in a list
BData must be random
CData must be encrypted
DData must be sorted
If a search does not find the item, what is a common result?
A0
B-1 or 'not found'
CThe first item
DAn error message
Which search is generally faster on large sorted lists?
ABinary search
BLinear search
CRandom search
DSequential search
What is the first step in a linear search?
ACheck the first item
BDivide the list in half
CSort the list
DJump to the middle item
Describe how linear search works using a real-life example.
Think about searching through a pile of papers for a specific note.
You got /3 concepts.
    Explain why binary search is more efficient than linear search on sorted data.
    Imagine looking for a word in a dictionary.
    You got /4 concepts.