{"id":{"repo_id":"guelph","oai_identifier":"oai:atrium.lib.uoguelph.ca:10214/26298"},"canonical_url":"https://search.ndltd.org/etd/guelph/oai:atrium.lib.uoguelph.ca:10214/26298","repository":{"repo_id":"guelph","name":"University of Guelph","base_url":"https://atrium.lib.uoguelph.ca/server/oai/request"},"display":{"title":"Amidakuji: Gray Code Algorithms for Listing Ladder Lotteries","abstract":"We provide a Gray code for listing ladder lotteries in which successive ladders differ by the addition/removal of a single bar or the relocation of a bar. Ladder lotteries are an abstract mathematical object which correspond to permutations. They are a network of vertical lines and horizontal bars, which induce transpositions on elements in a specific permutation when the lines cross. Ladder lotteries are of interest to the field of theoretical computer science because of their relationship with other mathematical objects such as primitive sorting networks. To list ladder lotteries, we define a function that calculates the location for any bar in the data structure in $O(1)$ time. We provide an $O(n^2)$ amortized algorithm for creating a specific ladder corresponding to a specific permutation. We provide an $O(1)$ amortized algorithm for listing $n!$ canonical ladders by adding or removing a bar. Finally, we provide a Gray code for listing $n!$ ladders ordered by the number of bars.","abstract_html":"We provide a Gray code for listing ladder lotteries in which successive ladders differ by the addition/removal of a single bar or the relocation of a bar. Ladder lotteries are an abstract mathematical object which correspond to permutations. They are a network of vertical lines and horizontal bars, which induce transpositions on elements in a specific permutation when the lines cross. Ladder lotteries are of interest to the field of theoretical computer science because of their relationship with other mathematical objects such as primitive sorting networks. To list ladder lotteries, we define a function that calculates the location for any bar in the data structure in $O(1)$ time. We provide an <span class=\"etd-inline-math\">O(n<sup>2</sup>)</span> amortized algorithm for creating a specific ladder corresponding to a specific permutation. We provide an $O(1)$ amortized algorithm for listing $n!$ canonical ladders by adding or removing a bar. Finally, we provide a Gray code for listing $n!$ ladders ordered by the number of bars.","abstract_has_math":true,"creators":["Di Salvo, Patrick"],"institution":"University of Guelph","degree_name":"Master of Science","degree_level":null,"degree_discipline":null,"degree_department":"School of Computer Science","school":null,"contributors":[],"advisors":["Sawada, Joseph"],"committee_chairs":[],"committee_members":[],"year":null,"date_issued":"","date_published":null,"updated_at":"2026-11-19T08:24:43Z","subjects":["algorithms","discrete math","theory of computation","gray codes","enumeration"],"languages":["en"],"rights":[],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/10214/26298","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/10214/26298","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Aguelph%3Aoai%3Aatrium.lib.uoguelph.ca%3A10214%2F26298","prefix":"oai_dc"},"source_record":{"url":"https://atrium.lib.uoguelph.ca/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aatrium.lib.uoguelph.ca%3A10214%2F26298","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Sawada, Joseph"]},{"key":"dc:creator","label":"Author","values":["Di Salvo, Patrick"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2021-08-25T13:58:54Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2021-08-25T13:58:54Z"]},{"key":"dc:date.copyright","label":"Dc Date Copyright","values":["2021-08"]},{"key":"dc:date.created","label":"Dc Date Created","values":["2021-07-27"]},{"key":"dc:publisher","label":"Institution","values":["University of Guelph"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]},{"key":"thesis:degree_department","label":"Department","values":["School of Computer Science"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science"]},{"key":"thesis:degree_program","label":"Thesis Degree Program","values":["Computer Science"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["University of Guelph"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["algorithms","discrete math","theory of computation","gray codes","enumeration"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights.license","label":"Dc Rights License","values":["All items in the Atrium are protected by copyright with all rights reserved unless otherwise indicated."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/10214/26298"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["We provide a Gray code for listing ladder lotteries in which successive ladders differ by the addition/removal of a single bar or the relocation of a bar. Ladder lotteries are an abstract mathematical object which correspond to permutations. They are a network of vertical lines and horizontal bars, which induce transpositions on elements in a specific permutation when the lines cross. Ladder lotteries are of interest to the field of theoretical computer science because of their relationship with other mathematical objects such as primitive sorting networks. To list ladder lotteries, we define a function that calculates the location for any bar in the data structure in $O(1)$ time. We provide an $O(n^2)$ amortized algorithm for creating a specific ladder corresponding to a specific permutation. We provide an $O(1)$ amortized algorithm for listing $n!$ canonical ladders by adding or removing a bar. Finally, we provide a Gray code for listing $n!$ ladders ordered by the number of bars."]},{"key":"dc:title","label":"Title","values":["Amidakuji: Gray Code Algorithms for Listing Ladder Lotteries"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Sawada, Joseph"],"dc:creator":["Di Salvo, Patrick"],"dc:date.accessioned":["2021-08-25T13:58:54Z"],"dc:date.available":["2021-08-25T13:58:54Z"],"dc:date.copyright":["2021-08"],"dc:date.created":["2021-07-27"],"dc:description.abstract":["We provide a Gray code for listing ladder lotteries in which successive ladders differ by the addition/removal of a single bar or the relocation of a bar. Ladder lotteries are an abstract mathematical object which correspond to permutations. They are a network of vertical lines and horizontal bars, which induce transpositions on elements in a specific permutation when the lines cross. Ladder lotteries are of interest to the field of theoretical computer science because of their relationship with other mathematical objects such as primitive sorting networks. To list ladder lotteries, we define a function that calculates the location for any bar in the data structure in $O(1)$ time. We provide an $O(n^2)$ amortized algorithm for creating a specific ladder corresponding to a specific permutation. We provide an $O(1)$ amortized algorithm for listing $n!$ canonical ladders by adding or removing a bar. Finally, we provide a Gray code for listing $n!$ ladders ordered by the number of bars."],"dc:identifier.uri":["https://hdl.handle.net/10214/26298"],"dc:language.iso":["en"],"dc:publisher":["University of Guelph"],"dc:rights.license":["All items in the Atrium are protected by copyright with all rights reserved unless otherwise indicated."],"dc:subject":["algorithms","discrete math","theory of computation","gray codes","enumeration"],"dc:title":["Amidakuji: Gray Code Algorithms for Listing Ladder Lotteries"],"dc:type":["Thesis"],"others:access_status":["open.access"],"thesis:degree_department":["School of Computer Science"],"thesis:degree_name":["Master of Science"],"thesis:degree_program":["Computer Science"],"thesis:institution_name":["University of Guelph"]},"updated_at":"2026-11-19T08:24:43Z"}