Re: Search Algorithms
- From: Mika Viljanen <mika.viljanen@xxxxxxxxxxxxxxxx>
- Date: Thu, 13 Jul 2006 13:10:04 GMT
davidgt0@xxxxxxxxx <davidgt0@xxxxxxxxx> wrote:
I was wondering if anyone heard of a search algorithm that has the
search time almost constant regardless of the volume of data searched.
Does anyone know which is the fastest search algorithm that performs
well for very large volumes of data?
I'd say it depends on the data. If you have a bunch of keys (single
values of some data type) ordered by their value, there is always the
binary search algorithm.
However, I guess the data you are referring to does not meet these
requirements. In that case, you might want to see:
http://en.wikipedia.org/wiki/No_free_lunch_theorem
Whether you agree with the theorem or not, I'd still say the choice of
a search algorithm is strongly dependent on the data.
--
MJV ~ Eric S. Raymond & Rick Moen: "How to Ask Questions the Smart Way"
~ http://www.catb.org/~esr/faqs/smart-questions.html
[ comp.ai is moderated ... your article may take a while to appear. ]
.
- References:
- Search Algorithms
- From: davidgt0
- Search Algorithms
- Prev by Date: ANN: MissionLab v7.0 released - Mobile Robot Software
- Next by Date: Re: Search Algorithms
- Previous by thread: Search Algorithms
- Next by thread: Re: Search Algorithms
- Index(es):
Relevant Pages
|
|