704 views
0 votes
0 votes

2 Answers

0 votes
0 votes
who said we always deal with log base 2 only in computer science!! most of the topic in gate syllabus are concerned about binary trees so we say that we always use log base 2.have you thought about b-trees and b+ trees there we have the base m concept where m is the order of tree .incase of binary tree m is always 2 so we use base 2 try to evaluate the height of a binary tree when number of nodes are given and the height of a m-ary tree when number of nodes are given you have to use log base 2 and log base m respectively

Related questions

0 votes
0 votes
2 answers
1
Mak Indus asked Nov 10, 2018
282 views
Given an array of distinct integers A[1, 2,…n]. Find the tightest upper bound to check the existence of any index i for which A[i]= i.(a) O (1) ...
2 votes
2 votes
1 answer
2
smartmeet asked Jan 13, 2017
560 views
If possible,. all 3 cases (best,average, worst)
0 votes
0 votes
1 answer
3
LavTheRawkstar asked Jan 12, 2017
831 views
INSERTION-SORT (A, n) ⊳ A[1 . . n]for (j ← 2 to len(A) ){key ← A[ j];i ← j – 1 ; while (i 0 and A[i] key) { A[...
1 votes
1 votes
2 answers
4