Hi,
I want to write a function y = f(x) and another function x = g(y) that acts as a reversible, where y = f(g(y)) and where x and y are permutated integers.
For very simple example in the range of integers in 0 to 10 it would look like this: 0->1, 1->2, 2->3,..., 9->10, 10->0 but this is the simplest method by adding 1 and reversing by subtracting 1.
I want to have more sofisticated algorithm that can do something like this: 234927773->4299, 34->33928830, 850033->23234243423 but stil correct reversible conversion can be obtained.
The solution would be obtained with a huge table storing pairs of unique integers but this will not be correct. This must be a function.
Chrisiek