Expand description
Structural fingerprinting for Microscope Memory.
Each block gets a structural fingerprint at index time:
Shannon entropy + byte distribution hash. Blocks with similar
fingerprints are linked in links.bin — creating “wormholes”
between structurally similar but spatially distant blocks.
Binary format: fingerprints.idx (FGP1), links.bin (LNK1)
Structs§
- Block
Fingerprint - Structural fingerprint for a single block.
- Fingerprint
Stats - Link
Table - Link table — mmap-friendly storage of structural links.
- Structural
Link - A structural link between two blocks.
Functions§
- compute_
fingerprint - Compute the structural fingerprint of a block’s content.
- fingerprint_
similarity - Compute similarity between two fingerprints (0.0..1.0).