home page -> teaching -> data structures and algorithms -> element type

Element type

Operations required

Equality test

Necessary whenever a collection is asked if it contains a given element (or at which position it is, or what value is assigned to it as a key). A collection contains an element if that element is equal - according to the equality test - with the given one.

Requirements:

Less-than or equal test

Requirements:

Hash function

This will be discussed later, when discussing about hash tables.

Radu-Lucian LUPŞA
2016-02-28