MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / edit_distance.py

File edit_distance.py

strings/edit_distance.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1def edit_distance(source: str, target: str) -> int:
2 """
3 Edit distance algorithm is a string metric, i.e., it is a way of quantifying how
4 dissimilar two strings are to one another. It is measured by counting the minimum

Callers

nothing calls this directly

Calls 1

edit_distanceFunction · 0.85

Tested by

no test coverage detected