Are you taking CLEP classes? Try clep.ai
| preferred AP College board partner for AP classes
hard Solved by 2 students

Algorithm Time Complexity Comparison

Mark
< Prev
Next >

Algorithm C, with a time complexity of O(n \log n), sorts 1,000,000 elements in 8 seconds. Algorithm D, with a time complexity of O(n), sorts the same dataset in 20 seconds. At approximately what number of elements would both algorithms have the same execution time?

A

About 100,000 elements

B

About 101510^{15} elements

C

About 1 billion elements

D

The algorithms will never take the same time

Hint
Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer
Report Question

Question Leaderboard

Rank
User
Correct Count
Attempt Count
Total Time
Score
#12023172511 0m 46s 54
#2lriverapolanco02 0m 00s -20
#3andymeng1444001 0m 20s -30
#4tianbo.shen01 0m 23s -33
#5jdvillalta86511 1h 00m -3,558
#6vdang2901 2h 48m -10,142
Items per page:
10
1 – 6 of 6

AI Tutor

How can I help?

APFIVE © 2020.
Email: apfive@apfive.org|Privacy Policy|