Search the courses, subjects, tracks, games and features, or jump straight to a page.
4 cards from this section. Quick, good the night before a test.
Define a subword.
Think about smaller parts of a word.
What is the brute force algorithm?
It's a straightforward but inefficient way.
What is the longest common subword of 'internet' and 'intranet'?
Look for the longest matching segment.
True or False: In a brute force approach, we do not try all possible combinations.
Consider how brute force methods work.
Given the strings 'ABCDEF' and 'ABXYEF', find the longest common subword and its length.
Identify segments that appear in both strings.
In an algorithm using dynamic programming, explain how you would track the maximum common subword length during runtime.
Consider how the table fills with common segment data.
5 more questions in this section. Enroll free to practise them all.
Enroll free