# Marc Erdmann > Personal site of Marc Erdmann, fractional CTO and software engineer. Writing on systems engineering, vector search, HNSW graphs, LSM-trees, and persistent data structures. Articles are available as Markdown source by appending `.md` to the article URL. ## Articles - [A Comparative Analysis of Data Structures for Persisting HNSW Graphs](https://marcerdmann.com/blog/data-structures-for-persistent-hnsw.md): Surveying key-value data structures for persisting HNSW graphs—the write-ahead log, LSM-tree, and value-log used by HNSWDB—and comparing four index-store designs by read, write, and space amplification. - [Extending the HNSW Algorithm for Dynamically Changing Graphs](https://marcerdmann.com/blog/extending-the-hnsw-algorithm-for-dynamically-changing-graphs.md): The original HNSW algorithm handles neither repeated insertions nor deletions. HNSWDB adds reverse-neighbor connections plus modified insert, neighbor-update, and delete procedures to support dynamic datasets. - [Improving the Memory Efficiency of the Hierarchical Navigable Small World Search for Approximate Nearest Neighbor Queries](https://marcerdmann.com/blog/improving-memory-of-k-anns-using-hnsw.md): HNSW's in-layer search keeps a redundant visited-set alongside its candidate lists. We propose dropping it to align the search with beam search and reduce memory use in the HNSWDB reference implementation. - [Leveraging the Hierarchical Structure and Access Patterns of HNSW Graphs for Partial In-Memory Caching with TinyLFU](https://marcerdmann.com/blog/leveraging-structure-and-access-patterns-in-hnsw-graphs-for-efficient-in-memory-caching.md): How HNSW's exponentially skewed access distribution makes a small hot set worth caching, and how the TinyLFU admission policy (frequency sketch, freshness halving, Doorkeeper) exploits it to keep persistent K-NN queries fast. - [Delta-Aware Persistence for HNSW Graphs: An LSM-Tree with a Custom Delta-Merge Operator](https://marcerdmann.com/blog/lsm-tree-with-custom-merge-operator-for-hnsw-persistence.md): A proposed design for persisting HNSW graphs by treating neighbor-list updates as deltas, using either a value-log with delta-chains or an LSM-tree with a custom delta-merge operator to cut write amplification. - [Reverse Nearest Neighbor Queries with a Dynamic HNSW Index](https://marcerdmann.com/blog/reverse-nearest-neighbor-queries-with-a-dynamic-hnsw-index.md): A dynamic HNSW index stores a reverse-neighbor connection for every neighbor connection to make deletion cheap. The same bookkeeping turns reverse-nearest-neighbor retrieval — which elements reference X as a nearest neighbor — into a single key lookup, an approximate reverse-kNN over the graph's edges. - [Semantic Key Design with Fixed-Length Components for Efficient Key-Value Store Operations](https://marcerdmann.com/blog/semantic-key-design-for-efficient-key-value-store-operations.md): We describe how semantic keys built from fixed-length, hashed components enable every result set required by a persistent HNSW index to be addressed with an exact key or prefix search in a key-value store. ## Optional - [Blog index](https://marcerdmann.com/blog) - [RSS feed](https://marcerdmann.com/feed.xml) - [Sitemap](https://marcerdmann.com/sitemap.xml)