Assume there is a static max of N for either value, such that X <= N and Y <= N.
I would like a function such that:
func(X0,Y0) != func(X1,Y1) for all values IFF: 1. X0,Y0,X1,Y1 <= N 2. X0 != X1 and Y0 != Y1 3. X0 != Y1 and Y0 != X1
So to be clear, func(X,Y) = func(Y,X).
The result of this function should be an integer, and it should also be simple and trivial to calculate X and Y from the result of the function.
I'd like to also be able to do this without determining which of X or Y is the max.
Is this something that is impossible by principle?
Thanks!
EDIT:
Oops! N is non-negative.