Exam 11: Sorting

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

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
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)