2.2 Examined triple heap sort algorithm time complexity
Presented triple heap sort algorithm has time complexity # (n log3 n). The basis
for such a statement is discussed triple heap structure.
Theorem 1. Height of triple heap, built of n elements is
k ∼=
⌊log3 n⌋ + 1, (7)
where heap height k is understood as number of levels in the heap and n is a
number of all elements in the heap.
Proof. A basis of actions is 3, according to divisions of the heap. Every heap
level p has from 3p−1 to 3p − 1 elements. Using this feature we can calculate