V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
zxCoder
V2EX  ›  问与答

B+树到底有没有标准的定义和做法

  •  
  •   zxCoder · Jul 25, 2021 · 1054 views
    This topic created in 1737 days ago, the information mentioned may be changed or developed.

    目前是按照 https://www.cs.usfca.edu/~galles/visualization/BPlusTree.html 这个网站做

    但是感觉其中一些操作可以有不同的细节,比如节点合并时是跟左边还是跟右边的优先,或者从左右兄弟节点“借”的时候哪个优先,很多这些操作上的细节

    似乎没搜到一个“标准”的做法,或者说这本来就不存在标准做法?只要能保证满足那几个要求就行?

    1 replies    2021-07-26 12:32:36 +08:00
    ElDanno
        1
    ElDanno  
       Jul 26, 2021 via iPhone
    应该没有标准做法,只要满足要求就行,甚至顺序都可以换一下。满足要求了达到 b plus tree 的读取性能就行了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5123 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 09:45 · PVG 17:45 · LAX 02:45 · JFK 05:45
    ♥ Do have faith in what you're doing.