Multiple Choice
Let F be an algorithm with complexity function f(n) ,and let G be an algorithm with complexity function g(n) .If the ratio f(n) /g(n) converges to 2 as n increases to infinity,then
A) the two algorithms are equivalent in efficiency and there is no clear winner
B) implementations of F will require twice as much time as implementations of G
C) we can deduce that F runs in linear time while G runs in quadratic time
D) implementations of F will require twice as much space as implementations of G
Correct Answer:

Verified
Correct Answer:
Verified
Q30: A search for an item X in
Q31: The addition of two integers<br>A) is always
Q32: Let F be an algorithm with complexity
Q33: An array of 4 elements is being
Q34: The Quicksort algorithm works by<br>A) repeatedly comparing
Q36: The Quicksort algorithm<br>A) is in O(n)in the
Q37: If a[ ] is an array of
Q38: A basic step is<br>A) an operation that
Q39: If an algorithm with an input size
Q40: The role of the partition(array,start,end)method in Quicksort<br>A)