1
$\begingroup$

For the cantor pairing function

https://en.wikipedia.org/wiki/Pairing_function

which takes 2 numbers and returns another number. If I know the min and max values of each of the 2 inputs, is there a way I can automatically know what the biggest value of the cantor pairing function for some input within the ranges?

  • 0
    The Pairing function is increasing in both variables (see the explicit formula given in the wiki article), so just plug in the upper bounds.2017-02-15
  • 0
    So you are saying, if I use the biggest value of both inputs, that is the biggest output?2017-02-15

0 Answers 0