<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://teaching.healthtech.dtu.dk/22113/index.php?action=history&amp;feed=atom&amp;title=Heuristic_methods_for_fair_sharing</id>
	<title>Heuristic methods for fair sharing - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://teaching.healthtech.dtu.dk/22113/index.php?action=history&amp;feed=atom&amp;title=Heuristic_methods_for_fair_sharing"/>
	<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22113/index.php?title=Heuristic_methods_for_fair_sharing&amp;action=history"/>
	<updated>2026-04-08T09:48:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://teaching.healthtech.dtu.dk/22113/index.php?title=Heuristic_methods_for_fair_sharing&amp;diff=66&amp;oldid=prev</id>
		<title>WikiSysop: Created page with &quot;__NOTOC__ === Description === Distributing jobs/items to a number of consumers in a fair way has a number of applications. In this project you must implement 5 methods mentioned in the [https://teaching.healthtech.dtu.dk/material/22112/HPCLife-LoadBalancing.ppt powerpoint]: Random Assignment, Round Robin, Max-Min Round Robin, Reverse Round Robin and Least Load.  === Input/output ===  As can be seen from the powerpoint, there is some randomness in the input, i.e. the numb...&quot;</title>
		<link rel="alternate" type="text/html" href="https://teaching.healthtech.dtu.dk/22113/index.php?title=Heuristic_methods_for_fair_sharing&amp;diff=66&amp;oldid=prev"/>
		<updated>2024-03-06T15:18:21Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ === Description === Distributing jobs/items to a number of consumers in a fair way has a number of applications. In this project you must implement 5 methods mentioned in the [https://teaching.healthtech.dtu.dk/material/22112/HPCLife-LoadBalancing.ppt powerpoint]: Random Assignment, Round Robin, Max-Min Round Robin, Reverse Round Robin and Least Load.  === Input/output ===  As can be seen from the powerpoint, there is some randomness in the input, i.e. the numb...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
=== Description ===&lt;br /&gt;
Distributing jobs/items to a number of consumers in a fair way has a number of applications. In this project you must implement&lt;br /&gt;
5 methods mentioned in the [https://teaching.healthtech.dtu.dk/material/22112/HPCLife-LoadBalancing.ppt powerpoint]:&lt;br /&gt;
Random Assignment, Round Robin, Max-Min Round Robin, Reverse Round Robin and Least Load.&lt;br /&gt;
&lt;br /&gt;
=== Input/output === &lt;br /&gt;
As can be seen from the powerpoint, there is some randomness in the input, i.e. the numbers that should be distributed.&lt;br /&gt;
Use the &amp;#039;&amp;#039;&amp;#039;random&amp;#039;&amp;#039;&amp;#039; library for the required randomness.&lt;br /&gt;
In order to make the program deterministic it should read the data from a file (make the file yourself) with the following format:&lt;br /&gt;
&lt;br /&gt;
 Consumers: 4&lt;br /&gt;
 35.3&lt;br /&gt;
 33.3&lt;br /&gt;
 .&lt;br /&gt;
 .&lt;br /&gt;
 60.8&lt;br /&gt;
&lt;br /&gt;
That means there is a header line telling who many consumers the following numbers/weights should be distributed to.&lt;br /&gt;
The output should clearly demonstrate how the program has distributed the numbers to the consumers using the different methods, f.ex. like this.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;width: 300px; text-align: right;&amp;quot;&lt;br /&gt;
|+ Method: Max-Min Round Robin&lt;br /&gt;
|-&lt;br /&gt;
! A !! B !! C !! D &lt;br /&gt;
|-&lt;br /&gt;
| 87.0 || 79.2 || 78.5 ||  74.2&lt;br /&gt;
|-&lt;br /&gt;
| 7.1 || 12.2 || 16.2 || 17.3&lt;br /&gt;
|-&lt;br /&gt;
| 69.9 || 68.8 || 60.8 || 46.4&lt;br /&gt;
|-&lt;br /&gt;
| 22.8 || 28.2 || 33.3 || 35.3&lt;br /&gt;
|-&lt;br /&gt;
| 45.3 || 44.9 || 42.9 || 37.8&lt;br /&gt;
|-  &lt;br /&gt;
| ---------- || ---------- || ---------- || ----------&lt;br /&gt;
|-&lt;br /&gt;
| 232.1 || 233.3 || 231.7 || 211.0&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Optional:&lt;br /&gt;
You can make a small helper program, that generates the input file from parameters that you give it.&lt;br /&gt;
You can implement another method for distribution the numbers.&lt;/div&gt;</summary>
		<author><name>WikiSysop</name></author>
	</entry>
</feed>