merge trees Algorithm

LSM trees, like other search trees, keep key-value pairs. The performance characteristics of LSM trees stem from the fact that each component is tuned to the characteristics of its underlying storage medium, and that data is efficiently migrated across media in rolling batches, use an algorithm reminiscent of merge sort.

merge trees source code, pseudocode and analysis