@pranavpatel.ca/algo-kombin
Version:
KombiN is a library for bijectively mapping all ordered pairs from two finite sets into a single linear index. It orders pairs by ascending weight (sum of indices) using a three-region zig-zag algorithm, enabling O(1) bidirectional lookups between pairs a
7 lines (6 loc) • 317 B
TypeScript
/**
* KombiN is a library for bijectively mapping all ordered pairs from two finite sets into a single linear index.
* It orders pairs by ascending weight (sum of indices) using a three-region zig-zag algorithm,
* enabling O(1) bidirectional lookups between pairs and indices.
*/
export { Table } from './Table';