This is the C++ wrapper for the stable roommate problem. Users should not
call this function directly, but instead use
is a matrix with the preference order of each individual in the
market. If there are
A vector of length
n corresponding to the matchings that were
formed (using C++ indexing). E.g. if the
4th element of this vector
0 then individual
4 was matched with individual
If no stable matching exists, then this function returns a vector of
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.