Paper 2025/1244

A New Bijective Pairing Alternative for Encoding Natural Numbers

Manideep Thotakura
Abstract

Pairing functions uniquely encode pairs of natural numbers into single values, a fundamental operation in mathematics and computer science. This paper presents an alternative approach inspired by geometric visualization—viewing pairs as arrangements of square blocks with missing tiles. Our method achieves packing efficiency comparable to the classical Cantor pairing function and matches the time complexity of both Cantor and Szudzik functions. Encoding is performed in constant time using simple arithmetic operations, while decoding requires square root computations, resulting in efficient inversion. By combining algebraic rigor with intuitive geometric insight, this approach offers a practical and accessible alternative for applications involving data encoding, spatial structures, and combinatorial problems.

BibTeX

@misc{cryptoeprint:2025/1244,
      author = {Manideep Thotakura},
      title = {A New Bijective Pairing Alternative for Encoding Natural Numbers},
      howpublished = {Cryptology {ePrint} Archive, Paper 2025/1244},
      year = {2025},
      url = {https://eprint.iacr.org/2025/1244}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.