Linear search (Nearest Neighbor Search (NNS) Nearest Neighbor Search)

From Algorithm Wiki
Revision as of 07:54, 10 April 2023 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Time Complexity

$O(n)$

Space Complexity

$O({1})$

(Derived: Only ever storing the current shortest distance and the corresponding node)

Description

Approximate?

Exact

Randomized?

No, deterministic

Model of Computation

Real RAM

Year

1940

Reference

-