| preferred AP College board partner for AP classes
hard Solved by 5 students
Algorithm Time Complexity Comparison
< Prev
Next >

Two sorting algorithms are being compared on a dataset with 1 million elements. Algorithm C takes 8 seconds with a time complexity of O(n \log n). Algorithm D takes 20 seconds with a time complexity of O(n). For what approximate dataset size would both algorithms take the same amount of time?

A

About 1 billion elements

B

The algorithms will never take the same time

C

About 100,000 elements

D

About $$10^{15}$$ elements

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

Question Leaderboard

Rank
User
Correct Count
Attempt Count
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
No comments yet. Be the first to comment!

AI Tutor

How can I help?

APFIVE © 2020.
Email: [email protected]|Privacy Policy