Exam 11: Sorting
Exam 1: P A C++ Primer25 Questions
Exam 2: Introduction to Software Design24 Questions
Exam 3: Program Correctness and Efficiency25 Questions
Exam 4: Inheritance and Class Hierarchies25 Questions
Exam 5: Sequential Containers25 Questions
Exam 6: Stacks24 Questions
Exam 7: Queues and Deques25 Questions
Exam 8: Recursion25 Questions
Exam 9: Trees25 Questions
Exam 10: Sets and Maps25 Questions
Exam 11: Sorting25 Questions
Exam 12: Self-Balancing Search Trees25 Questions
Exam 13: Graphs25 Questions
Exam 14: Advanced C++ Topics, and Overview of UML25 Questions
Select questions type
It is known that Shell sort is O(n2) if successive powers of __________ are used for the gap value.
(Short Answer)
4.8/5
(31)
If the array bubble sort is applied to a sorted array, the number of exchanges is O(__________).
(Multiple Choice)
4.9/5
(28)
A shift in an insertion sort requires the movement of only one item, whereas in a bubble sort or a selection sort an exchange involves a temporary item and requires the movement of __________ items.
(Short Answer)
4.8/5
(40)
Whenever a recursive function is called, a copy of the local variables is saved on the run-time __________.
(Short Answer)
4.9/5
(32)
A variation on insertion sort, known as Shell sort, has O(__________) or better performance.
(Multiple Choice)
4.7/5
(32)
Showing 21 - 25 of 25
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)