Fibonacci Heap

版本 1.0.0.0 (105.3 KB) 作者: Daniel Underwood
Fibonacci Heap implementation based on a standard computer science textbook.
1.0K 次下载
更新时间 2011/1/17

查看许可证

This Fibonacci Heap implementation was developed in MATLAB for general use but with the specific aim of later integration with the Dijkstra's algorithm implementation that is used by "Matlog". See the README.pdf file for more details.

To create a heap named myHeap, one should execute the following MATLAB command: myHeap=cFibHeap. Keys (values) can be inserted into the heap using the command myHeap.insert(num), where the key to be inserted is num. The command myHeap.findMin returns the minimum key, and the command myHeap.extractMin returns and removes the minimum key. The size of the heap (total number of nodes) can be determined by the command myHeap.n. The operations Insert, Find-Min, and Extract-Min are the only operations supported in the beta version.

The following standard heap operations will be supported in a future release: Merge-Heaps, Increase-Key, and Decrease-Key.

引用格式

Daniel Underwood (2024). Fibonacci Heap (https://www.mathworks.com/matlabcentral/fileexchange/30072-fibonacci-heap), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Data Import and Export 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0