Giter Club home page Giter Club logo

Comments (2)

begeekmyfriend avatar begeekmyfriend commented on September 28, 2024

bplus_tree.c只负责删除一个结点的时候才会释放它(non_leaf_delete and leaf_delete),我在demo里面并没有释放所有结点。你可以用范围删除所有结点。

from bplustree.

MoonChasing avatar MoonChasing commented on September 28, 2024

感谢。看代码可以知道,只要我们删除了所有的叶子结点,那么B+树就自然的已经销毁了。
但我觉得在 deinit 接口中,最好还是能把所有的结点删除。
想象一种使用情景就是我在程序的一个步骤中需要使用 B+ 树,后面就无需用到了,用户在使用完后也没有逐个删除叶子结点。

from bplustree.

Related Issues (15)

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.