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.7. Pseudo Code for Edit Distance
This section
Practice test
11 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
4 cards from this lesson. Good the night before a test.
Try these first
- 1.
What is Edit Distance?
Hint
How many operations do we use?
- 2.
List the three types of edit operations.
Hint
Think about how you would change one word to another.
- 3.
What three operations are considered in Edit Distance?
- Insertion
- Deletion
- Substitution
- Only Deletion
- Only Insertion
Hint
Think about what changes you would make to a string.
- 4.
True or False: Edit Distance can be used in spell check applications.
- True
- False
Hint
Consider how spelling errors get corrected.
- 5.
Given the words 'dint' and 'hint', calculate the Edit Distance and detail the operations used.
Hint
Look at how one letter differs.
- 6.
Design your own algorithm or pseudo-code for calculating Edit Distance while using effective memory management principles.
Hint
Think back to how we optimized in class.
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
1 more question available
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