File size: 659 Bytes
bff4ec7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Indexed Priority Queue

## Problem Description

Maintain a priority queue of key-data pairs and expose heap construction, insertion, and removal operations.

## Input

The functions receive the array representation, its logical size or capacity, and the operation-specific values described by their C signatures.

## Output

Each operation returns or updates the represented data structure according to its interface contract.

## Constraints

All indices, sizes, capacities, and stored values satisfy the bounds stated by the corresponding function contract.

## Source

Classical data-structure implementation reconstructed from the verified C artifact.