Enrol to start learning
Reading is open to everyone. Enrolling is free, and it is what unlocks the audio lessons, practice tests and progress tracking.
5.6. Inductive Structure of Edit Distance
This section
Practice test
10 questions on this section. Wrong answers show you what to read again.
Sign up to take itWhole chapter
Revision test
Mixed questions from across the chapter. Your answers get marked.
Sign up to take itQuick
Flashcard drill
2 cards from this lesson. Good the night before a test.
Try these first
- 1.
Calculate the Edit Distance for 'bat' and 'cat'.
Hint
Consider only character replacements.
- 2.
What operation is used to convert 'good' to 'goood'?
Hint
Think about how we add characters.
- 3.
What does Edit Distance measure?
- Number of characters in a string
- How alike two strings are
- Time complexity of an algorithm
Hint
Think of the purpose of measuring similarity.
- 4.
True or False: Edit Distance can only be calculated for words with the same length.
- True
- False
Hint
Consider the flexibility of character operations.
- 5.
How would you convert 'algorithm' to 'alliteration'? Calculate the required Edit Distance.
Hint
Start by identifying shared and differing characters between the two words.
- 6.
Given two strings of different lengths, 'happy' and 'unhappiness', calculate the Edit Distance.
Hint
Consider how you can minimize the longer string to match the shorter one.
Exercises
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
4 more questions available
Enrol freeQuiz
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
Get your answers marked and your progress tracked
Enrol freeChallenge Problems
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting