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
NNADVOKAT [17]
4 years ago
7

If a binary search is applied to an array with 1024 elements, in the worst case, the main loop executes, approximately, _____.

Computers and Technology
1 answer:
trasher [3.6K]4 years ago
7 0

Answer:

10.

Explanation:

Binary search divides the array to be search each in half according to the value of the element.

The worst case time complexity of binary search is O(logN).

In this case the time complexity will come out to be log₂(1024)=10.

So the binary search can divide this array in half maximum of 10 times.

Hence the main loop will executes 10 times.

You might be interested in
While it might be considered "old-school," which action should you take if you are unsure how a page will print, even after look
coldgirl [10]

Answer:

The correct answer is D

4 0
3 years ago
1. What is an advantage of the PCIe bus over the PCI bus?
m_a_m_a [10]

Answer:

Explanation:

1. PCI Express (PCIe) is a next generation I/O bus architecture. Rather than a shared bus, each PCIe slot links to a switch which prioritizes and routes data through a point-to-point dedicated connection and provides a serial full-duplex method of transmission.

2. Mini-ITX or Laptops

3.PCMCIA Personal Computer Memory Card International Association

4. PCIe x1 slot

8 0
4 years ago
Im confused sorry.. can i get help?
garik1379 [7]

1.

If-then statements are used in a program to run certain code when ideal conditions are met.

2.

Since the variable word holds the word kangaroo and the if statement is asking if the variable word is equal to KANGAROO, the else statement will run. The output will be FALSE

3.

if (90 < = x <= 100) should be rewritten as Nothing, the if statement is correct.

4.

You use an else statement when you want your code to do something if your if statement is false.

5.

if (num1 != num2)

I hope this helps!

7 0
3 years ago
You are the project manager tasked to implement a critical application in a reputed bank. A client review indicates that you cou
Oksana_A [137]
Hiring based on unbais form
6 0
3 years ago
What traditional responsibilities are removed from an organization when moving to a cloud provider?
Black_prince [1.1K]

The traditional responsibilities removed from an organization when moving to a cloud provider includes;

  • Cloud provider providing system maintenance rather than IT personnel.
  • Responsibility for the provision of storage space will be borne by the cloud provider.
  • The provision of the required level of performance of shared IT hardware.
  • Provision of security for the organization's data will be partly shared.
  • Provision of capital for upgrade and expansion.
  • Reduced responsibility for the provision of space and hardware Universal access route to company sites.

Reasons:

The maintenance of the systems traditionally performed by the

organization is  carried out by the cloud provider.

The storage space requirements for files and shared document are

provided by the cloud provider which results in increased collaboration.

Along with the changing landscape of technology, the cloud provider

ensures the optimum performance IT hardware that is shared by the

employees of the organization.

The Cloud provider ensures the security of the data stored on the cloud as

it is accessed from different devices.

The capital requirement for expansion is borne by the provider

With the use of cloud services, employees can work from home and other

remote locations.

Learn more about cloud services here:

brainly.com/question/25602226

5 0
2 years ago
Other questions:
  • Students recently created a Gaming Club at their school. On Friday every week, students bring in their gaming consoles (Xbox, Pl
    7·2 answers
  • Max magnitude Write a method maxMagnitude() with two integer input parameters that returns the largest magnitude value. Use the
    13·1 answer
  • The ____ keyword specifies that a function or method does not return a value.
    5·1 answer
  • Plz help! 3 questions! 1.The ideal light to use is.... A.front light B.a combination of side and back light C.a combination of f
    10·1 answer
  • Norman Bates has a very unusual hobby what is it?
    13·1 answer
  • ITS MAKING ME TYPE URL CODES NOW!
    6·1 answer
  • Minerals that contain the elements silicon and oxygen are called ______.
    7·1 answer
  • How do I answer question
    8·1 answer
  • Which types of online reading tools are available within the CloseReader? Check all that apply.
    11·1 answer
  • Hadley made a plan that after downloading the Eclipse IDE, she would disable her security program, extract and install Eclipse,
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!