Show
Ignore:
Timestamp:
14/08/09 16:29:27 (3 years ago)
Author:
westram
Message:
  • spellchecked all (phew)
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/CONSENSUS_TREE/CT_hash.cxx

    r5390 r6141  
    1515HNODE *Sortedlist = NULL; 
    1616 
    17 /** initalize Hashtable and free old data */ 
     17/** initialize Hashtable and free old data */ 
    1818void hash_init(void) 
    1919{ 
     
    5959 
    6060/** return the first element (with the highest hitnumber) from the linear sorted 
    61     list and calculate percentile appearence of this parition in all trees and 
     61    list and calculate percentaged appearance of this partition in all trees and 
    6262    calculate the average pathlength. 
    6363    The element is removed from the list afterwards */ 
     
    8282 
    8383/** insert part in hashtable with weight 
    84     @PARAMTER   part    the one to insert, is destructed afterwards 
     84    @PARAMETER   part    the one to insert, is destructed afterwards 
    8585    weight  the weight of the part                       */ 
    8686void hash_insert(PART *part, int weight) 
     
    8989    HNODE *hp; 
    9090 
    91     part_standart(part); 
     91    part_standard(part); 
    9292 
    9393    key = part_key(part); 
     
    129129    is empty afterwards. I use a simple trick speed up the function: 
    130130    build for every hitnumber one list and put all elements with that hitnumber 
    131     in it. After that i conect the list together, what results in a sorted list 
     131    in it. After that i connect the list together, what results in a sorted list 
    132132*/ 
    133133void build_sorted_list(void) 
     
    163163    head = NULL; 
    164164    tail = NULL; 
    165     /* concatinate lists */ 
     165    /* concatenate lists */ 
    166166    for(i=Hash_max_count-1; i>=0; i--) { 
    167167        if(heads[i]) {