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

📄 heap.h

📁 A C++ library which finds associations within sets of items, using a fast in-memory algorithm
💻 H
字号:
// Heap.h//  a heap of Trans * pointers//#ifndef HEAP_Hclass Heap {private:	Trans ** h;	int nelts;	int n;	int inline tstswap( int i, int j ) ;	void siftup( int m ) ;	void siftdown( void );public:Heap( int nn ) ;Heap( Trans **p, int nn ) ;void heapify( int nn ) ;void ins( Trans * pt );Trans * peek( void ) const ;void swapsert( Trans * &pt ) ;  // swap head of heap and siftdownint chk( void );int nelt( void ) const;Trans * delmin( void );void prt( void ) ;void prt( int i );};#define HEAP_H#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -