Skip to content

Files

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
·
22 lines (12 loc) · 932 Bytes

README.ja-JP.md

File metadata and controls

executable file
·
22 lines (12 loc) · 932 Bytes

ヒープ (データ構造)

コンピュータサイエンスにおいて、ヒープは特殊な木構造のデータ構造で、後述するヒープの特性を持っています。

最小ヒープでは、もしPCの親ノードの場合、Pのキー(値)はCのキーより小さい、または等しくなります。

MinHeap

Made with okso.app

最大ヒープでは、PのキーはCのキーより大きい、もしくは等しくなります。

MaxHeap

Array Representation

ヒープの「トップ」のノードには親ノードが存在せず、ルートノードと呼ばれます。

参考