1. Home
  2. Computer Science MCQs
  3. Algorithms and Data Structures
  4. Which algorithm efficiently computes the edit distance…

Added 12 Sep 2025

Which algorithm efficiently computes the edit distance between two strings?

  1. Naive Recursion
  2. Wagner-Fischer Algorithm Correct answer
  3. Greedy Algorithm
  4. Divide and Conquer

Correct answer

B. Wagner-Fischer Algorithm

13 views

MCQSEXAM

Explanation

The Wagner-Fischer algorithm computes edit distance using dynamic programming in O(mn) time.

Reference

Asked in: GATE CS, UGC NET CS

https://www.geeksforgeeks.org/edit-distance-dp-5/

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Algorithms and Data Structures MCQs

Practise all Algorithms and Data Structures MCQs

Similar MCQs