Given the fact that a selection sort of n items requires n2/2 + 5 * n/2 – 3 major operations, the selection sort is ______.

a) O(n)
b) O(1)
c) O(n2)
d) O(n2/2)

c.

Computer Science & Information Technology

You might also like to view...

A file marked as final becomes a read-only file

Indicate whether the statement is true or false

Computer Science & Information Technology

The first command causes echo to display the characters c, a, and t on the screen. The second command uses cat to copy the contents of a file named echo to the screen. If there is no file named echo, cat displays an error message.

What will be an ideal response?

Computer Science & Information Technology