Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using C Q8 Write a RECURSIVE version of BINARY SEARCH algorithm that does the following: i) Declares and initializes an array of pointers to hold

Using C

image text in transcribedimage text in transcribed

Q8 Write a RECURSIVE version of BINARY SEARCH algorithm that does the following: i) Declares and initializes an array of pointers to hold the names of 10 different students in an alphabetical order as follows: char * ArraylD[ARRSIZE] {"Alia","Bea,"Che","Derick","Elena","Fatma","Giun","Henry","Ina","Jaden"J ii)Accepts a search target name from the user iii Compare the name inputted by the users with those in the list using binary search iv) Ifthe user provided number is present in the array, print: The index of the target name is index value. v) Output the left, middle, and right index for every iteration of the search vi Prints an output in the following format

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions