{"id":{"repo_id":"waterloo","oai_identifier":"oai:uwspace.uwaterloo.ca:10012/9535"},"canonical_url":"https://search.ndltd.org/etd/waterloo/oai:uwspace.uwaterloo.ca:10012/9535","repository":{"repo_id":"waterloo","name":"University of Waterloo","base_url":"https://dspacemainprd01.lib.uwaterloo.ca/server/oai/request"},"display":{"title":"Inverting Permutations In Place","abstract":"We address the problem of quickly inverting the standard representation of a permutation on $n$ elements in place. First, we present a naive algorithm to do it using $O(\\log n)$ extra bits in $O(n^2)$ time in the worst case. We then improve that algorithm, using a small bit vector, to use $O(\\sqrt n)$ extra bits in $O(n \\sqrt n)$ time. Using a different approach, we present an algorithm to do it using $O(\\sqrt n \\log n)$ extra bits in $O(n \\log n)$ time. Finally, for our main result, we present a technique that leads to an algorithm to invert the standard representation of a permutation using only $O(\\log^2 n)$ extra bits of space in $O(n \\log n)$ time in the worst case.","abstract_html":"We address the problem of quickly inverting the standard representation of a permutation on $n$ elements in place. First, we present a naive algorithm to do it using $O(\\log n)$ extra bits in <span class=\"etd-inline-math\">O(n<sup>2</sup>)</span> time in the worst case. We then improve that algorithm, using a small bit vector, to use $O(\\sqrt n)$ extra bits in $O(n \\sqrt n)$ time. Using a different approach, we present an algorithm to do it using $O(\\sqrt n \\log n)$ extra bits in $O(n \\log n)$ time. Finally, for our main result, we present a technique that leads to an algorithm to invert the standard representation of a permutation using only <span class=\"etd-inline-math\">O(\\log<sup>2</sup> n)</span> extra bits of space in $O(n \\log n)$ time in the worst case.","abstract_has_math":true,"creators":["Robertson, Matthew"],"institution":"University of Waterloo","degree_name":null,"degree_level":null,"degree_discipline":null,"degree_department":null,"school":null,"contributors":[],"advisors":[],"committee_chairs":[],"committee_members":[],"year":2015,"date_issued":"2015-08-17","date_published":"2015-08-17","updated_at":"2026-11-19T10:53:56Z","subjects":["Permutation","In Place","Invert"],"languages":["en"],"rights":[],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"http://hdl.handle.net/10012/9535","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"http://hdl.handle.net/10012/9535","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://dspacemainprd01.lib.uwaterloo.ca/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Auwspace.uwaterloo.ca%3A10012%2F9535","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:creator","label":"Author","values":["Robertson, Matthew"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2015-08-17T12:29:18Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2015-08-17T12:29:18Z"]},{"key":"dc:date.issued","label":"Date","values":["2015-08-17"]},{"key":"dc:date.submitted","label":"Dc Date Submitted","values":["2015"]},{"key":"dc:publisher","label":"Institution","values":["University of Waterloo"]},{"key":"dc:type","label":"Dc Type","values":["Master Thesis"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Permutation","In Place","Invert"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.uri","label":"Identifier URI","values":["http://hdl.handle.net/10012/9535"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["We address the problem of quickly inverting the standard representation of a permutation on $n$ elements in place. First, we present a naive algorithm to do it using $O(\\log n)$ extra bits in $O(n^2)$ time in the worst case. We then improve that algorithm, using a small bit vector, to use $O(\\sqrt n)$ extra bits in $O(n \\sqrt n)$ time. Using a different approach, we present an algorithm to do it using $O(\\sqrt n \\log n)$ extra bits in $O(n \\log n)$ time. Finally, for our main result, we present a technique that leads to an algorithm to invert the standard representation of a permutation using only $O(\\log^2 n)$ extra bits of space in $O(n \\log n)$ time in the worst case."]},{"key":"dc:title","label":"Title","values":["Inverting Permutations In Place"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:creator":["Robertson, Matthew"],"dc:date.accessioned":["2015-08-17T12:29:18Z"],"dc:date.available":["2015-08-17T12:29:18Z"],"dc:date.issued":["2015-08-17"],"dc:date.submitted":["2015"],"dc:description.abstract":["We address the problem of quickly inverting the standard representation of a permutation on $n$ elements in place. First, we present a naive algorithm to do it using $O(\\log n)$ extra bits in $O(n^2)$ time in the worst case. We then improve that algorithm, using a small bit vector, to use $O(\\sqrt n)$ extra bits in $O(n \\sqrt n)$ time. Using a different approach, we present an algorithm to do it using $O(\\sqrt n \\log n)$ extra bits in $O(n \\log n)$ time. Finally, for our main result, we present a technique that leads to an algorithm to invert the standard representation of a permutation using only $O(\\log^2 n)$ extra bits of space in $O(n \\log n)$ time in the worst case."],"dc:identifier.uri":["http://hdl.handle.net/10012/9535"],"dc:language.iso":["en"],"dc:publisher":["University of Waterloo"],"dc:subject":["Permutation","In Place","Invert"],"dc:title":["Inverting Permutations In Place"],"dc:type":["Master Thesis"],"others:access_status":["open.access"]},"updated_at":"2026-11-19T10:53:56Z"}