Exam 3: The Efficiency of Algorithms
Exam 1: An Introduction to Computer Science50 Questions
Exam 2: Algorithm Discovery and Design50 Questions
Exam 3: The Efficiency of Algorithms50 Questions
Exam 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates50 Questions
Exam 5: Computer Systems Organization50 Questions
Exam 6: An Introduction to System Software and Virtual Machines50 Questions
Exam 7: Computer Networks, the Internet, and the Worldwide Web50 Questions
Exam 8: Introduction to High-Level Language Programming100 Questions
Exam 9: The Tower of Babel100 Questions
Exam 10: Compilers and Language Translation50 Questions
Exam 11: Models of Computation50 Questions
Exam 12: Simulation and Modeling50 Questions
Exam 13: Electronic Commerce and Information Security50 Questions
Exam 14: Artificial Intelligence50 Questions
Exam 15: Making Decisions About Computers, Information, and Society50 Questions
Select questions type
Q (n) and Q (n2) are ____ in the amount of work they do as n increases.
(Multiple Choice)
4.8/5
(37)
The converging-pointers algorithm is ____ in the best case.
(Multiple Choice)
4.9/5
(33)
With sequential search, the bigger the list of items, the more work that must be done to search it.
(True/False)
4.7/5
(37)
Ease of understanding, elegance, efficiency, and correctness are all characteristics of a good algorithm.
(True/False)
4.8/5
(32)
Binary search uses significantly more space than sequential search.
(True/False)
4.9/5
(41)
If an Q (n2) algorithm and an Q (n) algorithm exist for the same task, then for large enough n, the Q (n2) algorithm does more work and takes longer to execute, regardless of the constant factors for peripheral work.
(True/False)
4.8/5
(32)
Given a sorted list, the sequential search algorithm is more efficient than the binary search.
(True/False)
4.8/5
(34)
The ____ case of an algorithm requires the minimum amount of work.
(Multiple Choice)
4.8/5
(39)
In the sequential search algorithm, the worst case occurs when the value being searched for is the ____ value in the list.
(Multiple Choice)
4.9/5
(34)
Why would an exponential algorithm be useless with a large input, n?
(Multiple Choice)
4.9/5
(35)
The process of timing an algorithm using the same machine but searching for different items is called ____.
(Multiple Choice)
4.9/5
(40)
The number of times a number n can be divided by 2 and not go below 1 is called the logarithm of n to the base 3.
(True/False)
4.7/5
(42)
Anything that varies as a constant times n is said to be of order of magnitude n.
(True/False)
4.9/5
(37)
The time an algorithm takes on a particular machine is important for comparing two algorithms that do the same task.
(True/False)
4.8/5
(40)
The ____ sort algorithm performs the task of sorting a list by growing a sorted subsection of the list from the back to the front.
(Multiple Choice)
4.8/5
(37)
An algorithm with order of magnitude Q (n2) grows at the ____ of the rate of the problem size n.
(Multiple Choice)
4.8/5
(27)
Showing 21 - 40 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)