PRIORITY QUEUE
USING HEAP
Aim:
To
implement priority queue using Heap in C program.
Algorithm:
Step
1: [Include necessary header files]
Step
2: [Define maxsize as 15]
Step
3: [Declare necessary variables]
Step
4: READ option, opt
IF
opt is 1 THEN CALL INSERT()
IF
opt is 2 THEN CALL DELMAX()
IF
opt is 3 THEN CALL DIS()
Step
5: [END OF MAIN FUNCTION]
Algorithm For
INSERT()