- 1、本文档共13页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
(有翻译)
The O-notation provides an asymptotic upper bound. The ?-notation provides an asymptotic lower bound. The Θ-notation asymptotically a function form above and below.
O型符号提供一个渐近的上限。Θ符号提供一个渐近下界。?Θ-符号渐近函数形式的上方和下方。
To represent a heap as an array,the root of tree is A[1], and given the index i of a node, the indices of its parent Parent(i) { return ?i/2?; },left child, Left(i) { return 2*i; },right child, right(i) { return 2*i + 1; }.
代表一个堆中的一个数组,树的根节点是A[1],并且给出一个节点i,那么该节点的父节点是 左孩子 右孩子
Because the heap of n elements is a binary tree, the height of any node is at most Q(lg n).
因为n个元素的堆是一个二叉树,任意节点的树高最多是
In optimization problems , there can be many possible solutions. Each solution has a value, and we wish to find a solution with the optimal (minimum or maximum) value. We call such a solution an optimal solution to the problem.
在 最优化问题 中,有很多可能的解,每个解都有一个值,我们希望找到一个最优解(最大或最小),我们称这个解为最优解问题。
optimal substructure if an optimal solution to the problem contains within it optimal solutions to subproblems.
最优子结构 中问题的最优解,至少包含它的最优解的子问题。
A subsequence of X if there exists a strictly increasing sequence i1,i2, ..., ik of indices of X such that for all j = 1, 2, ..., k, we have xij = zj .
Let X = x1, x2, ..., xm and Y = y1, y2, ..., yn be sequences, and let Z = z1, z2, ..., zk be any LCS of X and Y.
(1). If xm = yn, then zk = xm = yn and Zk-1 is an LCS of Xm-1 and Yn-1.
(2). If xm ≠ yn, then zk ≠ xm implies that Z is an LCS of Xm-1 and Y.
(3). If xm ≠ yn, then zk ≠ yn implies that Z is an LCS of X and Yn-1.
A greedy algorithm always makes the choice that looks best at the moment. That is, it makes a locally optimal choice in the hope that this choice will lead to a globally optimal solution.
贪心算法 经常需要在某个时刻寻找最好的选择。正因如此,它在当下找到希望中的最优选择,以便引导出一个全局的最优解。
The greedy-choice property and optimal sub-structure are the two key ingredients of greedy algorithm.
贪心选择 和最优子结构是贪心算法的两个重要组成部分。
When a recursive algorithm revisits the same problem over and
您可能关注的文档
最近下载
- 机场场内驾驶证考试题.pdf VIP
- 冷冻水系统水力特性影响因素分析.pptx
- 安徽省第四届全省家政服务职业技能大赛家政服务员(母婴护理员)考试题库(含答案).docx
- 2024-2025学年小学信息技术(信息科技)三年级全一册义务教育版(2024)教学设计合集.docx
- 人工一体化高密度养殖土元的技术.pptx
- 辅警内部转正考试.pdf
- 数学四年级下册教案-比身高(第二课时)北师大.doc
- 标准化知识竞赛考试参考题库(200题).docx
- (初中)七年级地理上册全册典型重要知识点(挖空填空)梳理详解汇总.pdf
- GB_T 43894.1-2024 半导体晶片近边缘几何形态评价 第1部分:高度径向二阶导数法(ZDD).pdf
文档评论(0)