算法分析算法复习题(中英文)
(有翻译)
1. 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型符号提供一个渐近的上限。Θ符号提供一个渐近下界。 Θ-符号渐近函数形式的上方和下方。 2. 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,那么该节点的父节点是 左孩子 右孩子
3. Because the heap of n elements is a binary tree, the height of any node is at most ?(lg n).
因为n个元素的堆是一个二叉树,任意节点的树高最多是
4. 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.
在 最优化问题 中,有很多可能的解,每个解都有一个值,我们希望找到一个最优解(最大或最小),我们称这个解为最优解问题。
5. optimal substructure if an optimal solution to the problem contains within it
optimal solutions to subproblems.
最优子结构 中问题的最优解,至少包含它的最优解的子问题。
6. A subsequence of X if there exists a strictly increasing sequence
indices of X such that for all j = 1, 2, ..., k, we have xij = zj .
Let X =
(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.
7. 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.
贪心算法 经常需要在某个时刻寻找最好的选择。正因如此,它在当下找到希望中的最优选择,以便引导出一个全局的最优解。
8. The greedy-choice property and optimal sub-structure are the two key ingredients
of greedy algorithm.
贪心选择 和最优子结构是贪心算法的两个重要组成部分。
9. When a recursive algorithm revisits the same problem over and over again, we
say that the optimization problem has overlapping subproblems.
当一个递归算法一遍一遍的遍历同一个问题时,我们说这个最优化问题是 重叠子问题。
10. greedy-choice property is a globally optimal solution can be arrived at by making
a locally optimal (greedy) choice.
贪心选择性质 是一个全局的最优解,这个最优解可以做一个全局的最优选择。
11. An approach of Matrix multiplication can develope a Θ(V4)-time algorithm for
the all-pairs shortest-paths problem and then improve its running time to Θ(V3 lg
V).
一个矩阵相乘问题的解决可以一个 时间复杂度算法的所有路径的最短路径问题,改进后的时间
复杂度是 。
12. Floyd-Warshall algorithm, runs in Θ(V3) time to solve the all-pairs
shortest-paths problem.
FW算法在 时间复杂度下可以解决最短路径问题。
13. The running time of Quick Sort is O(n2) in the worst case, and O(n lg n) in the
average case.
2
快速排序的平均时间复杂度是 O(n lg n) ,最坏时间复杂度是 O(n) 。 14. The MERGE(A,p,q,r) procedure in merge sort takes time Θ(n).
MERGE在归并排序中所花费的时间是 。
15. Given a weighted, directed graph G = (V, E) with source s and weight function w :
E → R, the Bellman-Ford algorithm makes |V| - 1 passes over the edges of the graph.
给一个带权重的有向图G = (V, E),权重关系w : E → R,则the Bellman-Ford算法需经过 条边。 16. The Bellman-Ford algorithm runs in time O(V E).
Bellman ford 算法的时间复杂度是 。
17. A decision tree represents the comparisons made by a comparison sort.The
asymptotic height of any decision tree for sorting n elements is ?(n lg n).
一个决策树代表一个比较类型,通过比较排序。N个元素的任意决策树的渐进高度是 。 True-false questions
1. An algorithm is said to be correct if, for some input instance, it halts with the correct output F
如果给一个算法输入一些实例,并且它给力正确的输出,则认识这个算法是正确的。
2. Insertion sort always best merge sort F 插入排序总是优越与归并排序。
3. Θ(n lg n) grows more slowly than Θ(n2). Therefore, merge sort asymptotically beats insertion sort in the worst case. T Θ(n lg n)
4. Currently computers are fast and computer memory is very cheap, we have no reason to study algorithms. F
5. In RAM (Random-Access Machine) model, instructions are executed with concurrent operations. F
6. The running time of an algorithm on a particular input is the number of primitive operations or “steps” executed. T
7. Quick sorts, have no combining step: two subarrays form an already-sorted array. T
8. The running time of Counting sort is O(n + k). But the running time of sorting is ?(n lg n). So this is contradiction. F 9. The Counting sort is stable. T
10. In the selection problem,there is a algorithm of theoretical interest only with O(n) worst-case running time. T
11. Divide-and-conquer algorithms partition the problem into independent
subproblems, solve the subproblems recursively, and then combine their solutions to solve the original problem. In contrast, dynamic programming is applicable when the subproblems are not independent, that is, when subproblems share subsubproblems. T
12. In dynamic programming, we build an optimal solution to the problem from optimal solutions to …… 此处隐藏:9780字,全部文档内容请下载后查看。喜欢就下载吧 ……
相关推荐:
- [政务民生]2013年公共基础知识热点问题(七)
- [政务民生]检验检测机构资质认定评审准则及释义20
- [政务民生]关于印发重庆市房屋建筑和市政基础设施
- [政务民生]1、隧道洞身开挖支护施工技术交底书
- [政务民生]2015年山东省17地市中考语文试题分类汇
- [政务民生]2-高级会计师资格考试和评审流程图
- [政务民生]2018版中国清分机行业发展分析及前景策
- [政务民生]新课改高中政治探究
- [政务民生]2018-2024年中国新型组合房屋行业投资
- [政务民生]2015年上海市春季高考数学模拟试卷五
- [政务民生]灌砂法及环刀法测压实度(带计算过程)
- [政务民生]运筹学实验2求解非线性规划
- [政务民生]劝学、逍遥游默写(教师卷)
- [政务民生]《运筹学》 - 期末考试 - 试卷A - 答案
- [政务民生]八年级英语下册 Module 6 Hobbies测试
- [政务民生]2019年宪法知识竞赛试题库100题(含答
- [政务民生]自动化英文文献翻译
- [政务民生]公文格式实施细则
- [政务民生]高一地理上册课堂跟踪练习题6
- [政务民生]会计继续教育习题及答案
- 第三章 无约束最优化方法
- 泛读教程第三册答案
- 魏晋南北朝文学
- 幂的运算复习题
- 城市环境问题的成因与治理策略_以社会
- 钢结构行业产业链及竞争分析研究
- 新型热塑性弹性体增韧聚丙烯的研究
- 中国旅游地理B卷试题及答案
- (苏教版)五年级数学上册第三单元测试卷
- 不稳定性心绞痛诊断与治疗
- 俞氏国际后勤职能部门绩效考核办法
- GB7258-2017新标准考试题含答案
- 小学生汉字听写比赛活动方案
- 1.3《平抛运动》学案 教科版必修2
- 2011香港特别行政区公务员考试复习资料
- 考虑水力条件变化的城市给水管网可靠性
- 表面活性剂在油田开发和生产中的应用
- ITT内部培训资料-FI端吸泵的介绍
- 文明守纪,从我做起学生发言稿
- 初中读《聊斋志异》心得体会800字范文




