Quiz: Greedy Algorithms

Reinforce your knowledge of greedy algorithms and their applications in problem solving.

1

In the “sorting the files on a tape” example, what order would result in the minimum expected cost?

A)

Sort the files by decreasing size

B)

Sort the files by increasing size

C)

Random order sorting would work

D)

Calculate the expected size of each file

Question 1 of 50 attempted

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy