Question: Time complexity for binary search is equal to a ) ( n l o g n ) b ) ( l o g n )

Time complexity for binary search is equal to
a)(nlogn)
b)(logn)
c)(n)
d)(n2)
For the relation 10**n=O(2**), which of the following is correct values for
constants and n0?
a)c=1, and n0=1.
b)c=1, and n0=2.
c)c=2, and n0=2.
d)c=2, and n0=3.
Which operator strictly describes relationship between the following functions?
f(n)=2n;g(n)=10n2.
a) Big-Theta
b) Little-Omega
c) Big-O
d) Little - o
Let f(n)=|log2n| and g(n)=n2, circle the correct answer that reflect the best
relation between the two given functions?
a)f(n)=O(g(n))
f(x)g(x)
b)f(n)=(g(n))
c)f(n)=(g(n))
d)g(n)=(f(n))
If f(n)=(g(n)), then g(n)=O(h(n)). Which of the following is correct
a)f(n)=(h(n))
b)f(n)=(h(n))
c)f(n)=0(h(n))
d)h(n)=O(f(n))
Time complexity for binary search is equal to a )

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!