Ada Developers Academy / Lovelace Learning Labs
Advanced Data Structures 1 - Trees
Week 6
Download
$ git clone <paste-url>
$ cd <created-directory>
Install
$ npm install
Run tests in watch mode
$ npm test
- Read through the existing code in
src/data_structures/b_tree.js
and ensure you understand how it works - Implement the following functions:
BTree._findIndex()
BTree.lookup()
BTree._splitChild()
BTree.insert()
BTree.forEach()
- Adjust your implementation to take two parameters: the minimum degree of a non-leaf node, and the minimum degree of a leaf node, as discussed in class
- Implement a visualization or performance testing for your B-Tree
- Reimplement B-Tree in your favorite statically typed programming language so that it automatically chooses the size of a node
- Read about B* Trees and B+ Trees, two common variations on B-Trees. Pick one and implement it.