solidstate-solidity icon indicating copy to clipboard operation
solidstate-solidity copied to clipboard

Binary Heap

Open 0xCourtney opened this issue 3 years ago • 0 comments

The Binary Heap is commonly used for priority queues with applications in DeFi such as a DEX order book. This data structure is partially sorted, therefore only the root node is guaranteed to be in the correct order. This is particularly useful in cases where only the first entry in the queue is needed per transaction. The Binary Heap should have a generalized implementation.

0xCourtney avatar Jul 25 '22 00:07 0xCourtney