Dictionaries/ArrayDict: Difference between revisions
From charlesreid1
(Created page with "=Notes= ==ArrayDict== A dictionary is a data structure that allows lookups to happen by value. (See Dictionaries for definitions/notes from Skiena Chapter 3.) ArrayDict...") |
|||
| Line 9: | Line 9: | ||
==ArrayDict Java class== | ==ArrayDict Java class== | ||
ArrayDict class implements an array to store dictionary data. | |||
Implements the following methods: | |||
* search | |||
* insert | |||
* delete | |||
* max or min | |||
* predecessor or successor | |||
Unsorted array list vs sorted array list | |||
=Java Implementation= | =Java Implementation= | ||
Revision as of 07:15, 3 June 2017
Notes
ArrayDict
A dictionary is a data structure that allows lookups to happen by value. (See Dictionaries for definitions/notes from Skiena Chapter 3.)
ArrayDict implements the underlying store container as an array of objects.
ArrayDict Java class
ArrayDict class implements an array to store dictionary data.
Implements the following methods:
- search
- insert
- delete
- max or min
- predecessor or successor
Unsorted array list vs sorted array list