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.

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.