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
Usimov [2.4K]
4 years ago
11

Bill has an algorithm, find2D, to find an element x in an n × n array A. The algorithm find2D iterates over the rows of A and ca

lls the algorithm arrayFind, of Algorithm 1.12, on each one, until x is found or it has searched all rows of A. What is the worst-case running time of find2D in terms of n? Is this a linear-time algorithm? Why or why not?
Mathematics
1 answer:
KatRina [158]4 years ago
4 0

Answer:

The worst case run time of Find2D is O(n²) because the worst case run time of arrayFind is O(n) and this function will be called for n rows from Find2D algorithm, hence O(n²) .

An algorithm is said to have linear time if its worst case run time is O(n). Since it is O(n²) for Find2D, it is not a linear time algorithm

Step-by-step explanation:

You might be interested in
420 student 25 times 3 times the number of girls 2 times the number of boys how many girls amd how many boys
Georgia [21]

Complete Question

We have a total of 420 students. 2 times 3 times the number of girls is equal to 2 times the number of boys how many girls and how many boys

Answer:

The number of boys = x = 315 boys

The number of girls = y = 105 girls

Step-by-step explanation:

Let

The number of boys = x

The number of girls = y

We have 420 students

2 times 3 times the number of girls is equal to 2 times the number of boys

x + y = 420..... Equation 1

2 × 3y = 2x

6y => 2x

x => 6y/2 = 3y

We substitute 3y for x in Equation 1

3y + y = 420

4y = 420

y =>420/4

y => 105

Solving for x

x = 3y

x = 3 × 105

x = 315

Therefore,

The number of boys = x = 315 boys

The number of girls = y = 105 girls

4 0
3 years ago
WRITE Math Explain how percents, fractions, and
sineoko [7]
Hehehaheheeeh hheeeheehehe
4 0
4 years ago
There are 4 fewer cats than dogs. there are2 cats. how many dogs are there?
bogdanovich [222]

Answer:

There are 6 dogs

2 + 4 = 6

Six Dogs Total

Hope this helps!

- Quinn <3

4 0
4 years ago
State the x and y intercepts of 4x-3y=-12<br> im confused on how to find it can someone please help.
gogolik [260]

Answer: X intercept= (-3,0) Y intercept= (0,4)

Step-by-step explanation:

3 0
3 years ago
Averigua: Cuantos habitantes tiene tu localidad y cuantos tu provincia Calcula A qué porcentaje de la población del Ecuador con
Diano4ka-milaya [45]

Answer:

La Provincia del Guayas comprime el 25.1% de la población de Ecuador. A su vez, la Ciudad de Guayaquil tiene una población igual al 15.58% de la población ecuatoriana.

Step-by-step explanation:

Dado que vivo en la Provincia del Guayas, y en la ciudad de Guayaquil, los datos de población solicitados son los siguientes:

-Provincia del Guayas: 4.387.434 habitantes, es decir, un 25.1% del total de la población de Ecuador, que es de 17.475.570 habitantes, conforme surge del siguiente calculo:

17.475.570 = 100

4.387.434 = X

4.387.434 x 100 / 17.475.570 = X

438.743.400 / 17.475.570 = X

25,10 = X

-Ciudad de Guayaquil: 2.723.665 habitantes, es decir, un 15.58% del total de la población de Ecuador, conforme surge del siguiente cálculo:

17.475.570 = 100

2.723.665 = X

2.723.665 x 100 / 17.475.570 = X

272.366.500 / 17.475.570 = X

15.58 = X

7 0
3 years ago
Other questions:
  • enrico is laying 1-ft tiles ok a square bathroom floor. if he needs 81 tiles to cover the floor, how many tiles run along each w
    6·1 answer
  • Josephine was asked to make a one-fiftieth scale model of the new water tower for her town. She constructed the model that is sh
    13·2 answers
  • Which choice represents the best rational approximation for the square root of 20 ?
    14·1 answer
  • Help on this question pls
    12·1 answer
  • What is 79/10 as a decimal
    5·2 answers
  • Which expression is equivalent to −3 2/3?
    7·1 answer
  • What mixed number can this improper fraction be converted to 5/2
    9·1 answer
  • Amy and Jeffrey are applying for a home loan. The monthly payment must be $1400 or less and they want the lowest interest rate t
    10·2 answers
  • If f(x) = 3x^2 – 2 and g(x) = 2x + 4, find (f- g)(x).
    14·1 answer
  • Know how to calculate sample size: A restaurant would like to estimate the average $ amount of a take-out order. The standard de
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!