Skip to content

Instantly share code, notes, and snippets.

View aurelienbottazini's full-sized avatar

Aurélien Bottazini aurelienbottazini

View GitHub Profile
=begin
Original problem url: http://rubylearning.com/blog/2010/01/26/rpcfn-fair-distribution-6/
The goal of this class is to schedule printing jobs between printing machines (presses)
Jobs should be distributed "in such a manner that (a) all t-shirts are printed in the least amount of time,
and (b) the distribution of work across machines is as fair as possible (i.e. the standard deviation
of the time each machine spends working is minimized)."
Usage: