Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

左式堆(leftist heap)实现优先队列,原文地址:http://www.srcmini.com/1588.html

NotificationsYou must be signed in to change notification settings

onnple/leftistheap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

左式堆(leftist heap)实现优先队列,原文地址:

左式堆函数操作声明

1、左式堆初始化

extern LeftistHeap *lheap_init();

2、检测左式堆是否已满

extern int lheap_is_full(LeftistHeap *heap);

3、左式堆是否为空

extern int lheap_is_empty(LeftistHeap *heap);

4、左式堆入队或插入

extern int lheap_push(LeftistHeap *heap, int key, Label *label);

5、获取左式堆队头元素

extern LNode *lheap_top(LeftistHeap *heap);

6、左式堆释放顶部元素

extern int lheap_pop(LeftistHeap *heap);

7、左式堆遍历

extern void lheap_traverse(LeftistHeap *heap);

8、左式堆释放和清除

extern int lheap_clear(LeftistHeap *heap);

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp