Bird
0
0

What is the edit distance between the words "kitten" and "sitting"?

medium📝 Predict Output Q13 of 15
NLP - Text Similarity and Search
What is the edit distance between the words "kitten" and "sitting"?
A2
B4
C3
D5
Step-by-Step Solution
Solution:
  1. Step 1: Identify edits from "kitten" to "sitting"

    Changes: substitute 'k' -> 's', substitute 'e' -> 'i', insert 'g' at the end.
  2. Step 2: Count total edits

    There are 3 edits: 2 substitutions and 1 insertion.
  3. Final Answer:

    3 -> Option C
  4. Quick Check:

    Edits counted = 3 [OK]
Quick Trick: Count substitutions + insertions + deletions [OK]
Common Mistakes:
MISTAKES
  • Counting only substitutions
  • Missing the final insertion
  • Confusing similar letters as no change

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More NLP Quizzes