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]
3 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:
kramer3 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
What’s the answer I just need a quick answer and my teacher thinks I’m wrong
Goryan [66]

Answer:

58.5

Step-by-step explanation:

9 x 13 = 117

117 divided by 2 = 58.5

3 0
3 years ago
4(x+4) + 2x = 52 need answer
Phoenix [80]

Answer:

x=6

Step-by-step explanation:

3 0
3 years ago
A box contains 19 large marbles and 10 small marbles. Each marble is either green or white. 8 of the large marbles are green, an
notsponge [240]

Answer:

25/29

Step-by-step explanation:

see the attached picture.

7 0
3 years ago
12. The $60 selling price of a camera is the cost<br> increased by twice the cost. Find the cost.
prisoha [69]

Answer: Assuming you mean that the original cost was doubled and now equals $60, the camera costed $30. Assuming the camera's price has been doubled from $60, it is $120. The wording is a bit unclear, so I'm giving you both answers.

Step-by-step explanation: To find half of the price of $60, simply divide it by 2, which gives you $30.

3 0
3 years ago
Find the exact value of the following.
Burka [1]

Answer:

-12.96

Step-by-step explanation:

sorry if thats wrong

4 0
3 years ago
Read 2 more answers
Other questions:
  • -8=v/3-3 <br> solve for V
    5·2 answers
  • What is the sum of the integers between the square root of 12 and 40?
    9·1 answer
  • Olivia is making bead bracelets for her friends. She can make 3 bracelets in 15 minutes. and it takes 5 mins per bracelet so now
    5·1 answer
  • Graph a linear equation find three points that solve the equation 3x+2y=2
    11·1 answer
  • Evaluate the expression of 9! - 4! (5!)
    9·1 answer
  • 930 is what percent of 1000
    6·2 answers
  • The GCF of 1575<br> And1800
    13·2 answers
  • Please Help!!!! I will give brainliest!!!
    9·1 answer
  • hi im poly and abrosexual im a boy im 14 i am a furrry and plz plz plz plz dooont report (((((((((PLZZZZZZ DONT REPORT))))))))))
    11·2 answers
  • Help help please please
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!