Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Starting out with C++
Quiz 9: Searching, Sorting, Algorithm Analysis
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 1
True/False
When searching for an item in an unordered set of data, binary search can find the item more quickly than linear search.
Question 2
Multiple Choice
A binary search begins by examining the ________ element of an array.
Question 3
Multiple Choice
If a bubble sort is used to arrange the numbers 7 5 3 9 2 6 in ascending order, what order will the data be in after the first pass?
Question 4
Multiple Choice
To find a value that is in an unordered array of 100 items, how many values must linear search examine on average?
Question 5
True/False
Using a linear search, you are more likely to find an item than if you use a binary search.
Question 6
Multiple Choice
The advantage of a linear search is that
Question 7
Multiple Choice
A(n) ________ search is more efficient than a(n) ________ search.
Question 8
True/False
If algorithm A requires 2n + 1 basic operations to process an input of size n, and Algorithm B requires 3n + 2 basic operations to process the same input, algorithm A is considered to be more efficient than Algorithm B.