leftheap.h
来自「数据结构与算法分析(C语言描述)的源代码 里面的代码的质量非常高」· C头文件 代码 · 共 30 行
H
30 行
typedef int ElementType;/* START: fig6_25.txt */ #ifndef _LeftHeap_H #define _LeftHeap_H struct TreeNode; typedef struct TreeNode *PriorityQueue; /* Minimal set of priority queue operations */ /* Note that nodes will be shared among several */ /* leftist heaps after a merge; the user must */ /* make sure to not use the old leftist heaps */ PriorityQueue Initialize( void ); ElementType FindMin( PriorityQueue H ); int IsEmpty( PriorityQueue H ); PriorityQueue Merge( PriorityQueue H1, PriorityQueue H2 ); #define Insert( X, H ) ( H = Insert1( ( X ), H ) ) /* DeleteMin macro is left as an exercise */ PriorityQueue Insert1( ElementType X, PriorityQueue H ); PriorityQueue DeleteMin1( PriorityQueue H ); #endif/* END */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?