English

Testing of sequences by simulation

Data Structures and Algorithms 2015-03-17 v1

Abstract

Let ξ\xi be a random integer vector, having uniform distribution P{ξ=(i1,i2,...,in)=1/nn} for 1i1,i2,...,inn.\mathbf{P} \{\xi = (i_1,i_2,...,i_n) = 1/n^n \} \ \hbox{for} \ 1 \leq i_1,i_2,...,i_n\leq n. A realization (i1,i2,...,in)(i_1,i_2,...,i_n) of ξ\xi is called \textit{good}, if its elements are different. We present algorithms \textsc{Linear}, \textsc{Backward}, \textsc{Forward}, \textsc{Tree}, \textsc{Garbage}, \textsc{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 nn and generating random inputs for large values of nn.

Keywords

Cite

@article{arxiv.1012.0032,
  title  = {Testing of sequences by simulation},
  author = {Antal Iványi and Balázs Novák},
  journal= {arXiv preprint arXiv:1012.0032},
  year   = {2015}
}
R2 v1 2026-06-21T16:51:26.333Z