Content deleted Content added
AmirOnWiki (talk | contribs) |
Citation bot (talk | contribs) Alter: pages. Add: s2cid, authors 1-1. Removed parameters. Formatted dashes. Some additions/deletions were parameter name changes. | Use this bot. Report bugs. | #UCB_CommandLine 692/7965 |
||
Line 9:
| pages = 244–253
| title = [[Symposium on Theory of Computing|Proc. 22nd ACM Symposium on Theory of Computing]]
| year = 1990
}}.</ref>
Several lower bounds in computational complexity are proved by reducing the element distinctness problem to the problem in question, i.e., by demonstrating that the solution of the element uniqueness problem may be quickly found after solving the problem in question.
==Decision tree complexity==
The number of comparisons needed to solve the problem of size <math>n</math>, in a comparison-based model of computation such as a [[decision tree]] or [[algebraic decision tree]], is <math>\Theta(n\log n)</math>. Here, <math>\Theta</math> invokes [[Big O notation|big theta notation]], meaning that the problem can be solved in a number of comparisons proportional to <math>n\log n</math> (a [[linearithmic function]]) and that all solutions require this many comparisons.<ref>{{citation|first=Michael|last=Ben-Or|contribution=Lower bounds for algebraic computation trees|title=[[Symposium on Theory of Computing|Proc. 15th ACM Symposium on Theory of Computing]]|year=1983|pages=80–86|doi=10.1145/800061.808735|doi-access=free}}.</ref> In these models of computation, the input numbers may not be used to index the computer's memory (as in the hash table solution) but may only be accessed by computing and comparing simple algebraic functions of their values. For these models, an algorithm based on [[comparison sort]] solves the problem within a constant factor of the best possible number of comparisons. The same lower bound applies as well to the [[expected value|expected number]] of comparisons in the [[randomized complexity|randomized]] [[algebraic decision tree]] model.<ref>{{citation|doi=10.1007/BF01270387|title=A lower bound for randomized algebraic decision trees|year=1996|
==Real RAM Complexity==
If the elements in the problem are [[real number|real numbers]], the decision-tree lower bound extends to the [[real RAM|real random-access machine]] model with an instruction set that includes addition, subtraction and multiplication of real numbers, as well as comparison and either division or remaindering ("floor").<ref>{{citation|doi=10.1137/S0097539797329397|title=Topological Lower Bounds on Algebraic Random Access Machines|year=2001|last1=Ben-Amram|first1=Amir M.|journal=SIAM Journal on Computing|volume=31|issue=3|pages=
==Turing Machine complexity==
A single-tape deterministic [[Turing machine]] can solve the problem, for ''n'' elements of {{math|''m'' ≥ log ''n''}} bits each, in time {{math|''O''(''n''<sup>2</sup>''m''(''m''+2–log ''n''))}},
while on a nondeterministic machine the time complexity is {{math|''O''(''nm''(''n'' + log ''m''))}}.<ref>{{citation|doi=10.1007/s00236-003-0125-8|title=Element distinctness on one-tape Turing machines: a complete solution.|year=2003|last1=Ben-Amram|first1=Amir M.|journal=Acta Informatica|volume=40|issue=2|pages=
==Quantum complexity==
|