Well, given that there are many popular hashing algorithms, it is possible that what you offer is not so ridiculous.
But suppose I asked about this:
If I have input and output, do I define a function?
Generally speaking, no, you cannot determine the internal operation of any function, simply knowing one input and one output , without additional information.
// very, very basic illustration if (unknownFunction(2) == 4) { // what does unknownFunction do? // return x + 2? // or return x * 2? // or return Math.Pow(x, 2)? // or return Math.Pow(x, 3) - 4? // etc. }
Dan tao
source share