subject

Can you search the following array using binary search?

int[] A = {6,5,4,2,0,1,-1,-17};

a. No. Binary search can be applied to a sorted array only.
b. Yes. Binary search can be applied to any array.
c. Yes, but the algorithm runs slower because the array is in descending order.
d. No, negative numbers are not allowed because they indicate that a value is not present.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:30
Imagine that you have a friend who is starting a small business and is interested in using social media to spread the word. he is not certain that it is a good move, and has come to you for . would you advise him to use social media to advertise his business? why or why not? support you answer with information from the text.
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
What is the foundation for proper monitoring, load balancing and routing in distributed systems
Answers: 3
question
Computers and Technology, 22.06.2019 20:00
When you mouse over and click to add a search term this(these) boolean operator(s) is(are) not implied. (select all that apply)?
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
What is a distinguishing feature of today’s graphic application software?) graphic applications are used today on a variety of devices, including touch-screen kiosks and mobile phones.
Answers: 3
You know the right answer?
Can you search the following array using binary search?

int[] A = {6,5,4,2,0,1,-1,-17};<...
Questions
question
Mathematics, 12.09.2021 01:40
question
Geography, 12.09.2021 01:40
question
English, 12.09.2021 01:40
question
Mathematics, 12.09.2021 01:40
question
History, 12.09.2021 01:40