The Quicksort algorithm

A) is in O(n) in the worst case
B) is in O(n log n) in the worst case
C) is in O(n log n) in the average case
D) is in O(log n) in the average case


C) is in O(n log n) in the average case

Computer Science & Information Technology

You might also like to view...

The value of the expression 20.0 * (9/5) + 32.0 is

a) 68.0 b) 52.0 c) incorrect expression so there is no value d) 32.0 e) incorrect expression , the / should be %

Computer Science & Information Technology

Which of the following statements is not true about C++ input/output (I/O) features?

a. C++ allows users to specify I/O for their own data types. b. C++ automatically calls the correct I/O operations for standard types. c. C++ has some object-oriented I/O features. d. C++ borrowed its type safe I/O capabilities from C.

Computer Science & Information Technology

An operator to be defined for class use must either be a member of a class or be defined to ____.

A. be a friend function B. be a virtual function C. take at least one class member as an operand D. take no operands

Computer Science & Information Technology

In the algorithm to convert an infix expression to postfix notation, if the operator at the top of the stack has a higher priority than the current operator, _____.

A. it is ignored B. it is popped and placed in the output expression C. it is replaced with the current operator D. the current operator is pushed into the stack

Computer Science & Information Technology