Skip to content

Add TotalHashMap #8

@TomasMikula

Description

@TomasMikula

A total map is a map that is defined everywhere.

For this data structure, we only consider a special kind of total maps: the ones that are non-zero at at most a finite number of points. TotalHashMap can then be implemented using an ordinary HashMap for keys with non-zero values, and assume zero everywhere else.

EDIT: by "zero" I mean any constant value, not necessarily related to any algebraic notion of zero. So a better phrasing would be that we consider total maps that are constant except for at most a finite number of points.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions