Changes between Version 4 and Version 5 of IMMUTABLE_TREE_R0
- Timestamp:
- 08/18/09 18:00:47 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
IMMUTABLE_TREE_R0
v4 v5 6 6 7 7 == Overview == 8 In order that new project's persistence could be implemented, immutable structures are needed - like immutable tree. Immutability requires that every operation delivers reference to a new tree, in which changes (one defined by the operation) are made, in same time not modifying the tree of origin. 8 In order that new project's persistence could be implemented, immutable structures are needed - like immutable tree. Immutability requires that every operation delivers reference to a new tree, in which changes (one defined by the operation) are made, in same time not modifying the tree of origin. In that sence, operation should use data of the origin tree as much as possible, and add/remove/change elements only where needed. 9 9 10 10 == Task requirements == … … 15 15 16 16 == Task result == 17 ^(List the end product of the task (for example "Source code", "Wiki page", etc.))^ 17 Source code that contains working hierarchy of persistence structures with hashing ability. 18 18 19 19 == Implementation idea == 20 ^(Provide some rough implementation idea(s).)^ 20 Simple implementation hierarchy and name convention: 21 * Collection 22 * List 23 * Set 24 * Map 25 * Tree 26 * Hashing Tree 27 For the hashing purposes, several already existing classes are introduced (like Hash, Hasher...). Good idea for the names of the classes and methods is to add "imm" prefix to classes that contain structures and are used to store persistent data. 21 28 22 29 == Related == … … 24 31 25 32 == How to demo == 26 ^(Provide instructions for demonstration of the task.)^ 33 Result of the time-capacity performance of the Red-Black tree. 27 34 28 35 = Design = 29 ^(Describe your design here.)^ 36 Following UML class diagram describes the class hierarchy that should be implemented: 37 [[Image(imm.jpg)]] 38 39 Class ImmDosTree will be the implementation of Red-Black indexed tree. It's extension - ImmHashingTree contains hashable Nodes, so, itself is a hashable tree. 30 40 31 41 = Implementation =