⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 leftheap.h

📁 weis的数据结构的实现方法很经典很强大
💻 H
字号:
        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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -