mirror of
https://github.com/trekhleb/javascript-algorithms.git
synced 2025-07-07 01:44:52 +08:00
Add heap sort.
This commit is contained in:
@ -8,6 +8,8 @@ import {
|
|||||||
} from '../../SortTester';
|
} from '../../SortTester';
|
||||||
|
|
||||||
// Complexity constants.
|
// Complexity constants.
|
||||||
|
// These numbers don't take into account up/dow heapifying of the heap.
|
||||||
|
// Thus these numbers are higher in reality.
|
||||||
const SORTED_ARRAY_VISITING_COUNT = 40;
|
const SORTED_ARRAY_VISITING_COUNT = 40;
|
||||||
const NOT_SORTED_ARRAY_VISITING_COUNT = 40;
|
const NOT_SORTED_ARRAY_VISITING_COUNT = 40;
|
||||||
const REVERSE_SORTED_ARRAY_VISITING_COUNT = 40;
|
const REVERSE_SORTED_ARRAY_VISITING_COUNT = 40;
|
||||||
|
Reference in New Issue
Block a user