Giter Club home page Giter Club logo

data-structure-and-algorithm's Introduction

data-structure-and-algorithm

As title.

Leet code

B树Notes

B和B+树的一个最区别点,就是所有的Key数据都会出现在叶子节点,中间节点的Key也会重复出现在叶子节点,但是B树就不会。正是因为
这个原因,所以说,B+树才能把所有叶子节点连接起来,用以扫描所有元素。而B树做不到这一点。
B+树的索引数据至多出现两次,一个可能是在非叶子节点,一个是在叶子节点。B树的索引数据只会出现一次。
B树的查找可以在中间节点终结(如果命中的话), B+树的查找肯定都要终结在叶子节点,无论是命中还是没命中。
B+树如何做范围查询,先查找到低值,然后,在叶子节点的链表中,依次扫描直到当前值大于高值。
因为结构的不一样而导致的性质的区别:

data-structure-and-algorithm's People

Contributors

jicahoo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.