Closed yuki24 closed 9 years ago
@yuki24 I've rewrited the algorithm and it suppose to be correct in branch issues/9
, however, the adjusting table is not implemented yet. :stuck_out_tongue:
Unfortunately, I am going to Okinawa tomorrow for traveling, I'll continue working on this after coming back(1 week), thanks reporting this issue :+1:
@tonytonyjan Thanks! Have fun in Okinawa :sunny: :ocean: :surfer:
@yuki24 I'm going to listen to your talk tomorrow, see you in Ruby Kaigi 2015 :)
The calculation result of t (half number of transposition) is different from the original implementation. Thus, the distance between a certain pair of 2 strings is incorrect.
necessary
andnessecary
does_exist
anddoesnt_exist
12345678
and12345687
12345678
and12345867
12345678
and12348567
I'm not sure which one is mathematically better as a string metric, but at least the algorithm should be consistent.