T-functions Testbed
During last year I’ve seen few submission papers that are based on my note about singe cycle functions. The latest such paper puzzled me. The authors have reconstructed theory quite well but at some point have jumped surprisingly to a premature and wrong conclusion. To make things simpler, I’ve sketched a small online tool to test functions. Write a function as a JavaScript subroutine, click on Evaluate button and if all mapping values are ‘1’ then the function is a single cycle and invertible. As simple as that.
Since I’m already on the subject here, I’d like to explain a bit more about the function x → (a(~x)) <<< b . Probably I was too harsh in dissemblance :) Overflow bits from multiplication do matter. It is easier to see when rotation replaced with((x << b)|(x >> (2n-b))). If x = ((a(~x)) % 2n) then period is 2n-1 and the function is not invertible indeed. It is invertible without such mod.
upd: Here are couple more functions as a bonus :)
x → ax + (~x), whereais a term of {a0 = 2, ai = ai-1 + 4}x → (~x) + ax + bx, where|a-b| ≡ 4t, t = 0,1,2,3…
Subscribe to RSS feed