Ignore:
Timestamp:
07/12/13 16:45:53 (11 years ago)
Author:
pharms
Message:
  • improved performance of the trie for large alphabets by using the symbol map. This is an improved list of symbols that allows a more efficient lookup for symbols using buckets of symbol as an initial search order
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-core-usageprofiles/src/main/java/de/ugoe/cs/autoquest/usageprofiles/DefaultSymbolComparator.java

    r1196 r1251  
    3030 
    3131    /* (non-Javadoc) 
    32      * @see de.ugoe.cs.autoquest.tasktrees.temporalrelation.SymbolComparator#equals(java.lang.Object, java.lang.Object) 
     32     * @see de.ugoe.cs.autoquest.tasktrees.temporalrelation.SymbolComparator#equals(Object, Object) 
    3333     */ 
    3434    @Override 
     
    4242    } 
    4343 
     44    /* (non-Javadoc) 
     45     * @see de.ugoe.cs.autoquest.usageprofiles.SymbolComparator#getBucketSearchOrder(Object) 
     46     */ 
     47    @Override 
     48    public int[] getBucketSearchOrder(T symbol) { 
     49        if (symbol != null) { 
     50            return new int[] { symbol.hashCode() }; 
     51        } 
     52        else { 
     53            return null; 
     54        } 
     55    } 
     56 
    4457} 
Note: See TracChangeset for help on using the changeset viewer.