



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




are used, including an advantage and disadvantage of each.
converted to a denary number using ASCII. The result of the sum of the numbers modulo 5 delivers an index for
a hash table. PH02RNB is a Ford, SBG984 is a Honda, X15CDC is an Audi, MY02ZRO is a Vauxhall. Show how the
data is stored.
Key Calculated
Value
Mod 5
Inde
x
Data Car
Hash function
Hash table Overflow
Inde
x
Data Car
and cyclic redundancy checks. They are designed to be collision-resistant.
Research the following family of famous hashing algorithms: MD5 , SHA-1 and SHA-2. Briefly explain their
history and evolution.
Graph
Tree
Queue
Stack
A data structure that creates a mapping between keys and values using a hashing
algorithm.
In best case elements are accessed directly rather than through a sequential search.
A first in, first out (FIFO) data structure.
A connected, undirected graph with no cycles. It does not have a root.
Used to store more complex relationships between data items.
Dictionary
Vector
A last in, first out (LIFO) data structure.
A list of numbers representing a geometric point in space.
A dictionary can be used to represent the data structure as a function.
A collection of key-value pairs in which the value is accessible via the associated key.
An implementation of a hash table.
Binary tree
A rooted tree data structure where each node has at most two children.
Array
Contiguous memory locations holding the same data type, with a single identifier
accessed by an index.
Useful for representing vectors.
Hash table
Advantages of
static data structures
Advantages of
dynamic data structures
Disadvantages of
static data structures
Disadvantages of
dynamic data structures
Items can only be added if there
is space Makes the most efficient use of
memory Memory requirements known in
advance Any number of items can be
added
Fast element access speed
Memory is allocated even if it is
not used
Slower element access speed
Memory requirements not known