Skip to Content
Data Structures and Algorithms in Java, 2nd Edition
book

Data Structures and Algorithms in Java, 2nd Edition

by Robert Lafore
September 2017
Intermediate to advanced
800 pages
23h 19m
English
Sams
Content preview from Data Structures and Algorithms in Java, 2nd Edition

11. Hash Tables

A hash table is a data structure that offers very fast insertion and searching. When you first hear about them, hash tables sound almost too good to be true. No matter how many data items there are, insertion and searching (and sometimes deletion) can take close to constant time: O(1) in big O notation. In practice this is just a few machine instructions.

For a human user of a hash table, this is essentially instantaneous. It’s so fast that computer programs typically use hash tables when they need to look up tens of thousands of items in less than a second (as in spelling checkers). ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Data Structures and Algorithms in Java, 6th Edition

Data Structures and Algorithms in Java, 6th Edition

Michael T. Goodrich, Roberto Tamassia

Publisher Resources

ISBN: 9780134849775