Algorithm: Stable Roommate Problem  
-----------------------------------

google "Stable Roommate Problem" for reference and have a look at
http://www.dcs.gla.ac.uk/research/algorithms/stable/ 
for further information.

------------------------------------
programmer: Luigi Forlano
email: forlano@vegachess.com
version: 1.0
date: 4 octber 07
------------------------------------

Notes
-----

The preference lists are given in horizontal direction.
The first row refer to person of name "1" and shows 
his preference list... This means that the rank of his/her best choice 
decrease moving from left to right of the row.


The button GenerateList generate a random problem with 
N = number of men = number of women
equal to that in the spin edit field (<=16).


The button ReadList read the file "rlist.txt" in the folder 
of the application. Its format is as follow in case of N=6

6
4 6 2 5 3 1
6 3 5 1 4 2
4 5 1 6 2 3
2 6 5 1 3 4
4 2 3 6 1 5
5 1 4 2 3 6


The button SolveProblem found a stable solution if exists. 
Clicking on the first row of the bottom list and then moving down 
the cursor by using the arrow down key are showed the
steps made during the algorithm.

Disclaimer
----------
You use this software at your own risk and the Author is not responsable
for any damage it may cause.
You can use this software for any purpose. 
Please acknowledge the author in case you find it useful.
Comment and suggestion are welcome.