Let F be an algorithm with complexity function f(n) ,and let G be an algorithm with complexity function g(n) .If there exists a positive constant K such that the ratio f(n) /g(n) is less or equal to K for all n greater or equal to 1,then
A) the two algorithms are asymptotically equivalent
B) the algorithm F is asymptotically no worse than G
C) the algorithm F is asymptotically no better than G
D) Nothing intelligent can be said about the relative performance of the two algorithms.
Correct Answer:
Verified
Q36: Linear time is the class of all
Q37: If lower is the first subscript in
Q38: A contiguous segment of an array is
Q39: Suppose that we are searching for an
Q40: The best method for searching an array
Q41: Binary Search is in the complexity class
A)
Q42: Sequential Search is in the complexity class
A)
Q43: For a computational problem,the input size
A) is
Q45: The worst case complexity function f(n)of an
Q46: The worst case complexity function is a
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