{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,11]],"date-time":"2026-09-11T23:21:41Z","timestamp":1789168901213,"version":"build-2803163510"},"reference-count":18,"publisher":"Society for Industrial & Applied Mathematics (SIAM)","issue":"4","content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["SIAM J. Comput."],"published-print":{"date-parts":[[1988,8]]},"abstract":"<jats:p>The stable roommates problem is a well-known problem of matching $2n$ people into disjoint pairs to achieve a certain type of stability. The problem strictly generalizes the better-known stable marriage problem. It has been previously shown [Irving and Leather, SIAM J. Comput., 15 (1986), pp. 655\u2013667], that the set of stable marriages, for a given instance, can be compactly represented and this representation has been exploited to yield a number of very efficient algorithms concerned with stable marriage [Irving, Leather, and Gusfield, J. Assoc. Comput. Mach., 34 (1987), pp. 532\u2013543], [Gusfield, SIAM J. Comput., 16 (1987), pp. 111\u2013128], [Gusfield et al., J. Combin. Theory, Ser A., (1987), pp. 304\u2013309]. In this paper, we generalize the structure of the stable marriages to obtain two efficiently computed, small, implicit representations of the set of all stable roommate assignments, for any given instance. One representation is a partial order $\\Pi $ on $O(n^2 )$ elements such that the stable assignments are in one-one correspondence with certain easily recognized subsets of $\\Pi $. Partial order $\\Pi $ is a strict generalization of the stable marriage representation of [Irving and Leather, SIAM J. Comput., 15 (1986), pp. 655\u2013667]. The second representation is an efficiently constructed, undirected graph G with $O(n^2 )$ nodes, such that there exists a one-one correspondence between the maximal (not maximum) independent sets of G and the stable roommate assignments. In either representation, G or $\\Pi $, given a set representing a stable assignment, the assignment itself can be constructed in $O(n^2 )$ time. We also give an algorithm to generate each stable assignment for any given instance in $O(n^2 )$ time per assignment. The efficiency of this method depends heavily on special properties of the stable assignment problem developed in this paper. Finally, we give a succinct characterization of the set of all \u201cstable pairs,\u201d those pairs of people who are roommates in at least one stable assignment, and we give an $O(n^3 \\log n)$ time algorithm to find them all.<\/jats:p>","DOI":"10.1137\/0217048","type":"journal-article","created":{"date-parts":[[2005,2,24]],"date-time":"2005-02-24T06:30:13Z","timestamp":1109226613000},"page":"742-769","source":"Crossref","is-referenced-by-count":46,"title":["The Structure of the Stable Roommate Problem: Efficient Representation and Enumeration of All Stable Assignments"],"prefix":"10.1137","volume":"17","author":[{"given":"Dan","family":"Gusfield","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"351","published-online":{"date-parts":[[2006,7,13]]},"reference":[{"key":"RGS","doi-asserted-by":"publisher","DOI":"10.1080\/00029890.1962.11989827"},{"key":"RGS84","doi-asserted-by":"publisher","DOI":"10.1016\/0166-218X(85)90074-5"},{"key":"RG","doi-asserted-by":"publisher","DOI":"10.1137\/0216010"},{"key":"RG1","unstructured":"D. Gusfield,  Three fast algorithms for four problems in stable marriage, Tech. Report, TR-407, Dept. of Computer Science, Yale University, New Haven, CT,  1985, July"},{"key":"RG2","unstructured":"D. Gusfield,  Roommate stability leads to marriage: the structure of the stable roommate problem, Tech. Report, TR-435, Dept. of Computer Science, Yale University, New Haven, CT,  1985, November"},{"key":"RG3","unstructured":"D. Gusfield,  The structure of the stable roommate problem: efficient representation and enumeration of all stable assignments, Tech. Report, 482, Dept. of Computer Science, Yale University, New Haven, CT,  1986, June"},{"key":"RGILS","doi-asserted-by":"publisher","DOI":"10.1016\/0097-3165(87)90037-9"},{"key":"RI","doi-asserted-by":"publisher","DOI":"10.1016\/0196-6774(85)90033-1"},{"key":"RI1","unstructured":"R. Irving,  On the stable room-mates problem, Res. Report, CSC\/86\/R5, Department of Computing Science, University of Glasgow,  1986, July"},{"key":"RIL","doi-asserted-by":"publisher","DOI":"10.1137\/0215048"},{"key":"RILG","doi-asserted-by":"publisher","DOI":"10.1145\/28869.28871"},{"key":"RIR","doi-asserted-by":"publisher","DOI":"10.1016\/B978-0-12-566780-7.50018-0"},{"key":"RK","unstructured":"Donald E. Knuth, Mariages stables et leurs relations avec d'autres probl\u00e8mes combinatoires, Les Presses de l'Universit\u00e9 de Montr\u00e9al, Montreal, Que., 1976, 106\u2013, (In French)58:84700358.68057"},{"key":"RL","volume-title":"Combinatorial optimization: networks and matroids","author":"Lawler E.","year":"1976"},{"key":"RLLR","doi-asserted-by":"publisher","DOI":"10.1137\/0209042"},{"key":"RMW","doi-asserted-by":"publisher","DOI":"10.1145\/362619.362631"},{"key":"RN","doi-asserted-by":"publisher","DOI":"10.1007\/BF01581030"},{"key":"RPTW","doi-asserted-by":"publisher","DOI":"10.1007\/978-1-4757-1101-1"}],"container-title":["SIAM Journal on Computing"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/epubs.siam.org\/doi\/pdf\/10.1137\/0217048","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,8,21]],"date-time":"2026-08-21T18:43:07Z","timestamp":1787337787000},"score":1,"resource":{"primary":{"URL":"https:\/\/epubs.siam.org\/doi\/10.1137\/0217048"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[1988,8]]},"references-count":18,"journal-issue":{"issue":"4","published-print":{"date-parts":[[1988,8]]}},"alternative-id":["10.1137\/0217048"],"URL":"https:\/\/doi.org\/10.1137\/0217048","relation":{},"ISSN":["0097-5397","1095-7111"],"issn-type":[{"value":"0097-5397","type":"print"},{"value":"1095-7111","type":"electronic"}],"subject":[],"published":{"date-parts":[[1988,8]]}}}