Tag

edit-distance

0 views collected around this technical thread.

Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 13, 2024 · Fundamentals

Exploring Diff Algorithms: Edit Distance, Longest Common Subsequence, and Myers Algorithm with TypeScript Implementations

This article examines the principles behind diff tools by implementing three approaches—Levenshtein edit distance, longest common subsequence, and the Myers algorithm—in TypeScript, detailing dynamic-programming solutions, back-tracing techniques, and visualizations to illustrate how strings can be transformed efficiently.

AlgorithmDiffTypeScript
0 likes · 19 min read
Exploring Diff Algorithms: Edit Distance, Longest Common Subsequence, and Myers Algorithm with TypeScript Implementations
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 11, 2023 · Fundamentals

Exploring Diff Algorithms: Shortest Edit Distance, Longest Common Subsequence, and Myers Algorithm with TypeScript Implementations

This article investigates how diff tools work by presenting three algorithmic approaches—shortest edit distance, longest common subsequence, and the Myers algorithm—each explained with dynamic‑programming concepts, back‑tracing techniques, and complete TypeScript code examples.

AlgorithmDiffTypeScript
0 likes · 14 min read
Exploring Diff Algorithms: Shortest Edit Distance, Longest Common Subsequence, and Myers Algorithm with TypeScript Implementations