https://github.com/kkkooolllyyyaaa/text-similarity
Editing distance algorithm realisation
https://github.com/kkkooolllyyyaaa/text-similarity
edit-distance-algorithm lewenstein-distance
Last synced: 8 months ago
JSON representation
Editing distance algorithm realisation
- Host: GitHub
- URL: https://github.com/kkkooolllyyyaaa/text-similarity
- Owner: kkkooolllyyyaaa
- Created: 2022-04-14T10:05:10.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-23T14:34:00.000Z (over 3 years ago)
- Last Synced: 2025-01-14T04:09:47.071Z (10 months ago)
- Topics: edit-distance-algorithm, lewenstein-distance
- Language: Java
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lewenstein Distance Algorithm
## Task Description ##
input.txt
N - number of lines of first part
line1
line2
...
lineN
M - number of lines of second part
line1
line2
...
lineM
It is required to distribute the most similar rows into pairs
output.txt
min(N, M) rows of
linei : linej
max(N, M) - min (N, M) rows of
linei : ?
# Example #
## input.txt ##
3
distance
life is a box of chocolates
hello everybody
4
editing
hello world
chocolate gift box
never gonna give you up, never gonna break you down
## output.txt ##
distance : editing
life is a box of chocolates : chocolate gift box
hello everybody : hello world
never gonna give you up, never gonna break you down : ?