Theoretically best search algorihtms
Date: 2000/01/16
Message-ID: <5ff1708149%Thomas-Milius_at_Thomas-Milius.t-online.de>#1/1
Could anyone give me the solution or a hint where to find
the solution of following problem.
If you have datasets inside a DB with datafields and you
want to search your sets by the contents of one or more
fields (eg SELECT ... WHERE ...). What are the best known
algorithms to do such a search in a fast way? Solution
Example table:
Name Surname City Age
Example Queries:
in City = London (Simple: build multi field index on
"Name", "Surname" and "City")
Index on "Name" is the same as using index on "Name",
"Surname" and "City". Because "Surname" is undetermined
binary search will reduce the possible results to datasets
1. and 2.. This datasets will have to be searched set by set
on the value of "City". Of course there would be the possibility
1. Who has the Name = Thomas (Simple: build Index on "Name")
2. Who has the Name = Thomas and Surname = Miller and lives
What is the best theoretical solution to this problem? How are good database managing this problem?
Best Regards
Thomas Milius Received on Sun Jan 16 2000 - 00:00:00 CET