Questions
Questions
Single choice

Match the computational problem with the most appropriate algorithm that can be used to solve it. Do two student essays share a common phrase consisting of a sequence of more than 100 letters? Given the airports at which an airline operates and the distances between those airports, what is the shortest total flight distance between two airports? Given a sorted array of a company's employee records and an employee's first and last name, what is a specific employee's phone number?

Options
A.A)1 - Binary Search2 - Shortest Path Algorithm3 - Longest Common Substring
B.B)1 - Longest Common Substring2 - Shortest Path Algorithm3 - Binary Search
C.C)1 - Shortest Path Algorithm2 - Longest Common Substring3 - Binary Search
D.D)1 - Longest Common Substring2 - Binary Search3 - Shortest Path Algorithm
View Explanation

View Explanation

Verified Answer
Please login to view
Step-by-Step Analysis
To tackle this question, I’ll map each described problem to the most appropriate algorithm technique and then evaluate which option aligns with all three mappings. Option A: "1 - Binary Search, 2 - Shortest Path Algorithm, 3 - Longest Common Substring". For problem 1, binary search is unsuitable for finding a shared phrase between two large texts, since binary search is used on sorted data or to locate a target within a sorted structure, not to compare arbitrary substrings. So this mislabels the first problem. For problem 2, while a shortest path problem could be solved by a shortest path algorithm, option A a......Login to view full explanation

Log in for full answers

We've collected over 50,000 authentic exam questions and detailed explanations from around the globe. Log in now and get instant access to the answers!

More Practical Tools for Students Powered by AI Study Helper

Join us and instantly unlock extensive past papers & exclusive solutions to get a head start on your studies!