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
evablogger [386]
2 years ago
6

Appended below is the code for Selection Sort. You really do not have to understand the details of the code. If this algorithm t

akes 4 seconds to sort an array of 8 elements. How much time in seconds will the same code take to sort an array of 24 elements?
Mathematics
1 answer:
kramer2 years ago
8 0

Answer:

12 seconds.

Step-by-step explanation:

Let t represent time taken by code to sort an array of 24 elements.

We have been given that an algorithm takes 4 seconds to sort an array of 8 elements. We are asked to find the time it will take for same code to sort an array of 24 elements.

We will use proportions to solve our given problem.    

\frac{\text{Time}}{\text{Array of elements}}=\frac{4}{8}

\frac{t}{24}=\frac{4}{8}

\frac{t}{24}\cdot 24=\frac{4}{8}\cdot 24

t=\frac{4}{1}\cdot 3

t=12

Therefore, it will take 12 seconds for the same code to sort an array of 24 elements.

You might be interested in
PLEASE HELP ME WITH THESE TWO QUESTIONS
11Alexandr11 [23.1K]
They are both the second choices 1.)Transitive Property
2.)Reflective Property
3 0
3 years ago
An ostrich egg weighs 64 ounces is the weight of the ostrich egg greater than 5 pounds?
IgorLugansk [536]

Answer:

An ostrich egg is 4 pounds, therefore, an ostrich egg is not greater than 5 pounds.

Step-by-step explanation:

Convert the ounces to pound.

1 pound = 16 ounces

Next, divide.

64 ÷ 16 = 4.

4 < 5

So, an ostrich isn't greater than 5 pounds

Have a wonderful day!

4 0
2 years ago
The diameter of cold virus cell is about 3x10-9 meter,and the diameter of a streptoccus bacterium cell is about 9x10-7 meter. Wh
Archy [21]

Here we need to compare the orders of magnitude of two measures.

We will see that the bacteria is<em> 300 times larger than the virus.</em>

We know that:

The diameter of the virus-cell is:

D_v = 3 \cdot 10^{-9} m

The diameter of the bacteria cell is:

D_b = 9 \cdot 10^{-7} m

So, to compare them, first notice that both are in the same units, meters, so we only need to <u>compare the numbers</u>.

Is common sense to identify the one with the largest exponent as the largest number, and the largest exponent is -7, thus <u>the bacteria should be the larger one.</u>

But let's prove this with math, remember the property:

\frac{a^n}{a^m} = a^{n - m}

Let's take the quotient between the diameters and see what we get, I will use the <u>diameter of the bacteria in the numerator</u>, thus <u>if the quotient is larger than 1, it would mean that the bacteria is greater and by how much.</u>

quotient = \frac{ 9 \cdot 10^{-7} m}{ 3 \cdot 10^{-9} m}  = \frac{9}{3} \cdot 10^{-7 + 9}\\\\= 3*10^2

So we can say that the bacteria is 3*10^2 = 3*100 = 300 times larger than the virus.

If you want to learn more, you can read:

brainly.com/question/4953281

8 0
2 years ago
2330 law graduates took the Alaska bar exam over a ten year period. 1780 passed the exam. What percent passed the exam?
Kruka [31]
Around 76 percent passed the exam.
8 0
3 years ago
What is the slope of the line graphed below?<br> ...<br> m=<br> A. 2<br> B. 1/2<br> C. -1/2<br> D-2
mote1985 [20]

Answer:

its a 2

Step-by-step explanation:

4 0
2 years ago
Read 2 more answers
Other questions:
  • Joan is filling a 2-liter soda bottle with different colors of sand to make an art project for her class. She has 1,000 millilit
    7·1 answer
  • Last year, Warren grew 5/7 of an inch and his brother grew 1/4 of an inch.How much more did warren grow than his brother?
    8·1 answer
  • Is 3/7 bigger than 1/4
    15·1 answer
  • A ranch has 3475 cattle. Between which two thousands is this number?
    15·1 answer
  • What is -4.65 as a fraction?
    14·1 answer
  • A woman bought some large frames for ​$17 each and some small frames for ​$6 each at a closeout sale. If she bought 18 frames fo
    7·1 answer
  • Rosie and Dan share some sweets. Dan gets 1/4 of the sweets. Write down the ratio of the number of sweets Rosie gets to the numb
    9·2 answers
  • What is the measure of angle w°? Show all work.
    11·1 answer
  • Find g: 3g + 15 − 12 + 3 − 2g + 4 = 1
    13·2 answers
  • a jewerly shop shop sells 240 necklaces in a month. 180 of the necklaces were sold via the shops, website, the rest were sold in
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!