Re: B tree



On Aug 14, 6:21 am, Tegiri Nenashi <TegiriNena...@xxxxxxxxx> wrote:
On Aug 13, 12:58 pm, "maverickc...@xxxxxxxxx" <maverickc...@xxxxxxxxx>
wrote:

hi all
i'm learning data structures and i have a question regarding b-trees.
suppose we have 2 B-trees: A and B, both of order m. one has a keys
and the other b keys. we know that all the keys in A are smaller than
the keys  in B.
how can we make one B tree of order m out of both of them in
 O(log(max(a,b))?

Without loss of generality assume b < a. The idea is to insert the
root of B at the appropriate level of A and rebalance A. That would
take log(a) effort. Then, since root of B is placed at ther correct
level the combined tree A+B is balanced.

thanks
.



Relevant Pages

  • Re: B tree
    ... i'm learning data structures and i have a question regarding b-trees. ... and the other b keys. ... since root of B is placed at ther correct ... level the combined tree A+B is balanced. ...
    (comp.theory)
  • Re: Attempt to explain
    ... easier target to maintain than the minor triad. ... acoustical root. ... suitable a target for becoming a home chord as the major triad is. ... Musica ficta is introduced so that minor keys feeling can be ...
    (rec.music.theory)
  • Re: RSA vs AES
    ... Common Root certificate shared across millions of keys. ... those browsers check for revoked root CA keys? ...
    (sci.crypt)
  • Re: openssh
    ... authorized* key file permissions as well. ... Also you may not have keys setup for root on that system. ... immediately delete the entire communication, ...
    (AIX-L)
  • Re: Half O.T.(Keypad Functions On Sharp)
    ... Why waste Space on the keypad? ... root are used more often than other powers or roots. ... both common log and natural log keys). ...
    (comp.sys.hp48)