MOQA min-max heapify: A randomness preserving algorithm

  • Ang Gao
  • , Aoife Hennessy
  • , Michel Schellekens

Research output: Chapter in Book/Report/Conference proceedingsChapterpeer-review

Abstract

MOQA is a high-level data structuring language, designed to allow for modular static timing analysis [1,2,3]. In essence, MOQA allows the programmer to determine the average running time of a broad class of programmes directly from the code in a (semi-)automated way. The modularity property brings a strong advantage for the programmer. The capacity to combine parts of code, where the average-time is simply the sum of the times of the parts, is a very helpful advantage in static analysis, something which is not available in current languages. Modularity also improves precision of average-case analysis, supporting the determination of accurate estimates on the average number of basic operations ofMOQA programs. The mathematical theory underpinning this approach is that of random structures and their preservation. Applying any MOQA operation to all elements of a random structure results in an output isomorphic to one or more random structures, which is the key to systematic timing. Here we introduce the approach in a self contained way and provide a MOQA version of the well-known algorithm of Min-Max heapify, constructed with the MOQA product operation. We demonstrate the "randomness preservation" property of the algorithm and illustrate the applicability of our method by deriving the exact average time of the algorithm.

Original languageEnglish
Title of host publicationNumerical Analysis and Applied Mathematics, ICNAAM 2012 - International Conference of Numerical Analysis and Applied Mathematics
Pages852-855
Number of pages4
Edition1
DOIs
Publication statusPublished - 2012
EventInternational Conference of Numerical Analysis and Applied Mathematics, ICNAAM 2012 - Kos, Greece
Duration: 19 Sep 201225 Sep 2012

Publication series

NameAIP Conference Proceedings
Number1
Volume1479
ISSN (Print)0094-243X
ISSN (Electronic)1551-7616

Conference

ConferenceInternational Conference of Numerical Analysis and Applied Mathematics, ICNAAM 2012
Country/TerritoryGreece
CityKos
Period19/09/1225/09/12

Keywords

  • Heapify
  • Min-Max heap
  • Partial Order
  • Random Bags

Fingerprint

Dive into the research topics of 'MOQA min-max heapify: A randomness preserving algorithm'. Together they form a unique fingerprint.

Cite this