没有合适的资源?快使用搜索试试~ 我知道了~
FibonacciHeaps.pdf
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 147 浏览量
2021-11-28
00:02:38
上传
评论
收藏 3.98MB PDF 举报
温馨提示
试读
89页
算法设计
资源推荐
资源详情
资源评论
Lecture slides by Kevin Wayne!
http://www.cs.princeton.edu/~wayne/kleinberg-tardos
Last updated on 7/25/17 11:07 AM
FIBONACCI HEAPS
‣
preliminaries
‣
insert
‣
extract the minimum
‣
decrease key
‣
bounding the rank
‣
meld and delete
Priority queues performance cost summary
!
!
Ahead. O(1) INSERT and DECREASE-KEY, O(log n) EXTRACT-MIN.
2
operation
linked list
binary heap
binomial heap
Fibonacci heap
†
MAKE-HEAP
O(1)
O(1)
O(1)
O(1)
IS-EMPTY
O(1)
O(1)
O(1)
O(1)
INSERT
O(1)
O(log n)
O(log n)
O(1)
EXTRACT-MIN
O(n)
O(log n)
O(log n)
O(log n)
DECREASE-KEY
O(1)
O(log n)
O(log n)
O(1)
DELETE
O(1)
O(log n)
O(log n)
O(log n)
MELD
O(1)
O(n)
O(log n)
O(1)
FIND-MIN
O(n)
O(1)
O(log n)
O(1)
† amortized
Fibonacci heaps
Theorem. [Fredman-Tarjan 1986] Starting from an empty Fibonacci heap,!
any sequence of m INSERT, EXTRACT-MIN, and DECREASE-KEY operations!
involving n INSERT operations takes O(m + n
log n) time.
3
Fibonacci Heaps and Their Uses in Improved Network
Optimization Algorithms
MICHAEL L. FREDMAN
University of California, San Diego, L.a Jolla, California
AND
ROBERT ENDRE TARJAN
AT&T Bell Laboratories, Murray HilI, New Jersey
Abstract. In this paper we develop a new data structure for implementing heaps (priority queues). Our
structure, Fibonacci heaps (abbreviated F-heaps), extends the binomial queues proposed by Vuillemin
and studied further by Brown. F-heaps support arbitrary deletion from an n-item heap in qlogn)
amortized time and all other standard heap operations in o( 1) amortized time. Using F-heaps we are
able to obtain improved running times for several network optimization algorithms. In particular, we
obtain the following worst-case bounds, where n is the number of vertices and m the number of edges
in the problem graph:
( 1) O(n log n + m) for the single-source shortest path problem with nonnegative edge lengths, improved
from O(m logfmh+2)n);
(2) O(n*log n + nm) for the all-pairs shortest path problem, improved from O(nm lo&,,,+2,n);
(3) O(n*logn + nm) for the assignment problem (weighted bipartite matching), improved from
O(nm log0dn+2)n);
(4) O(mj3(m, n)) for the minimum spanning tree problem, improved from O(mloglo&,,.+2,n), where
j3(m, n) = min {i 1 log% 5 m/n). Note that B(m, n) 5 log*n if m 2 n.
Of these results, the improved bound for minimum spanning trees is the most striking, although all the
results give asymptotic improvements for graphs of appropriate densities.
Categories and Subject Descriptors: E.l [Data]: Data Structures--trees; graphs; F.2.2 [Analysis of
Algorithms and Problem Complexity]: Nonnumerical Algorithms and Problems-computations on
discrete structures; sorting and searching; G.2.2 [Discrete Mathematics]: Graph Theory-graph algo-
rithms; network problems; trees
General Terms: Algorithms, Theory
Additional Key Words and Phrases: Heap, matching, minimum spanning tree, priority queue, shortest
Pati
’ A preliminary version of this paper appeared in the Proceedings of the 25th IEEE Symposium on the
Foundations of Computer Science (Singer Island, Fla., Oct. 24-26). IEEE, New York, 1984, pp. 338-
346, 0 IEEE. Any portion of this paper that appeared in the preliminary version is reprinted with
permission.
This research was supported in part by the National Science Foundation under grant MCS 82-0403 1.
Authors’ addresses: M. L. Fredman, Electrical Engineering and Computer Science Department, Uni-
versity of California, San Diego, La Jolla, CA 92093; R. E. Tarjan, AT&T Bell Laboratories, Murray
Hill, NJ 07974.
Permission to copy without fee all or part of this material is granted provided that the copies are not
made or distributed for direct commercial advantage, the ACM copyright notice and the title of the
publication and its date appear, and notice is given that copying is by permission of the Association for
Computing Machinery. To copy otherwise, or to republish, requires a fee and/or specific permission.
0 1987 ACM 0004-541 l/87/0700-0596 $1.50
Journal ofthe Association for Computing Machinery, Vol. 34, No. 3, July 1987, Pages 596-615.
this statement is a bit weaker
than the actual theorem
Fibonacci heaps
Theorem. [Fredman–Tarjan 1986] Starting from an empty Fibonacci heap,
any sequence of m INSERT, EXTRACT-MIN, and DECREASE-KEY operations!
involving n INSERT operations takes O(m + n
log n) time.
History.
・
Ingenious data structure and application of amortized analysis.
・
Original motivation: improve Dijkstra’s shortest path algorithm!
from O(m log n) to O(m + n log n).
・
Also improved best-known bounds for all-pairs shortest paths,
assignment problem, minimum spanning trees.
4
SECTION 19.1
FIBONACCI HEAPS
‣
structure
‣
insert
‣
extract the minimum
‣
decrease key
‣
bounding the rank
‣
meld and delete
剩余88页未读,继续阅读
资源评论
码上富贵
- 粉丝: 1w+
- 资源: 177
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功