10(a)(i)Searching AlgorithmsEasy2 marks
A program declares a 1D array globally as PartName[1:1000000] OF STRING, and sorts its contents in ascending alphabetical order. The function PartSearch performs a binary search on the array. The item to be found is passed as a parameter. If it is found, its location in the array is returned, otherwise, is returned.
Complete the following table to define the variables used in the function.
| Identifier | Data type | Description |
|---|---|---|
| Left | 0 words | |
| Right | 0 words | |
| Mid | 0 words | |
| Target | 0 words |