Re: [algogeeks] binary search tree over btree

2012-04-05 Thread sanjiv yadav
In BST the height can be made as bad as u can but in case of btree the height can not be more than log n base 2 because for each internal node it is necessary to have at least 2 child and here all the leaf nodes must be at the same label. On Sun, Apr 1, 2012 at 8:34 PM, arun kumar

[algogeeks] binary search tree over btree

2012-04-01 Thread arun kumar
hi i just like to know when you will go for binary search tree over btree. advantage and disadvantage, application of both of them. thank you in advance Regards, Arun kumar -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group,

[algogeeks] Binary Search Tree Question

2012-02-09 Thread Rahul Menon
What does this function do? void function(Node **node){ if(*node!=NULL){ function((*node)-Left); Node *temp; temp = (*node)-Left; (*node)-Left= (*node)-Right; (*node)-Right = temp;

[algogeeks] binary search tree question!!!!

2011-07-28 Thread AMAN AGARWAL
Please tell the solution of this question Given a Binary Search Tree, write a program to print the kth smallest element without using any static/global variable. You can’t pass the value k to any function also -- AMAN AGARWAL Success is not final, Failure is not fatal: It is the courage to

[algogeeks] binary search tree

2010-10-06 Thread addicted2abhishesh
WAP to create a binary search tree and search a node in it using linked list representation -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send

Re: [algogeeks] binary search tree

2010-10-06 Thread gaurav gupta
I guess this list is not to get your home works done. Please use google before throwing anything and everything here. On Wed, Oct 6, 2010 at 1:57 PM, addicted2abhishesh abhishesh.srivast...@gmail.com wrote: WAP to create a binary search tree and search a node in it using linked list