Element distinctness on one-tape Turing machines: a complete solution

Abstract.We give a complete characterization of the complexity of the element distinctness problem for n elements of $m\ge\log n$ bits each on deterministic and nondeterministic one-tape Turing machines. We present an algorithm running in time $O(n^2m(m+2-\log n))$ for deterministic machines and nondeterministic solutions that are of time complexity $O(nm(n + \log m))$. For elements of logarithmic size $m = O(\log n)$, on nondeterministic machines, these results close the gap between the known lower bound $\Omega(n^2\log n)$ and the previous upper bound $O(n^2(\log n)^{3/2}(\log\log n)^{1/2})$. Additional lower bounds are given to show that the upper bounds are optimal for all other possible relations between m and n. The upper bounds employ hashing techniques, while the lower bounds make use of the communication complexity of set disjointness.

[1]  Alexander A. Razborov,et al.  Applications of matrix methods to the theory of lower bounds in computational complexity , 1990, Comb..

[2]  János Komlós,et al.  Storing a sparse table with O(1) worst case access time , 1982, 23rd Annual Symposium on Foundations of Computer Science (sfcs 1982).

[3]  Frédéric Magniez,et al.  Quantum algorithms for element distinctness , 2000, Proceedings 16th Annual IEEE Conference on Computational Complexity.

[4]  Jeffrey D. Ullman,et al.  Introduction to Automata Theory, Languages and Computation , 1979 .

[5]  Juan Bulnes On the Speed of Addition and Multiplication on One-Tape, Off-Line Turing Machines , 1972, Inf. Control..

[6]  Kurt Mehlhorn,et al.  On the program size of perfect and universal hash functions , 1982, 23rd Annual Symposium on Foundations of Computer Science (sfcs 1982).

[7]  Andrzej Szepietowski The Element Distinctness Problem on One-Tape Turing Machines , 1996, Inf. Process. Lett..

[8]  Martin Dietzfelbinger,et al.  The linear-array problem in communication complexity resolved , 1997, STOC '97.

[9]  Jeanette P. Schmidt,et al.  The Spatial Complexity of Oblivious k-Probe Hash Functions , 2018, SIAM J. Comput..

[10]  Ming Li,et al.  An Introduction to Kolmogorov Complexity and Its Applications , 1997, Texts in Computer Science.

[11]  G. Hardy,et al.  An Introduction to the Theory of Numbers , 1938 .

[12]  Alejandro López-Ortiz New Lower Bounds for Element Distinctness on a On-Tape Turing Machine , 1994, Inf. Process. Lett..

[13]  E. Kushilevitz,et al.  Communication Complexity: Basics , 1996 .

[14]  Jirí Wiedermann Optimal Algorithms for Sorting on Single-tape Turing Machines , 1992, IFIP Congress.

[15]  Holger Petersen Bounds for the Element Distinctness Problem on one-tape Turing machines , 2002, Inf. Process. Lett..