Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clojure: Levenshtein updates #254

Merged
merged 2 commits into from
Dec 18, 2024
Merged

Conversation

PEZ
Copy link
Contributor

@PEZ PEZ commented Dec 14, 2024

I noticed that some Levenshtein implementations skip redundant comparisons in a way that the reference implementation does not. And also that some implementations calculates the wrong min_distance.

I think we can make the run.sh script check for correctness of the output. I can have a stab at that, if you like, @bddicken. The tricky one is loops with it's random(), but there's still a range we can check there I think.

UPDATE: Since most of my changes where about enforcing the old reference implementation, I have removed those now. And instead updated the Clojure implementation to match the new reference implementation.

@PEZ PEZ force-pushed the levenshstein-corrections branch from 94ec047 to 149cda6 Compare December 16, 2024 11:12
@PEZ PEZ changed the title Levenshstein corrections Clojure: Levenshtein updates Dec 16, 2024
@PEZ PEZ mentioned this pull request Dec 16, 2024
@bddicken
Copy link
Owner

Sweet!

@bddicken bddicken merged commit de33e58 into bddicken:main Dec 18, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants