MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

DATA STRUCTURES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which is purely upper bound notation?
A
Big-oh
B
Small-oh
C
Big-omega
D
Theta
Explanation: 

Detailed explanation-1: -The symbol, pronounced “little-O of., ” is one of the Landau symbols and is used to symbolically express the asymptotic behavior of a given function.

Detailed explanation-2: -Big-O means “is of the same order as”. The corresponding little-o means “is ul-timately smaller than”: f (n) = o(1) means that f (n)/c !

Detailed explanation-3: -Big-O notation represents the upper bound of the running time of an algorithm. Thus, it gives the worst-case complexity of an algorithm.

Detailed explanation-4: -Big O is the upper bound, while Omega is the lower bound. Theta requires both Big O and Omega, so that’s why it’s referred to as a tight bound (it must be both the upper and lower bound). For example, an algorithm taking Omega(n log n) takes at least n log n time, but has no upper limit.

There is 1 question to complete.