有一步是必须处理的,就是对字符串进行排序;
第二步的方法就比较多:(1)采用字符串哈希(求值)(2)排序后转化为24位的位向量(3)直接排序后的字符串作为标识(书上的方法)
1 #include 2 #include 3 #include 4 #include
hairedhardier harriedtrihedrahardwireairshed dashier hardies shadierairsheds radisheshardiestravisheddishware rawhideshayridesairthedrawhidehayride hydriae
以上是in.txt的内容