oleksandrzelentsov / levenstein_distance

Implementation of Levenstein distance in C with comparison between several languages.
2 stars 2 forks source link

Implement statistical capabilities #20

Closed oleksandrzelentsov closed 7 years ago

oleksandrzelentsov commented 7 years ago

New behavior

CLI Options

$ ./levenstein-distance --min
<behavior 1>
$ ./levenstein-distance --max
<behavior 2>
$ ./levenstein-distance -d
<behavior 3>
$ ./levenstein-distance --sort
<behavior 4>

Behavior description

Behavior 1 - Words with minimum distance

Just write out the list of words with the minimum distance between them.

Behavior 2 - Words with maximum distance

The same, but use maximum distance instead.

Behavior 3 - Show the distribution of distances

Print the count of how many pairs have how much distance in ordered column or table.

Behavior 4 - Sort the difference list by the distance

Ordinary behavior, but just sort the output by the actual distance.