mirror of
https://github.com/trekhleb/javascript-algorithms.git
synced 2025-07-09 12:22:36 +08:00
Update heap documentation.
This commit is contained in:
@ -1,7 +1,8 @@
|
|||||||
# Heap (data-structure)
|
# Heap (data-structure)
|
||||||
|
|
||||||
In computer science, a heap is a specialized tree-based
|
In computer science, a heap is a specialized tree-based
|
||||||
data structure that satisfies the heap property.
|
data structure that satisfies the heap property described
|
||||||
|
below.
|
||||||
|
|
||||||
In a *min heap*, if `P` is a parent node of `C`, then the
|
In a *min heap*, if `P` is a parent node of `C`, then the
|
||||||
key (the value) of `P` is less than or equal to the
|
key (the value) of `P` is less than or equal to the
|
||||||
|
Reference in New Issue
Block a user