Please enable JavaScript.
Coggle requires JavaScript to display documents.
Mapa Mental 7 - Coggle Diagram
Mapa Mental 7
Hashing
Dictionary is an abstract data type, namely, a set with the operations of
searching (lookup), insertion, and deletion defined on its elements.
key that is used for identifying entities represented by the records (e.g.,
the student’s ID).
Hashing is based on the idea of distributing keys among a one-dimensional
array H[0..m − 1] called a hash table.
The distribution is done by computing, for
each of the keys, the value of some predefined function h called the hash function.
This function assigns an integer between 0 and m − 1, called the hash address, to
a key.
-
-
Sets and Dictionaries
Set
A set can be described as
an unordered collection (possibly empty) of distinct items called elements of the set.
-
Set x Lists
-
Set is an unordered collection of items; therefore,
changing the order of its elements does not change the set.
-
A List, defined as an
ordered collection of items, is exactly the opposite.
Dictionary (Hash Map)
In computing, the operations we need to perform for a set or a multiset most often are searching for a given item, adding a new item, and deleting an item from the collection. A data structure that implements these three operations is called the dictionary
Abstract data type (ADT)
abstract data type (ADT): a set of abstract objects represent-
ing data items with a collection of operations that can be performed on them.
-