Data Structures Using C++ 2E: Searching and Hashing Algorithms
Data Structures Using C++ 2E: Searching and Hashing Algorithms
Chapter 9
Searching and Hashing Algorithms
Objectives
• Item key
– Unique member of the item
– Used in searching, sorting, insertion, deletion
• Number of key comparisons
– Comparing the key of the search item with the key of
an item in the list
• Can use class arrayListType (Chapter 3)
– Implements a list and basic operations in an array
• Array-based lists
– Covered in Chapter 3
• Linked lists
– Covered in Chapter 5
• Works the same for array-based lists and linked lists
• See code on page 499