{"id":{"repo_id":"montana-tech","oai_identifier":"oai:scholarworks.umt.edu:etd-12914"},"canonical_url":"https://search.ndltd.org/etd/montana-tech/oai:scholarworks.umt.edu:etd-12914","repository":{"repo_id":"montana-tech","name":"Montana Technology","base_url":"https://scholarworks.umt.edu/do/oai/"},"display":{"title":"OPTIMAL CONSTRUCTION OF A LAYER-ORDERED HEAP AND ITS APPLICATIONS","abstract":"The layer-ordered heap (LOH) is a simple data structure used in algorithms that perform optimal top-$k$ on $X+Y$, algorithms with the best known runtime for top-$k$ on $X_1+X_2+\\cdots+X_m$, and the fastest method in practice for computing the most abundant isotopologue peaks in a chemical compound. In the analysis of these algorithms, the rank, $\\alpha$, has been treated as a constant and $n$, the size of the array, has been treated as the sole parameter. Here, we explore the algorithmic complexity of LOH construction with $\\alpha$ as a parameter, introduce a few algorithms for constructing LOHs, analyze their complexity in both $n$ and $\\alpha$, and demonstrate that one algorithm is optimal in both $n$ and $\\alpha$ for building a LOH of any rank. We then apply this to improve performance in applications where they are employed, find an estimate for the optimal $\\alpha$ given an $n$ and $k$ for top-$k$ on $X+Y$, and derive a novel algorithm for top-$k$ on a multinomial distribution. Finally, we show that the results of our LOH analysis correspond with empirical experiments of runtimes when applying the LOH construction algorithms to both a common task in machine learning and top-$k$ on $X_1+X_2+\\cdots+X_m$ and that our estimate of the optimal $\\alpha$ for top-$k$ on $X+Y$ corresponds well with empirical data.","abstract_html":"The layer-ordered heap (LOH) is a simple data structure used in algorithms that perform optimal top-$k$ on $X+Y$, algorithms with the best known runtime for top-$k$ on <span class=\"etd-inline-math\">X<sub>1</sub>+X<sub>2</sub>+\\cdots+X<sub>m</sub></span>, and the fastest method in practice for computing the most abundant isotopologue peaks in a chemical compound. In the analysis of these algorithms, the rank, <span class=\"etd-inline-math\">&alpha;</span>, has been treated as a constant and $n$, the size of the array, has been treated as the sole parameter. Here, we explore the algorithmic complexity of LOH construction with <span class=\"etd-inline-math\">&alpha;</span> as a parameter, introduce a few algorithms for constructing LOHs, analyze their complexity in both $n$ and <span class=\"etd-inline-math\">&alpha;</span>, and demonstrate that one algorithm is optimal in both $n$ and <span class=\"etd-inline-math\">&alpha;</span> for building a LOH of any rank. We then apply this to improve performance in applications where they are employed, find an estimate for the optimal <span class=\"etd-inline-math\">&alpha;</span> given an $n$ and $k$ for top-$k$ on $X+Y$, and derive a novel algorithm for top-$k$ on a multinomial distribution. Finally, we show that the results of our LOH analysis correspond with empirical experiments of runtimes when applying the LOH construction algorithms to both a common task in machine learning and top-$k$ on <span class=\"etd-inline-math\">X<sub>1</sub>+X<sub>2</sub>+\\cdots+X<sub>m</sub></span> and that our estimate of the optimal <span class=\"etd-inline-math\">&alpha;</span> for top-$k$ on $X+Y$ corresponds well with empirical data.","abstract_has_math":true,"creators":["Pennington, Jake"],"institution":"University of Montana","degree_name":"Master of Arts (MA)","degree_level":null,"degree_discipline":null,"degree_department":"Department of Mathematical Sciences","school":null,"contributors":[],"advisors":[],"committee_chairs":[],"committee_members":[],"year":null,"date_issued":"","date_published":null,"updated_at":"2026-11-27T03:50:11Z","subjects":["LOH","layer ordered heap","partial ordering","top-k","Other Applied Mathematics","Theory and Algorithms"],"languages":[],"rights":[],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://scholarworks.umt.edu/etd/11811","outbound_label":"Repository record","outbound_source":"dc:identifier","record_url":"https://scholarworks.umt.edu/etd/11811","record_label":"Repository record","record_kind":"record","record_source":"dc:identifier","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%3Amontana-tech%3Aoai%3Ascholarworks.umt.edu%3Aetd-12914","prefix":"oai_dc"},"source_record":{"url":"https://scholarworks.umt.edu/do/oai/?verb=GetRecord&metadataPrefix=oai_etdms&identifier=oai%3Ascholarworks.umt.edu%3Aetd-12914","prefix":"oai_etdms"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.role","label":"Dc Contributor Role","values":["Oliver Serang Ph.D."]},{"key":"dc:creator","label":"Author","values":["Pennington, Jake"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.created","label":"Dc Date Created","values":["2021-01-01T08:00:00Z"]},{"key":"dc:publisher","label":"Institution","values":["University of Montana"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]},{"key":"thesis:degree_department","label":"Department","values":["Department of Mathematical Sciences"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Arts (MA)"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["LOH","layer ordered heap","partial ordering","top-k","Other Applied Mathematics","Theory and Algorithms"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier","label":"Identifier","values":["https://scholarworks.umt.edu/etd/11811"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["The layer-ordered heap (LOH) is a simple data structure used in algorithms that perform optimal top-$k$ on $X+Y$, algorithms with the best known runtime for top-$k$ on $X_1+X_2+\\cdots+X_m$, and the fastest method in practice for computing the most abundant isotopologue peaks in a chemical compound. In the analysis of these algorithms, the rank, $\\alpha$, has been treated as a constant and $n$, the size of the array, has been treated as the sole parameter. Here, we explore the algorithmic complexity of LOH construction with $\\alpha$ as a parameter, introduce a few algorithms for constructing LOHs, analyze their complexity in both $n$ and $\\alpha$, and demonstrate that one algorithm is optimal in both $n$ and $\\alpha$ for building a LOH of any rank. We then apply this to improve performance in applications where they are employed, find an estimate for the optimal $\\alpha$ given an $n$ and $k$ for top-$k$ on $X+Y$, and derive a novel algorithm for top-$k$ on a multinomial distribution. Finally, we show that the results of our LOH analysis correspond with empirical experiments of runtimes when applying the LOH construction algorithms to both a common task in machine learning and top-$k$ on $X_1+X_2+\\cdots+X_m$ and that our estimate of the optimal $\\alpha$ for top-$k$ on $X+Y$ corresponds well with empirical data."]},{"key":"dc:title","label":"Title","values":["OPTIMAL CONSTRUCTION OF A LAYER-ORDERED HEAP AND ITS APPLICATIONS"]}]}],"canonical_facts":{"dc:contributor.role":["Oliver Serang Ph.D."],"dc:creator":["Pennington, Jake"],"dc:date.created":["2021-01-01T08:00:00Z"],"dc:description.abstract":["The layer-ordered heap (LOH) is a simple data structure used in algorithms that perform optimal top-$k$ on $X+Y$, algorithms with the best known runtime for top-$k$ on $X_1+X_2+\\cdots+X_m$, and the fastest method in practice for computing the most abundant isotopologue peaks in a chemical compound. In the analysis of these algorithms, the rank, $\\alpha$, has been treated as a constant and $n$, the size of the array, has been treated as the sole parameter. Here, we explore the algorithmic complexity of LOH construction with $\\alpha$ as a parameter, introduce a few algorithms for constructing LOHs, analyze their complexity in both $n$ and $\\alpha$, and demonstrate that one algorithm is optimal in both $n$ and $\\alpha$ for building a LOH of any rank. We then apply this to improve performance in applications where they are employed, find an estimate for the optimal $\\alpha$ given an $n$ and $k$ for top-$k$ on $X+Y$, and derive a novel algorithm for top-$k$ on a multinomial distribution. Finally, we show that the results of our LOH analysis correspond with empirical experiments of runtimes when applying the LOH construction algorithms to both a common task in machine learning and top-$k$ on $X_1+X_2+\\cdots+X_m$ and that our estimate of the optimal $\\alpha$ for top-$k$ on $X+Y$ corresponds well with empirical data."],"dc:identifier":["https://scholarworks.umt.edu/etd/11811"],"dc:publisher":["University of Montana"],"dc:subject":["LOH","layer ordered heap","partial ordering","top-k","Other Applied Mathematics","Theory and Algorithms"],"dc:title":["OPTIMAL CONSTRUCTION OF A LAYER-ORDERED HEAP AND ITS APPLICATIONS"],"dc:type":["Thesis"],"thesis:degree_department":["Department of Mathematical Sciences"],"thesis:degree_name":["Master of Arts (MA)"]},"updated_at":"2026-11-27T03:50:11Z"}