3540quiz3.sp07 - COP 3540 Spring 2007 Quiz 3 – Simple...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: COP 3540 Spring 2007 Quiz 3 – Simple Sorting Name: ________________________ Directions: Put the letter of your choice over the dotted lines accompanying each question’s number. For True / False, put T or F over the dotted lines accompanying each question’s number. Fill-in: obvious. 1……… In comparing these ‘slower’ sorts with each other two features that contribute toward the lack of speed in the sort are: a. comparisons and copies b. comparisons and swaps c. swaps and copies d. comparisons and copies 2…….. All the sorts discuss in this chapter are _______ sorts. a. O(n) b. O(logn) c. O(log 2 n) d. O(n 2 ) 3...... (True, False) The fastest of the sort types listed in the previous question will always be O(log 2 n). 4…..Of the sorts discussed in this chapter, that sort that will likely have the largest number of swaps is the: a. bubble sort b. selection sort c. insertion sort d. quick sort....
View Full Document

This note was uploaded on 10/04/2011 for the course COP 3540 taught by Professor Bobroggio during the Fall '11 term at University of South Florida.

Page1 / 2

3540quiz3.sp07 - COP 3540 Spring 2007 Quiz 3 – Simple...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online