{"id":{"repo_id":"uvic","oai_identifier":"oai:dspace.library.uvic.ca:1828/5879"},"canonical_url":"https://search.ndltd.org/etd/uvic/oai:dspace.library.uvic.ca:1828/5879","repository":{"repo_id":"uvic","name":"University of Victoria (Canada)","base_url":"https://dspace.library.uvic.ca/server/oai/request"},"display":{"title":"Coroutine-based combinatorial generation","abstract":"The two well-known approaches to designing combinatorial generation algorithms are the recursive approach and the iterative approach. In this thesis a third design approach using coroutines, introduced by Knuth and Ruskey, is explored further. An introduction to coroutines and their implementation in modern languages (in particular Python) is provided, and the coroutine-based approach is introduced using an example, and contrasted with the recursive and iterative approaches. The coroutine sum, coroutine product, and coroutine symmetric sum constructs are defined to create an algebra of coroutines, and used to give concise definitions of coroutine-based algorithms for generating ideals of chain and forest posets. Afterwards, new coroutine-based variations of several algorithms, including the Steinhaus-Johnson-Trotter algorithm for generating permutations in Gray order, the Varol-Rotem algorithm for generating linear extensions in Gray order, and the Pruesse-Ruskey algorithm for generating signed linear extensions of a poset in Gray order, are given.","abstract_html":"The two well-known approaches to designing combinatorial generation algorithms are the recursive approach and the iterative approach. In this thesis a third design approach using coroutines, introduced by Knuth and Ruskey, is explored further. An introduction to coroutines and their implementation in modern languages (in particular Python) is provided, and the coroutine-based approach is introduced using an example, and contrasted with the recursive and iterative approaches. The coroutine sum, coroutine product, and coroutine symmetric sum constructs are defined to create an algebra of coroutines, and used to give concise definitions of coroutine-based algorithms for generating ideals of chain and forest posets. Afterwards, new coroutine-based variations of several algorithms, including the Steinhaus-Johnson-Trotter algorithm for generating permutations in Gray order, the Varol-Rotem algorithm for generating linear extensions in Gray order, and the Pruesse-Ruskey algorithm for generating signed linear extensions of a poset in Gray order, are given.","abstract_has_math":false,"creators":["Saba, Sahand"],"institution":null,"degree_name":null,"degree_level":"Master of Science M.Sc.","degree_discipline":null,"degree_department":"Department of Computer Science","school":null,"contributors":[],"advisors":["Ruskey, Frank"],"committee_chairs":[],"committee_members":[],"year":2015,"date_issued":"2015-01-29","date_published":"2015-01-29","updated_at":"2026-11-19T09:39:31Z","subjects":["combinatorial generation","coroutines","python"],"languages":["en","English"],"rights":["Available to the World Wide Web"],"rights_urls":["http://creativecommons.org/licenses/by-sa/2.5/ca/"],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"http://hdl.handle.net/1828/5879","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"http://hdl.handle.net/1828/5879","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","download_url":null,"download_label":null,"download_source":null,"access_status":null,"embargo_until":null,"access_note":null},"source_record":{"url":"https://dspace.library.uvic.ca/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Adspace.library.uvic.ca%3A1828%2F5879","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.supervisor","label":"Supervisor","values":["Ruskey, Frank"]},{"key":"dc:creator","label":"Author","values":["Saba, Sahand"]},{"key":"person:email","label":"Person Email","values":["saba@uvic.ca"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2015-01-29T18:17:42Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2015-01-29T18:17:42Z"]},{"key":"dc:date.copyright","label":"Dc Date Copyright","values":["2014"]},{"key":"dc:date.issued","label":"Date","values":["2015-01-29"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]},{"key":"thesis:degree_department","label":"Department","values":["Department of Computer Science"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Master of Science M.Sc."]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["combinatorial generation","coroutines","python"]},{"key":"dc:subject.proquest","label":"Dc Subject Proquest","values":["0984"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language","label":"Dc Language","values":["English"]},{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["Available to the World Wide Web"]},{"key":"dc:rights.uri","label":"Rights URI","values":["http://creativecommons.org/licenses/by-sa/2.5/ca/"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["http://hdl.handle.net/1828/5879"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["The two well-known approaches to designing combinatorial generation algorithms are the recursive approach and the iterative approach. In this thesis a third design approach using coroutines, introduced by Knuth and Ruskey, is explored further. An introduction to coroutines and their implementation in modern languages (in particular Python) is provided, and the coroutine-based approach is introduced using an example, and contrasted with the recursive and iterative approaches. The coroutine sum, coroutine product, and coroutine symmetric sum constructs are defined to create an algebra of coroutines, and used to give concise definitions of coroutine-based algorithms for generating ideals of chain and forest posets. Afterwards, new coroutine-based variations of several algorithms, including the Steinhaus-Johnson-Trotter algorithm for generating permutations in Gray order, the Varol-Rotem algorithm for generating linear extensions in Gray order, and the Pruesse-Ruskey algorithm for generating signed linear extensions of a poset in Gray order, are given."]},{"key":"dc:description.scholarlevel","label":"Dc Description Scholarlevel","values":["Graduate"]},{"key":"dc:title","label":"Title","values":["Coroutine-based combinatorial generation"]}]}],"canonical_facts":{"dc:contributor.supervisor":["Ruskey, Frank"],"dc:creator":["Saba, Sahand"],"dc:date.accessioned":["2015-01-29T18:17:42Z"],"dc:date.available":["2015-01-29T18:17:42Z"],"dc:date.copyright":["2014"],"dc:date.issued":["2015-01-29"],"dc:description.abstract":["The two well-known approaches to designing combinatorial generation algorithms are the recursive approach and the iterative approach. In this thesis a third design approach using coroutines, introduced by Knuth and Ruskey, is explored further. An introduction to coroutines and their implementation in modern languages (in particular Python) is provided, and the coroutine-based approach is introduced using an example, and contrasted with the recursive and iterative approaches. The coroutine sum, coroutine product, and coroutine symmetric sum constructs are defined to create an algebra of coroutines, and used to give concise definitions of coroutine-based algorithms for generating ideals of chain and forest posets. Afterwards, new coroutine-based variations of several algorithms, including the Steinhaus-Johnson-Trotter algorithm for generating permutations in Gray order, the Varol-Rotem algorithm for generating linear extensions in Gray order, and the Pruesse-Ruskey algorithm for generating signed linear extensions of a poset in Gray order, are given."],"dc:description.scholarlevel":["Graduate"],"dc:identifier.uri":["http://hdl.handle.net/1828/5879"],"dc:language":["English"],"dc:language.iso":["en"],"dc:rights":["Available to the World Wide Web"],"dc:rights.uri":["http://creativecommons.org/licenses/by-sa/2.5/ca/"],"dc:subject":["combinatorial generation","coroutines","python"],"dc:subject.proquest":["0984"],"dc:title":["Coroutine-based combinatorial generation"],"dc:type":["Thesis"],"person:email":["saba@uvic.ca"],"thesis:degree_department":["Department of Computer Science"],"thesis:degree_level":["Master of Science M.Sc."]},"updated_at":"2026-11-19T09:39:31Z"}