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
The 6 members of the homecoming decorating committee want to make 525 paper flowers for the homecoming dance. Each flower takes
stiv31 [10]
<h3>Answer:</h3>

6 hours 36 minutes, or 6 hours 31 1/2 minutes

<h3>Step-by-step explanation:</h3>

Dividing the task among the 6 committee members means each member will be making 525/6 = 87.5, that is, either 87 or 88 flowers. (We doubt that two people working together on the same flower will finish it in half the time.)

Each of the three committee members making 88 flowers will take ...

... 88 × 4 1/2 minutes = 396 minutes = 6 hours 36 minutes

Each member making 87 flowers will be finished 4 1/2 minutes sooner, after 6 hours 31 1/2 minutes.

_____

<em>Comment on the problem</em>

This problem seemingly invites you to divide the labor evenly among committe members. Doing that would give you an answer of 6 hours 33 3/4 minutes. You need to ask yourself whether that is practical for this situation.

4 0
2 years ago
What is the surface area of the rectangular pyramid below?
omeli [17]
Let's find the area of the base.

It's a rectangle that's 3.8 by 4.8, so let's multiply.
3.8×4.8=18.24

We have two different triangles.
Triangle one has a height of 2.6 and base of 4.8. But there are two of them.
2.6×4.8×0.5=6.24×2= 12.48; this is the area of two triangles.

Another set of triangles has a height of 2.9 and a base of 3.8.
2.9×3.8×0.5=5.51×2=11.02

Let's add all the areas together.
18.24+12.48+11.02
41.74

The surface area is 41.74 m², so the third option.
4 0
1 year ago
What is the true solution to l n 20 + l n 5 = 2 l n x x = 5 x = 10 x = 50 x = 100
Pani-rosa [81]

Answer:

x = 10

Step-by-step explanation:

l n 20 + l n 5 = 2 l n x

ln (20×5) = ln x²

ln(100) = lnx²

100 = x²

x = +/- 10

Since logs of negative numebrs don't exist, we reject -10

3 0
1 year ago
Read 2 more answers
What integer is equivalent to 25 3/2
antiseptic1488 [7]
<span><span><u>Answer</u>
26 1/2 is not equivalent to and integer but it can be approximated to 27 which is an integer.

<u>Explanation</u>
An integer is a whole number. It is a number that is not a fraction.
253/2=25+3/2=25+1 1/2=26 1/2
</span><span>26 1/2 is not equivalent to and integer but it can be approximated to 27 which is an integer.
</span></span>
3 0
1 year ago
Read 2 more answers
The library is 1.75 miles directly north from the school. The park is 0.6 miles directly south of the school. How far away is th
Kryger [21]

Answer:

2.35 miles

Step-by-step explanation:

Please find the attachment for visual understanding.

We are told that the library is 1.75 miles directly north from the school and the park is 0.6 miles directly south of the school.

To find distance between library and park we will add distance of library from school to the distance of park from school.

(1.75+0.6)\text{ miles}=2.35\text{ miles}  

Therefore, library is 2.35 miles away from park.  

7 0
2 years ago
Other questions:
  • Workers on the assembly line produce 4x + 6 boats each day. Which expression shows how many boats they produced in 12 days?
    7·2 answers
  • Mike's Bikes has mountain bikes that usually sell for $275 on sale for $220. Mike used this ratio to find the percent change. Is
    6·2 answers
  • Given: ΔDFE is isosceles with base FE; FB ≅ EC. Prove: ΔDFB ≅ ΔDEC Complete the missing parts of the paragraph proof. We know th
    13·2 answers
  • 5. Jeremy bought a $60 pair of sneakers on sale for 15% off. Then, he used a coupon that gave him an additional 10% off. Can Jer
    12·1 answer
  • A classic counting problem is to determine the number of different ways that the letters of millennium can be arranged. Find tha
    15·1 answer
  • Apex Grocery wants to build a warehouse that is exactly five miles from each of the routes between stores L, M, and N. Which con
    12·1 answer
  • Melissa is stacking storage cubes in a crate the bottom of the crate is 8 inches by 12 inches. The volume of the crate is 768 cu
    6·2 answers
  • Gemma wants to draw a triangle with side lengths of 4 inches, 12 inches, and 17 inches. Which statement is true? This triangle e
    5·2 answers
  • If one termite can destroy 1.2mg of wood per day, how many kilograms of wood can 10 termites destroy in 1 week? *Can someone ple
    10·1 answer
  • Given RT below, if S lies on RT such that the
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!