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
zloy xaker [14]
2 years ago
5

The sorted values array contains the sixteen integers 1, 2, 3, 13, 13, 20, 24, 25, 30, 32, 40, 45, 50, 52, 57, 60. How many recu

rsive calls are made by our binarySearch method given an initial invocation of binarySearch(45, 0, 15)
Computers and Technology
1 answer:
Licemer1 [7]2 years ago
6 0

The number of recursive calls that have to be done using the binary search is 4.

<h3>How to do the recursive calls</h3>

binarySearch = (45, 0, 15)

start + end / 2 = value

mid = 0 + 15/2 = 7.5

The 7th element = 30

30 is less than 45

8 + 15/3

= 23/2 = 11.5

The 12th element = 52

52 is greater than 45

8 + 11/2

= 19/2 = 9.5

The value of 9 = 40 and 40 is less than 45

10+ 11/2 = 10.5

The tenth value is 45 hence the iteration to be done is 4.

Read more on binary here:

brainly.com/question/21475482

#SPJ1

You might be interested in
What's the best thing that's happened to you during quarantine?
Zanzabum
Getting out of quarantine
3 0
3 years ago
Read 2 more answers
Code is the code or instructions used to create a Web page or<br> program.
Paha777 [63]
Answer:
HTML
Explanation:

5 0
3 years ago
Kevin has to decide on a financial service provider that will help him with his needs related to tax exemptions and payments. He
salantis [7]

Answer:

A. an individual, Mr. Rupert, who has a lot of experience in handling taxes, but is not affiliated to any big firm

Explanation:

Xenon does not have experience in tax-related queries. Hence, it's not a good choice. Radon also has only some experience in handling taxes, though it has discouraging references. Hence, he is also not a choice. Argon is from another state, though it has a good website. But the website cannot be an option, And hence, Mr. Rupert which has a lot of experience in handling taxes is the right option for you. However, Experience is more important than the firm.

6 0
4 years ago
What is a shot sequence
Elan Coil [88]
A shot sequence is the time between when a shot is shot and when it lands
7 0
4 years ago
What is one way for an entrepreneur to decrease risk?
marysya [2.9K]

Answer

we can  decrease risk for an entrepreneur by creating a team of trusted advisors to rely on.

there are some points that we can take in mind know how  to position our company as a safe position.

revenue streams and additional technology, paving the way for future growth.

Entrepreneurs can use all these  unique strategies to decrease those risk

8 0
3 years ago
Other questions:
  • Can you help please.
    11·1 answer
  • How can a Word user insert a page break into a document to isolate a table on a new page?
    13·2 answers
  • Is ubisoft still making assassins creeds on xbox 360
    8·2 answers
  • Computer is created by aliens?!
    14·1 answer
  • Write the proghrams for the following:
    13·1 answer
  • Which of the following is not an example of debugging? looking for errors in programming code. fixing misspelled commands in pro
    13·1 answer
  • Briefly explain why corporations are increasingly interested in using Unix or Linux for their operating systems.
    5·1 answer
  • How to start the ms excel​
    10·1 answer
  • To read cheques, banks use​
    11·1 answer
  • Tools such as microsoft's word, excel, and powerpoint are examples of ________ software. question content area bottom part 1 a.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!