Repairing assignments with the fewest link changes

A dispatch application stores the initial object snapshot below. Each line assigns one Crate to one Van. All mass and capacity slot values are in kilograms.


Six Crate objects with masses 8, 7, 6, 4, 3, and 2 kilograms link in consecutive pairs to three Van objects, each with capacity 10 kilograms.


Construct a repaired snapshot in which every crate is assigned to exactly one van and the sum of assigned crate masses does not exceed that van's capacity. Retain every object, identity, and slot value. You may change only assignment links; every crate may be assigned to any van. These constraints apply to the completed snapshot, not intermediate editing states.


A single link edit means deleting one existing link or adding one new link. Changing a crate's assigned van therefore requires deleting its original link and adding its replacement.


Find the minimum number of crates whose assigned van must change, the minimum total number of individual link edits, and the mass assigned to v1 in any valid repaired snapshot. Give all three answers as exact integers, with the last answer in kg.

Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Object Diagrams Questions: