Greedy Algorithms8 sections · 316 units
Open in Course

Quiz: Greedy Mindset

Apply the thinking

Check Your Understanding

You want to maximize items selected. Each item has weight and value. You can take fractions. What do you sort by?

  1. A.Weight (ascending)
  2. B.Value/weight ratio (descending)
  3. C.Value (descending)
  4. D.Weight/value ratio (ascending)
Start the roadmap to answer the quizzes and solve the challenges