1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! Edit Distance (Levenshtein Distance, Unicode-safe, Production-Grade)
//!
//! Computes the minimum edit distance between two string slices.
//!
//! # Arguments
//! * `a` - The first string slice.
//! * `b` - The second string slice.
//!
//! # Returns
//! * `usize` - The minimum number of operations required to convert `a` into `b`.
//!
//! # Example
//! ```rust
//! use pofk_algorithm::string_algorithms::edit_distance::edit_distance;
//! assert_eq!(edit_distance("kitten", "sitting"), 3);
//! assert_eq!(edit_distance("flaw", "lawn"), 2);
//! assert_eq!(edit_distance("", "abc"), 3);
//! ```