![lucywood2024](/avatars/12260.jpg)
lucywood2024
29.02.2020 •
Mathematics
Appended below is the code for Selection Sort. You really do not have to understand the details of the code. If this algorithm takes 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?
Solved
Show answers
More tips
- S Style and Beauty How to braid friendship bracelets?...
- S Style and Beauty Learn how to tie a keffiyeh on your head like a pro...
- F Food and Cooking Delight for Gourmets: How to Prepare Liver Pate...
- C Computers and Internet How to Learn to Type Fast?...
- H Health and Medicine Angina: Causes, Symptoms, and Treatment...
- D Dating, Love, Relationships How to Overcome Jealousy: Tips and Tricks...
- H Health and Medicine 10 Ways to Cleanse Your Colon and Improve Your Health...
- W Work and Career How to Start Your Own Business: Tips and Recommendations...
- F Food and Cooking How to Make Delicious Cabbage Pies: The Best Recipes!...
- F Food and Cooking Discover Delicious Recipes You Can Make with Ground Meat...
Answers on questions: Mathematics
- M Mathematics Sal bought three cds for 1598 each a computer cable for 3995 and a case for his mp3 player for 2499 sales tax is 7% to the nearest cent what is the total cost of his...
- M Mathematics Canada had about as many total medals as australia...
- M Mathematics (03.02 mc) in triangle abc shown below, side ab is 10 and side ac is 8: triangle abc with segment joining point d on segment ab and point e on segment ac. which statement...
- M Mathematics What is a possible value of sin theta when cos2theta= 0.21 a. 0.32 b. 0.37 c. 0.63 d. 0.68 will give the...
- M Mathematics How would i factor #12? it seems it would be simple but i m slightly confused...
- M Mathematics What is the slope and equation of a line perpendicular to the y axis passing through point (-5,-3)?...
- M Mathematics Which of the lines graphed has a slope of -2 and a y intercept of 3?...
- M Mathematics An adult elephant eats about 300 pounds of food each day. write an expression to represent the number of pounds of food a herd of 12 elephants eat in 5 days?...
- M Mathematics What is the suface area of a volleyball with a circumference of 25 inches...
- M Mathematics A set of data points has a line of best fit of ý = 2.5x - 1.5. What is the residual for the point (2,5)? A. 3.5 B. -1.5 C. 5 D. 1.5...
Ответ:
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.
Therefore, it will take 12 seconds for the same code to sort an array of 24 elements.
Ответ:
X1-X2