www.heteroclinic.net
Episode I 20130402 Will analysis find the hole, exist there holes?
We stop the topic about "Generating a Random Permutation of the First one G Nature Numbers", because "Recursive Random Bit Flip Permutation" is a different topic or just because of convenience.
I deeply worry about the completeness of the premutation created -- it may fall within particular pattern(s) of numbers.
My shallow attempt of group theory was not continuous.
At least this program struggles to provide a set or a none-repeating collection of numbers, so I would continue the analysis without requiring very high mathematics background.
How to start:
First we set size=5, generate a permutation:
The results are a little bit confusing, but the numbers looks like a random permutation of intergers in [0,31]
Let's only show the last five bits: |
||
Episode II 20130403 Some basic analysis
If you trouble yourself by studying the program |
||
Episode III 20130406 Seal with a cache -- feasibility analysis
In fact, from the begginning, we are not far from a solution.
"Recursive Random Bit Flip Permutation" clearly categorizes numbers in [0,2^n) into the tiered-bipartite hierarchy. For example, 2^40 numbers can be grouped into 1024*1024 groups.
Each group's size would be 1024*1024.
Using "Recursive Random Bit Flip Permutation", we can control which single group we want to compute. We assign the 1024*1024 groups each an index.
Then we shuffle the indices, in previous programs, we have been able to shuffle 1G numbers.
Suppose we have a cache size of 10*1024*1024 (10M unsigned long long is 80MB). Then each time we compute 10 groups of numbers and fill them in the cache.
Shuffle the cache. Carry on till all groups are processed.
For number in [0,2^n), there won't be numer(s) repeated, there won't be number(s) missed. We believe this cache-shuffle will seal the hole(s) of "Recursive Random Bit Flip Permutation".
You may argue, you can directly put 10^10 numbers to 100 groups. Shuffle the indices, shuffle the cache. Voila!
But "Recursive Random Bit Flip Permutation" definitely makes the numbers more statistically dispersed ( but easy to guess the over-all pattern).
Plus indices shuffle and cache shuffle, it is fair enough against guessing.
In the coming episode, we will try to use program to prove this idea.
|
||
20130409
QtWagon is a computer graphics project to study 3D objects with the assistance of QT framework GUI. I publish the source code. Although the GUI for camera, lights and complex rigid body are not ready, the glMovingObject class can be used independently in a GL machine. You can use to it simulate a Qbit to verify Shor's algorithm.
File list: |