Maps/UnsortedArrayMap: Difference between revisions
From charlesreid1
No edit summary |
(→Notes) |
||
| Line 5: | Line 5: | ||
This map has terrible performance, and is purely implemented for illustrative reasons. | This map has terrible performance, and is purely implemented for illustrative reasons. | ||
==Procedure== | |||
Notes for implementation procedure in Java. | |||
Start by defining, on paper, what the map ADT is going to look like. See [[Maps/ADT]]. | |||
Define the Map interface class that establishes the basic PUBLIC functionality all Map objects must provide. | |||
Define an AbstractMap abstract class that creates any utility classes (item or position classes, iterators, iterables) and any additional fields or methods (particularly PROTECTED) that should be implemented. | |||
Define the UnsortedArrayMap class, the concrete implementation of the abstract map that utilizes an array list to store items in the map. | |||
Revision as of 23:20, 25 June 2017
Notes
The unsorted array map is an implementation of a map that uses an unsorted array list to store the map items.
This map has terrible performance, and is purely implemented for illustrative reasons.
Procedure
Notes for implementation procedure in Java.
Start by defining, on paper, what the map ADT is going to look like. See Maps/ADT.
Define the Map interface class that establishes the basic PUBLIC functionality all Map objects must provide.
Define an AbstractMap abstract class that creates any utility classes (item or position classes, iterators, iterables) and any additional fields or methods (particularly PROTECTED) that should be implemented.
Define the UnsortedArrayMap class, the concrete implementation of the abstract map that utilizes an array list to store items in the map.
| Maps and Dictionaries Part of Computer Science Notes
Series on Data Structures
Maps/Dictionaries Maps · Maps/ADT · Maps in Java · Maps/OOP · Maps/Operations and Performance Map implementations: Maps/AbstractMap · Maps/UnsortedArrayMap · Maps/SortedArrayMap Dictionary implementations: Dictionaries/LinkedDict · Dictionaries/ArrayDict
Hashes Hash Maps/OOP · Hash Maps/Operations and Performance Hash Maps/Dynamic Resizing · Hash Maps/Collision Handling with Chaining Hash functions: Hash Functions · Hash Functions/Cyclic Permutation Hash map implementations: Hash Maps/AbstractHashMap · Hash Maps/ChainedHashMap
Skip Lists · Java/ConcurrentSkipList · Java implementations: SkipList
Sets Sets · Sets/ADT · Sets in Java · Sets/OOP · Multisets
|