In the average case of quicksort, the number of key comparisons is ____.

A. O(n)
B. 1.39nlog2n + O(n)
C. 2.39logn + O(n)
D. 1.39nlog2n + O(2n)


Answer: B

Computer Science & Information Technology

You might also like to view...

Which of the following statements about Java Class Libraries is false:

a. Java class libraries consist of classes that consist of methods that perform tasks. b. Java class libraries are also known as Java APIs (Application Programming Interfaces). c. An advantage of using Java class libraries is saving the effort of designing, developing and testing new classes. d. Java class libraries are not portable

Computer Science & Information Technology

Which of the following types of variables can only hold a single item of data?

(A) two-dimensional arrays (B) simple variables (C) single-subscripted variables (D) double-subscripted variables

Computer Science & Information Technology

Windows ________ allows anyone who has an appropriate ID to save files online for free

Fill in the blank(s) with correct word

Computer Science & Information Technology

SSL supports firewall-based ____.

A. IP forwarding B. encryption C. VPN D. application proxy

Computer Science & Information Technology