1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Crank
3 years ago
14

A binary search algorithm is written (as in the modules, for example) which searches a pre-sorted array for some user-defined va

lue, clientData. If clientData is stored in the array, it returns its array position, and if not found, it returns -1 (again, just like in the modules). Assume the array to be searched has 100 data elements in it. (Check all that apply):[NOTE: due to common off-by-one interpretations when counting such things, if your predicted answer is within one (+1 or -1) of a posted option below, you can assume your prediction and the choice you are looking at are equivalent and check that option.]A. It might return to the client with an answer after only one comparison of data.B. It may require as many as 99 comparisons of data before it returns.C. It will always return with an answer in 7 or fewer comparisons of data.D. It will always return with an answer in 3 or fewer comparisons of data.
Computers and Technology
1 answer:
Mazyrski [523]3 years ago
4 0

Answer:

c) it will always return with an answer of 7 or fewer comparisons of data.

Explanation:

As maximum number of comparison in worst case for sorted binary search is log₂n, here n = 100, so maximum search is at least 6.6 which is approximately 7.

You might be interested in
Which guidelines should you follow when adding tables or spreadsheets to your presentations?
zhenek [66]
<span>What guidelines should you follow when adding tables or spreadsheets to your presentations?

a. Limit the number of columns to four.
b. Make them large enough so they can be seen by your audience.
c. Use a small font size (10-point or less) so all of your information fits on the slide.
d. Use at least eight rows.
e. Use column and row headers that are appropriate and descriptive.</span>

A, B, E are the answers. I know this is a different script but should help you if need be.
5 0
4 years ago
Read 2 more answers
An I/O-bound program is one that, if run alone, would spend more time waiting for I/O than using the processor. A processor-boun
Lelechka [254]

Answer with Explanation:

An I/O-bound the programs that are used relatively a little processor times and are favored by an algorithm. However, if the processor bound process is denied the processor time for the sufficiently long periods of times, the same algorithms will be granted a processor to the process and it has not use the processors at all in recent pasts. Therefore, the processor bound process will not be the permanently denied to access.

3 0
3 years ago
In the context of the database design process, the conceptual design step that defines the fragmentation and allocation strategy
cluponka [151]
In the context of the database design process, the conceptual design step that defines the  fragmentation and allocation strategy is the database design flashcards. The distributed data base design problem is presented that involve a development of a global model ; a fragmentation and a  data allocation.
4 0
3 years ago
I pressed a button on my MacBook safari and all my tabs disappeared. What happened?
hodyreva [135]
Maybe try resetting your Macbook I do not have a Macbook I have a Toshiba laptop but that happen to me before where all the tabs basically zoom in. To zoom out in your tabs press CTRL and (-) at the same time. Or if that does not work try resetting. Best of luck!


8 0
3 years ago
Think about one form of technology you can’t imagine living without. Is it your smart television? Minecraft? Your smartphone or
Alika [10]

Answer:

A computer

Explanation:

I need this for for school purposes and slightly for entertainment. Regarding what would happen if it was taken away for a week, I would most likely fail a class or two based on the standards they measure by. Quite frankly, it's not that I'm crazy about having it, it's the fact that I need it for the time being if I wish to further accel in the world and get to where I want to be. I use it for about 5 or 6 hours a day. This is the technology I don't want to do without.

Have a great day.

3 0
3 years ago
Read 2 more answers
Other questions:
  • What function does a mobile device’s accelerometer serve?
    8·2 answers
  • _____ is when network managers deal with network breakdowns and immediate problems instead of performing tasks according to a we
    9·1 answer
  • • In your response, please include some examples of the three different types of storage.
    11·2 answers
  • What’s the purpose of balancing or monitoring your checking account?
    12·2 answers
  • Select the focus questions that emphasizes what is more important: (Select all that apply)
    9·1 answer
  • 20. The following are considered as ICT skills EXCEPT
    15·1 answer
  • What is the correct sequence of processing instructions in a machine cycle?
    6·1 answer
  • Im a beginner programmer. what languages should i learn and how do i get better
    13·1 answer
  • your organization has decided to use dhcp for ipv6. you want all windows 10 systems using ipv6 to get all of their tcp/ip inform
    12·1 answer
  • Sophia's plays her favorite game on her phone, where the game uses the phone's
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!