A fast natural algorithm for searching
In this note we present two natural algorithms—one for sorting, and another for searching a sorted list of items. Both algorithms work in O( N ) time, N being the size of the list. A combination of these algorithms can search an unsorted list in O( N ) time, an impossibility for classical algorithms...
Saved in:
| Published in | Theoretical computer science Vol. 320; no. 1; pp. 3 - 13 |
|---|---|
| Main Authors | , , |
| Format | Journal Article |
| Language | English |
| Published |
Amsterdam
Elsevier B.V
12.06.2004
Elsevier |
| Subjects | |
| Online Access | Get full text |
| ISSN | 0304-3975 1879-2294 |
| DOI | 10.1016/j.tcs.2004.03.040 |
Cover
| Summary: | In this note we present two natural algorithms—one for sorting, and another for searching a sorted list of items. Both algorithms work in
O(
N
)
time,
N being the size of the list. A combination of these algorithms can search an unsorted list in
O(
N
)
time, an impossibility for classical algorithms. The same complexity is achieved by Grover's quantum search algorithm; in contrast to Grover's algorithm which is probabilistic, our method is guaranteed correct. Two applications will conclude this note. |
|---|---|
| ISSN: | 0304-3975 1879-2294 |
| DOI: | 10.1016/j.tcs.2004.03.040 |