pith. sign in

arxiv: 1012.0956 · v3 · pith:3D2ETQY5new · submitted 2010-12-05 · 💻 cs.DS · cs.CC

A tight bound on the worst-case number of comparisons for Floyd's heap construction algorithm

classification 💻 cs.DS cs.CC
keywords numbercomparisonsalgorithmboundconstructionfloydheapsigma
0
0 comments X
read the original abstract

In this paper a tight bound on the worst-case number of comparisons for Floyd's well known heap construction algorithm, is derived. It is shown that at most 2n-2{\mu}(n)-{\sigma}(n) comparisons are executed in the worst case, where {\mu}(n) is the number of ones and {\sigma}(n) is the number of zeros after the last one in the binary representation of the number of keys n.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.