GATE CS NAT 26: An array has 16 sorted elements. Enter log2 of its size.
Correct Answer: 4
Explanation:
log₂(16)=4.
Practice gate-cs questions with answers and explanations.
log₂(16)=4.
n(n−1)/2=10.
IC×CPI/f = 9 ms.
log₂(128)=7.
n(n−1)/2=28.
IC×CPI/f = 36 ms.
log₂(512)=9.
n(n−1)/2=1.
IC×CPI/f = 64 ms.
IC×CPI/f = 25 ms.
log₂(32)=5.
n(n−1)/2=15.