php hit counter

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
depth of binary search tree d=log2(n+1) - 1 if n = 1000000 how answer is 20
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#1
depth of binary search tree d=log2(n+1) - 1 if n = 1000000 how answer is 20 ?because my answer is 5.

If we solve the expression

d = log2 (n+1) where n = 1000000
so

d= log2(1000001)
Now the way of finding log 2 . First we find log base 10 of 1000001, then we divide the answer with log base 10 (2).

log10 (1000001) = 6.000000
log 10(2) = .3010
log 2 (1000001) = 6.00000/.3010 = 19.93 which approximately equal to 20.

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  What is difference among Binary Tree, Complete Binary Tree and Binary Search Tree? Vuhelper 2 4,420 03-18-2012, 12:47 AM
Last Post: Xpert
  Threaded Binary Tree? in C++ 2012 Vuhelper 0 3,533 01-06-2012, 12:25 AM
Last Post: Vuhelper
  how stack operation proves costly during traversing a tree Vuhelper 0 1,548 01-04-2012, 10:43 PM
Last Post: Vuhelper
  ASCII code is binary numbers of 0 and 1 in C++ 2012 Vuhelper 0 2,324 01-04-2012, 10:41 PM
Last Post: Vuhelper
  why huffman tree is not an AVL tree not how? Vuhelper 0 2,080 01-04-2012, 10:39 PM
Last Post: Vuhelper
  why Hoffman tree is not an AVL Tree? Vuhelper 0 2,159 01-04-2012, 10:33 PM
Last Post: Vuhelper
  AVL tree, It must satisfie the 2 conditions. Vuhelper 0 845 01-04-2012, 10:32 PM
Last Post: Vuhelper
  how to insert a new node on AVL tree using double rotation? Vuhelper 0 2,716 01-04-2012, 10:31 PM
Last Post: Vuhelper
  the method of balancing an anl tree? Vuhelper 0 3,016 01-04-2012, 10:30 PM
Last Post: Vuhelper
  Balance of the AVL tree im Data structure 2012 Vuhelper 0 1,936 01-04-2012, 10:27 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support