8000 Make names of variables reflect what they mean by lanzkron · Pull Request #19 · luozhouyang/python-string-similarity · GitHub
[go: up one dir, main page]

Skip to content

Make names of variables reflect what they mean #19

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

Merged
merged 1 commit into from
Sep 8, 2020
Merged

Make names of variables reflect what they mean #19

merged 1 commit into from
Sep 8, 2020

Conversation

lanzkron
Copy link
Contributor
@lanzkron lanzkron commented Sep 8, 2020

Rename the variable for s0[i] from s1i to s0i and similarly for s1[j]

This is a very minor change but I think it would reduce confusion while reading/debugging the code (it did for me anyway).

Rename the variable for `s0[i]` from `s1i` to `s0i` and similarly for `s1[j]`
@luozhouyang luozhouyang merged commit a45c796 into luozhouyang:master Sep 8, 2020
@luozhouyang
Copy link
Owner

@lanzkron thanks!

@lanzkron lanzkron deleted the consistent-naming-of-variables branch September 8, 2020 07:47
@lanzkron
Copy link
Contributor Author
lanzkron commented Sep 8, 2020

Thank you!

Can you explain (or point me to an explanation of) the algorithm here? I'm trying to understand the meaning of v0 and v1 and why they are swapped after each char in s0.

I understand the basics of Levenshtein Distance but this algorithm is different.

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
0