I'm trying to implement B+ tree (in C language) with each key being some data(int/float/string) and corresponding value is a list, whose size is not fixed.
I want to store this tree in a file and access later on, when required. You may consider the implementation as follows:
- Each search key corresponds to a page in the file and
- Each page contains set of values corresponding to that key
The problem is: I cannot just assign a page to a key, as it may consume very little and waste the entire page. So I need a persistent way of implementing B+ tree in file system, instead of main-memory.