answer.
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]
2 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]2 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
Which equations represent a line that passes through the points given in the table? Check all that apply.
solong [7]

Answer:

I believe the answer is the 2nd box{y-2=1/6 (x+10)}, 3rd box{y-1=1/6(x+4)}, and the 5th box{y=1 x/6 +1/3}.

Step-by-step explanation:

5 0
1 year ago
Read 2 more answers
Explain why the vertical line test is used to determine if a graph represents a function.
Aleksandr [31]
Hi there Mary Dominguez, So what a vertical line test down is to find out if a particular graph is a function or not. What you do is take a vertical strait line and move it right to left or left to right, depending on your preference, along the X axis. The reason this works is a function can not have an x that has 2 different y values. If we use the vertical line test on a graph with say a graph that has (2,3) and (2,4) we can use the vertical line test and see that the line hits 2 points at once which means its not a function :)
4 0
2 years ago
Read 2 more answers
A rectangular pool 18 meters by 12 meters is surrounded by a walkway of width x
vesna_86 [32]

Answer:

x=3 meters

Step-by-step explanation:

step 1

Find the area of the rectangular pool

A=LW

we have

L=18\ m\\W=12\ m

substitute

A=18(12)=216\ m^2

step 2

Find the area of rectangular pool including the area of the walkway

Let

x ----> the width of the walkway

we have

L=(18+2x)\ m\\W=(12+2x)\ m

substitute

A=(18+2x)(12+2x)

step 3

Find the area of the walkway

To find out the area of the walkway subtract the area of the pool from the area of rectangular pool including the area of the walkway

so

A=(18+2x)(12+2x)-216

step 4

Find the value of x if the area of the walkway equal the area of the pool

so

(18+2x)(12+2x)-216=216

Solve for x

(18+2x)(12+2x)=432\\216+36x+24x+4x^{2}=432\\4x^{2} +60x-216=0

Solve the quadratic equation by graphing

The solution is x=3 meters

see the attached figure

8 0
2 years ago
In an anonymous survey 34 students reported the hours they studied for a statistics final exam. The histogram below shows the re
Darina [25.2K]

Answer:

c

Step-by-step explanation:

we have to use a mean to describe the center

4 0
2 years ago
The data set shows the admission prices at several museums. $20, $20, $16, $12, $15, $25, $11 Find and interpret the range, inte
Gemiola [76]
11, 12, 15, 16, 20, 20, 25
Mean: 17

The range is 25-11 = 14 (the numbers in bold)

The interquartile range is 20-12=8 (the numbers underlined)

The mean absolute deviation is: 4; this is found by finding how far each number is from 17 (mean): 6,5,2,1,3,3,8  (28) and dividing by 7.

Part B:

The prices vary by no more that $14 (range).

<span>The middle half of the prices vary by no more than $8 (IQR).
</span>
<span>The admission prices differ from the mean price by an average of $4 (MAD).</span> 

8 0
1 year ago
Other questions:
  • pencils come in cartons of 24  boxes. A school bought 50 cartons of pencils for the start of school. Each box of pencils cost  $
    9·2 answers
  • Charlotte is redecorating the master bedroom in her house. She has purchased a new bedroom set and also plans to paint the room
    15·1 answer
  • Kasey has 8 packages of gelatin. She plans to fill molds that each take 1 1/3 packages of gelatin. Each mold can be divided into
    9·1 answer
  • What do you add to 23/4 to make 6
    14·1 answer
  • A high-altitude spherical weather balloon expands as it rises, due to the drop in atmospheric pressure. Suppose that the radius
    5·1 answer
  • For a polygon to be convex means that all of its interior angles are less than 180 degrees. Prove that for all integers n ≥ 3, t
    5·1 answer
  • Using the piling method, which of the following can be constructed from polygons alone?
    8·2 answers
  • Two families went to Rollercoaster World. The Brown family paid 170 for 3 children and 2 adults. The Peckham family paid 360 for
    8·1 answer
  • fill in the table with whole numbers to make 2.8 in three different ways i do not get this qestion can you help me
    14·1 answer
  • Venita is factoring the expression 32 a b minus 8 b. She determines the GCF and writes the factored expression as 8 b (4 a minus
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!