Testing of sequences by simulation
Abstract
Let be a random integer vector, having uniform distribution \[P \ = (i1,i2,...,in) = 1/nn \ \ for \ 1 ≤ i1,i2,...,in≤ n.\] A realization (i1,i2,...,in) of is called good, if its elements are different. We present algorithms Linear, Backward, Forward, Tree, Garbage, Bucket which decide whether a given realization is good. We analyse the number of comparisons and running time of these algorithms using simulation gathering data on all possible inputs for small values of n and generating random inputs for large values of n.
0