Changes between Version 4 and Version 5 of IMMUTABLE_TREE_R0


Ignore:
Timestamp:
08/18/09 18:00:47 (16 years ago)
Author:
stefan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • IMMUTABLE_TREE_R0

    v4 v5  
    66 
    77== 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. 
     8In 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. 
    99 
    1010== Task requirements == 
     
    1515 
    1616== Task result == 
    17 ^(List the end product of the task (for example "Source code", "Wiki page", etc.))^ 
     17Source code that contains working hierarchy of persistence structures with hashing ability. 
    1818 
    1919== Implementation idea == 
    20 ^(Provide some rough implementation idea(s).)^ 
     20Simple implementation hierarchy and name convention: 
     21 * Collection 
     22  * List 
     23  * Set 
     24  * Map 
     25 * Tree 
     26  * Hashing Tree 
     27For 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.  
    2128 
    2229== Related == 
     
    2431 
    2532== How to demo == 
    26 ^(Provide instructions for demonstration of the task.)^ 
     33Result of the time-capacity performance of the Red-Black tree. 
    2734 
    2835= Design = 
    29 ^(Describe your design here.)^ 
     36Following UML class diagram describes the class hierarchy that should be implemented: 
     37[[Image(imm.jpg)]] 
     38 
     39Class ImmDosTree will be the implementation of Red-Black indexed tree. It's extension - ImmHashingTree contains hashable Nodes, so, itself is a hashable tree. 
    3040 
    3141= Implementation =