A merge sort operation runs in:

a. O(log n) time.
b. O(n) time.
c. O(n log n) time.
d. O(n 2 ) time.


c. O(n log n) time.

Computer Science & Information Technology

You might also like to view...

Suppose the unary ! operator is an overloaded member function of class String. For a String object s, which function call is generated by the compiler when it finds the expression !s?

a. s.operator!() b. s.operator!( default_value1, default_value2,…) c. operator!( s ) d. A compiler error results because no arguments are given.

Computer Science & Information Technology

SSID stands for _____.

A. service set identifier B. service system identifier C. system set identifier D. single service identifier

Computer Science & Information Technology

You can help Cherry finish her project faster by expediting. Here are the costs.



If Cherry can keep her expediting expenses to $325 per week, then she would benefit from expediting because she can start a new project earlier than planned. If she goes over the $325 per week limit, it would not be worthwhile.

a. Which three activities cannot be expedited at all because they are at their crash times already?
b. Which two activities cannot be expedited because their expediting cost exceeds the weekly limit?
c. Which two activities are unlikely candidates for expediting because they are not on the critical path?
d. Set up a table and show step-by-step which activities should be expedited to shorten the project time. What is the minimum time the project will take if Cherry expedites the project as much as she can and stays within her limits?
e. Why is Cherry’s limit exceeded if you try to shorten the project by one day more?


Computer Science & Information Technology

When a name such as String takes the place of the type variable during instantiation, it is called a type ____.

A. parameter B. array C. character D. element

Computer Science & Information Technology