gzc / CLRS

:notebook:Solutions to Introduction to Algorithms
MIT License
9.44k stars 2.75k forks source link

Add an example of B-tree on Python #301

Closed samolisov closed 5 years ago

samolisov commented 5 years ago

The tree is implemented as a Python 3 class and supports the following operations:

To interact with the storage, the tree is able to use the following callbacks (thank python for supporting functions as arguments): allocate, free, read, write.