Quiz: Greedy Algorithms

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

1

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

A)

Sorting the files by decreasing size

B)

Sorting the files by increasing size

C)

Sorting by any random order

D)

Calculating 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