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
oksano4ka [1.4K]
4 years ago
7

The binary search algorithm ________. will have a maximum number of comparisons equal to the number of elements in the array wil

l, normally, have the number of comparisons that is half the number of elements in the array is less efficient than the sequential search algorithm will cut the portion of the array being searched in half each time it fails to locate the search value
Computers and Technology
1 answer:
dimaraw [331]4 years ago
4 0

Answer:

Hi!

The correct answer is:

The binary search algorithm will cut the portion of the array being searched in half each time it fails to locate the search value.

Explanation:

Important! The elements of the array have to be in order to perform a binary search.

For example.

An array of 10 position. Each position represent the value of the element.

If you have to seek the number 1:

  • The first loop takes position 5 and evaluates. The value is greater than  searched, discard the upper part of the array.

      1  2  3  4  5  6  7  8  9  10

  • The second loop takes the position 3 and evaluates. The value is greater than searched, discard the upper part of the array.

      1  2  3 <em> 4  --- 5  6  7  8  9  10</em>

  • The third loop takes the position 2 and evaluates. The value is greater than searched, discard the upper part of the array.

      1  --- <em>2  3</em> <em> 4  5  6  7  8  9  10</em>

  • The fourth loop takes the position 1 and evaluates. The value is equal to searched, finish the seek.

      1 <em> </em><em> ---</em> <em>2 </em> <em>3</em> <em> 4  5  6  7  8  9  10</em>

<em />

You might be interested in
Which part of project management considers if employees will work at home or in the office?
gregori [183]

Answer: i think its resources

Explanation:

5 0
3 years ago
Read 2 more answers
What do you think of the extensive use of the non-diegetic sound in Return of the Jedi (1983)?
Jobisdone [24]

FOR ANYONE THAT WANTS TO STUDY AND CHILL SCREENSHOT BEFORE KATLE DELEATES THIS

meeting id:  932-8097-2909

password:  z99LtX

Explanation:

4 0
3 years ago
Backing up and synchronization are the same thing. <br><br>A.)True<br>B.) False​
Sholpan [36]

Answer: A.)true

Explanation: This is true for a number of reasons, the first being that synced files

3 0
3 years ago
All data process by a computer must be in 1. binary form 2. Hexadecimal form 3. Duodecimal form 4. Unitary form?
avanturin [10]

Binary code I believe.

3 0
3 years ago
Read 2 more answers
Assume the availability of class named IMath that provides a static method, toThePowerOf which accepts two int arguments and ret
geniusboy [140]

Answer:

cubeVolume = IMath.toThePowerOf(cubeSide, 3);

Explanation:

Following is the explanation for above statement:

Left side:

cubeVolume is a variable with data-type int, it will store the integer value that is the output from right side.

Right side:

  • IMath is the class name.
  • toThePowerOf is the built-in function that takes two arguments of data type int. First is the base and second is the power(exponent) separated by comma. In place of first argument that is the base variable we will pass the variable cubeSide that has been declared and initialize.
  • Now the output will be stored in the variable cubeVolume.

i hope it will help you!

4 0
4 years ago
Other questions:
  • MATLAB graphics user interface:<br> Describe what Folder, Command Window and Workspace are.
    5·1 answer
  • When saving a memo you created in Word, which of the following extensions is automatically assigned to the document?
    8·2 answers
  • By issuing concert tickets on the blockchain, fans can verify transfer of ownership from one digital wallet to another, rather t
    14·1 answer
  • What does rwd stand for?
    8·2 answers
  • The company database may be stored on a central database server and managed by a database adminstrator true or false
    12·1 answer
  • I need help plzzzzzzzz
    10·2 answers
  • Should I Buy a 2070 super or 2060 super
    6·1 answer
  • Pda bkhhksejc pnwjoynelp dwo xaaj ajykzaz ywj ukq zaykza ep???<br><br><br> The Key Value is 22
    12·1 answer
  • Plzzz help i need this today :(
    15·1 answer
  • How will understanding IT help me achieve my goals in life?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!