GATE Assistant

Past questions › Humanities and Social Sciences › GATE 2026 C3

GATE 2026 C3 · XH · NAT · 1 mark · Linguistics (XH3) › Methods of Analysis

GATE 2026 C3 Humanities and Social Sciences question: Levenshtein distance is used to measure the minimum edit distance between two strings by…

Levenshtein distance is used to measure the minimum edit distance between two strings by counting the minimum number of editing operations (such as, insertions, deletions, substitutions) required to transform one string to another. Consider an alternative version of the Levenshtein distance in which each insertion and each deletion has a cost of 1 and substitutions are not allowed.

Based on this alternative version, the Levenshtein distance between the strings, word and work is ______ (Answer in integer).

Show answer

Official answer: 2

Practise this question with exam-style marking

Discussion

No discussion yet.

Join the discussion