Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
Define what a common subword is in your own words.
Think about parts of words you see in other words.
What does the brute force method do?
Consider how we could manually find matches.
What is a common subword?
Think of segments of strings.
True or False: The brute force method has a time complexity of O(m * n).
Consider the multiple comparisons involved.
Given the words 'intention' and 'attention', find their longest common subword using dynamic programming.
Display a matrix to find each character match.
Write an efficient algorithm in pseudo-code that uses dynamic programming to find the length of the longest common subword between two given strings.
Ensure to handle base cases properly when initializing the table.
6 more questions in this section. Enroll free to practise them all.
Enroll free