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
Q28: A search for an item X in
Q29: The method int getPosition(int array[],int X)is designed
Q30: Let F be an algorithm with complexity
Q31: The two criteria most often used to
Q32: If an array is known to be
Q34: Let F be an algorithm with complexity
Q35: If an algorithm with an input size
Q36: Linear time is the class of all
Q37: If lower is the first subscript in
Q38: A contiguous segment of an array is
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents