Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Character query and integer numData are read from input. Then, numData alphabetically sorted characters are read from input and each character is appended to a
Character query and integer numData are read from input. Then, numData alphabetically sorted characters are read from input and each character is appended to a vector. Complete the FindData() function: - If query is alphabetically before the element at index middlelndex of the vector, output "search lower half" and recursively call FindData( to find query in the lower half of the range. - Otherwise, output "search upper half" and recursively call FindData() to find query in the upper half of the range. End each output with a newline. Ex: If the input is: 05acg0x then the output is: search upper half
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started