|
Algorithm 1 ObservableState. |
Require:, n. Step 1. For each generate uniformly value
Ifthenelse and obtain the binary string: .
For each translate the binary substring to the decimal value and obtain the string of the decimal number .
Step 2. Replace each number in this way that the takes a permutation form. For
to
n
do:
Find the set of smallest, not marked, elements in the string .
Replace the smallest element from the left side of the string - , by the value i and set the value i at the position k as marked.
Return string which has a permutation form. |