Page 113 - Data Structures Handout_Neat
P. 113

9.6.1  Database Indexing


                       Databases  use  hashing  to  quickly  locate  records.  Instead  of  scanning  through  all

               entries, a hash function maps a key (like a student ID or employee number) directly to the

               location of the record.

                       Example: Simple Database Indexing in C++























































                       This example shows how hashing can be used to store and retrieve records efficiently

               in a database-like system.








                                                            113
   108   109   110   111   112   113   114   115   116   117   118