To search the names array for the name "Janey" using a binary search, what should the initial value of high be?

```
var low = 0; var N = 200; var high = 0;
var key = "Janey"; var index = 0; var found = 0;
```

a. 0
b. N
c. Math.round((N+1)/2)
d. 99


b. N

Computer Science & Information Technology

You might also like to view...

In the Properties window, which tab displays the space remaining on the computer's hard disk?

A. Hardware B. Security C. General D. Sharing

Computer Science & Information Technology

Write a computer program to realize the fitness-based network evolution model. Estimate the time complexity to execute the program. Make necessary assumptions.

What will be an ideal response?

Computer Science & Information Technology

Propose an improvement that permits bitmap indices to maintain only n ? 1 bit vectors in order to represent attributes that can take n di?erent values. Discuss the change that is needed to perform selection, especially in case of a multiattribute selection that requires a Boolean operation on multiple bit vectors.

What will be an ideal response?

Computer Science & Information Technology

Discuss the four types of software theft.

What will be an ideal response?

Computer Science & Information Technology