In mathematics a pairing function is a process to uniquely encode two natural numbers into a single natural number.
Any pairing function can be used in set theory to prove that integers and rational numbers have the same cardinality as natural numbers. In theoretical computer science they are used to encode a function defined on a vector of natural numbers f:Nk → N into a new function g:N → N.
The Cantor pairing function is a pairing function
When we apply the pairing function to and we often denote the resulting number as
This definition can be inductively generalized to the Cantor tuple function
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Pairing function".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world