Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is the primary focus of this section regarding algorithm efficiency?
Think about how long it would take to run an algorithm.
Name the two primary measurements of algorithm efficiency discussed.
One of them is more flexible regarding hardware.
What is the primary focus of the section?
Consider which measurement is more challenging to adjust.
True or False: O(n²) algorithms are always more efficient than O(n log n).
Think about how performance scales with increased input size.
Suppose you are tasked with sorting data entries of size n=1,000,000 using both O(n²) and O(n log n) algorithms. Estimate how long each would take in seconds, and discuss which is preferable.
Consider operations for each algorithm and convert them to time using processing capability.
You have two algorithms: one O(n²) and one O(n log n). In terms of scalability, at what input size would you notice significant performance differences?
Reflect on real-world applications—where large data sets are reached.
5 more questions in this section. Enroll free to practise them all.
Enroll free