hu_pairing: Uniquely encode two positive integers to a single...

Description Usage Arguments Value Examples

Description

This function uniquely encodes two positive integers to a single non-negative integer, using the Hopcrof-Ullman pairing function. See the MathWorld article for more information.

Usage

1
hu_pairing(x, y)

Arguments

x

A positive integer.

y

A positive integer.

Value

A positive integer.

Examples

1
hu_pairing(1, 1)

BenjaK/pairing documentation built on May 5, 2019, 2:40 p.m.