上海科技大学计算机考研真题

合集下载

上海科技大学2018年攻读硕士学位研究生招生考试试题

上海科技大学2018年攻读硕士学位研究生招生考试试题

上海科技大学2018年攻读硕士学位研究生招生考试试题科目代码:991 科目名称:数据结构与算法考生须知:1. 本试卷满分为150分,全部考试时间总计180分钟。

2. 所有答案必须写在答题纸上,写在试题纸上或草稿纸上一律无效。

3. 每道题的中文部分均已翻译为英文,考生可在中英文中任选一种语言作答。

1.True or False (5 problems, 2 points each) 判断题(5题,每题2分)Please indicate in the answer sheet whether each statement is true or false. Write down “T” for being true and “F” for being false.请在答题纸上写明下列每个命题的真假。

真则写“T”,假则写“F”。

1.Let f(n) = n3 - 4n + 4 and g(n) = 5n3– 100, then f(n) + g(n) is Ω(n3) and f(n)*g(n) is o(n6).若函数f(n) = n3 - 4n + 4 以及g(n) = 5n3– 100, 则f(n) + g(n) 是Ω(n3) 并且f(n)*g(n) 是o(n6).ing a simple uniform hashing function h to hash n distinct keys into an array of length m,the expected cardinality of {{k, l}: k≠l and h(k) = h(l)} is n/m.用简单均匀的哈希函数将n个不同的keys映射到一个长度为m的数组,集合{{k, l}: k≠l and h(k) = h(l)}的期望大小是n/m.3. A directed acyclic graph with n nodes has at most n(n-1)/2 edges.一个有n个节点的有向无环图最多有n(n-1)/2条边。

上海科技大学考研信息与通信工程基础试题汇总

上海科技大学考研信息与通信工程基础试题汇总

信号傅里叶变换的定义,猜想并证明������������的表达式。(10 分)
(2) 图 5 所示信号 ������1(������) 是方波信号被正弦波信号调制之后的结果。请将
������1(������)写成调制信号(基带信号)与载波信号相乘的形式。并利用(1)中
的结论,计算 ������1(������)的傅里叶级数的系数。(10 分)
=
sin (������������������������) ������������
,
������������
ℎ2(������)
=
1,������ {

[0,
������������]
0,������. ������.
,
������
1 + ������������ , ������ ∈ [−������������, 0]
������0
∫ |������(������)|2������������
0
=
+∞
∑ |������������|2.
������=−∞
第3页 共3页
图5
(3) 令 ������(������)=������∗(������),其中 ������∗(������)表示信号 ������(������)的共轭。请用 ������������表示 ������������,并利 用(1)中结论证明周期信号的帕斯瓦尔关系:(10 分)
1 ������0
科目名称:信息与通信工程专业基础
p(t)
x(t) × xp (t)
y(t) h(t)
图2 (1) 要保证信号在 ℎ(������) 为理想低通滤波器的情况下不失真,采样信号 ������(������)

上海科技大学2019年攻读硕士学位研究生招生考试试题

上海科技大学2019年攻读硕士学位研究生招生考试试题

上海科技大学2019年攻读硕士学位研究生招生考试试题科目代码:991 科目名称:数据结构与算法考生须知:1. 本试卷满分为150分,全部考试时间总计180分钟。

2. 所有答案必须写在答题纸上,写在试题纸上或草稿纸上一律无效。

3. 每道题的英文部分均已翻译为中文,考生可在中英文中任选一种语言作答。

1.True or False (10 problems, 2 points each) 判断题(10题,每题2分)Please indicate in the answer sheet whether each statement is true or false. Write down “T” for being true and “F” for being false.请在答题纸上写明下列每个命题的真假。

真则打“√”,假则打“⨯”。

1.In a circular linked list, some link fields may be null. ()在循环链表中,某些链接域可能为空。

()2.Given any functions f(n) and g(n), it is possible to have both f(n) = Ω(g(n)) and f(n) = o(g(n)).()给定任意函数f(n)和g(n),f(n) = Ω(g(n))和f(n) = o(g(n))可能同时成立。

()3. A good hash function of a hash table satisfies the assumption of simple uniform hashing. ()一个好的哈希函数需满足简单均匀。

()5.The number of nodes in a tree can be more than twice the number of leaf nodes. ()一棵树的节点个数有可能大于叶节点个数的两倍。

上海科技大学2021年考研硕士专业课991数据结构与算法 (1)

上海科技大学2021年考研硕士专业课991数据结构与算法 (1)

上海科技大学2021年攻读硕士学位研究生招生考试试题科目代码:991 科目名称:数据结构与算法考生须知:1. 本试卷满分为150分,全部考试时间总计180分钟。

2. 所有答案必须写在答题纸上,写在试题纸上或草稿纸上一律无效。

3. 考生可用中文或者英文作答。

1. 判断题(10题,每题1分,共10分)请在答题纸上写明题号后,对正确的命题则打“√”,错误的命题则打“⨯”。

1)数组(Array)是一种线性结构,因此只能用来存储线性表。

()2)设堆栈 S 和队列 Q 的初始状态为空,元素 a1,a2,a3,a4,a5,a6 依次通过堆栈 S,一个元素出栈后即进入队列 Q ,如果6个元素出队列 Q的顺序是 a2,a4,a3,a6,a5,a1 ,那么堆栈 S 的容量至少是 3。

()3)长度为 n 的单向链表(Linked list),如果查找每个元素的概率相同,则查找表中任意元素的平均查找长度为Θ(n)。

()4)冒泡排序(Bubble sort)算法中的比较次数与初始元素序列的排列无关。

()5)在排序算法中,快速排序(Quick sort)的执行时间一定最短。

()6)一个复杂度为T(n)=4n3+n2log2(n)的算法执行时间一定比一个复杂度为 T(n)=n3+6log2(n)的算法执行时间长。

()7)一棵完全二叉树(Complete binary tree)的节点数量为n,则该树中节点的平均深度为Θ(log2(n))。

()8)如果要存储一个稀疏图,邻接矩阵法的空间复杂度小于邻接表法。

()9)寻找最短路径的迪杰斯特拉(Dijkstra)算法不属于贪心法。

()10)所有的NP问题都可以约化到NPC问题。

()2. 单选题(15题,每题2分,共30分)每题只有一个正确选项。

请在答题纸上写下正确选项的序号。

1)下列数据结构中,哪一个不是线性结构?()。

A. 链表B. 完全二叉树C.堆栈D. 循环队列(Circular queue)2)设计一个可以用于判别表达式中左、右括号是否配对出现的算法,采用()数据结构最有效。

上海科技大学2018年攻读硕士学位研究生招生考试试题

上海科技大学2018年攻读硕士学位研究生招生考试试题

上海科技大学2018年攻读硕士学位研究生招生考试试题科目代码: 641 科目名称:生物化学与分子生物学考生须知:1. 本试卷满分为150分,全部考试时间总计180分钟。

2. 所有答案必须写在答题纸上,写在试题纸上或草稿纸上一律无效。

3. 每道题目的中文部分均已翻译为英文,考生可在中英文中任选一种语言作答。

一、名词解释(每小题5分,共20分)1.流动镶嵌模型(Fluid m osaic m odel)2.糖酵解(Glycolysis)3.基因组编辑(Genome e diting)4.增强子(Enhancer)二、单选题(每小题1分,共20分)1.规则的二级结构解折叠将导致(The u nfolding o f r egular s econdary s tructure c auses):( )A.蛋白质熵的轻微增加(Little i ncrease i n t he e ntropy o f p rotein)B.蛋白质熵的大量降低(Large d ecrease i n t he e ntropy o f t he p rotein)C.蛋白质的熵不变(No c hange i n t he e ntropy o f t he p rotein)D.蛋白质熵的大量增加(Large i ncrease i n t he e ntropy o f t he p rotein)2.甘氨酸的分子式是C2H5O2N。

通过缩合反应形成的甘氨酸线性寡聚体的分子式应该是下面哪个(The m olecular f ormula f or g lycine i s C2H5O2N. W hat w ould b e t he m olecular f ormula f or a linear o ligomer m ade b y l inking t en g lycine m olecules t ogether b y c ondensation s ynthesis):( )A.C20H50O20N10B.C20H32O11N10C.C20H40O10N10D.C20H68O29N103.肽链延伸时,tRNA在核糖体上的移动路线是(The p athway o f a t RNA d uring p olypeptideelongation o n t he r ibosome i s):( )A.A 位点 → P位点→ E位点(A s ite → P s ite → E s ite)B.P 位点 → 进入位点→ 脱离位点(P s ite → e ntry s ite → e xit s ite)C.A位点→ P位点→ 进入位点(A s ite → P s ite → e ntry s ite)D.P位点→ A位点→ E位点(P s ite → A s ite → E s ite)4.肽聚糖是复合物,它包含(Peptidoglycan i s a c omplex t hat c ontains):( )A.寡聚糖和蛋白(Oligo-­‐saccharide a nd p rotein)B.多聚糖和蛋白(Poly-­‐saccharide a nd p rotein)C.单糖和蛋白(Mono-­‐saccharide a nd p rotein)D.氨基酸和碳水化合物(Amino a cid a nd c arbohydrate)5.下面哪些属于丝氨酸蛋白酶(Which o f t he f ollowing (s) i s/are s erine p roteases):( )A.胰凝乳蛋白酶(Chymotrypsin)B.胰蛋白酶(Trypsin)C.弹性蛋白酶(Elastase)D.上面所有的(All a bove o nes)6.以下选项中哪个不属于RNA的基本结构(Which o f t he f ollowing c omponent i s N OT b elongedto t he b asic s tructure o f R NA):( )A.碱基(Base)B.脱氧核糖(Deoxyribose)C.磷酸二酯键(Phosphodiester b ond)D.糖苷键(Glycosidic b ond)7.以下哪种代谢物能引起痛风(Which o f t he f ollowing m etabolite c an c ause g out):( )A.尿酸(Uric a cid)B.尿素(Urea)C.黄嘌呤(Xanthine)D.次黄嘌呤(Hypoxanthine)8.以下哪种酶负责催化dCTP到dUTP的转化(Which o f t he f ollowing e nzyme c atalyzes t heconversion o f d CTP t o d UTP):( )A.dCTP氧化酶(dCTP o xidase)B.dCTP还原酶(dCTP r eductase)C.dCTP甲基化酶(dCTP m ethyltransferase)D.dCTP脱氨酶(dCTP d eaminase)9.真核生物核小体是由几个组蛋白分子组成的(How m any m olecules o f h istone c ompose o neeukaryotic n ucleosome)( )A.5B.6C.7D.810.以下哪种组分不是PCR反应所需的(Which o f t he f ollowing c omponent i s N OT r equired i n aPCR r eaction):( )A.模版(Template)B.引物(Primer)C.DNA聚合酶(DNA p olymerase)D.dNMP11.碳水化合物完全氧化后的最终产物是(The u ltimate p roduct o f c omplete o xidation o fcarbohydrates i s):( )A.二氧化碳(Carbon d ioxide)B.乙酰辅酶A(Acetyl C oA)C.丙酮酸(Pyruvate)D.乙酸(Acetate)12.一个β–氧化循环产生多少个FADH2和NADH(How m any F ADH2 a nd N ADH a re p roduced b yone r ound o f t he β–oxidation p athway):( )A.各1个(1 e ach)B.1 F ADH2 和2 N ADH (1 F ADH2 a nd 2 N ADH)C.各2个(2 e ach)D.2 F ADH2 和1 N ADH (2 F ADH2 a nd 1 N ADH)13.以下哪个属于酮体(Which o f t he f ollowing i s a k etone b ody):( )A.草酰乙酸(Oxaloacetate)B.乙酰乙酸(Acetoacetate)C.脂肪酸(Fatty a cid)D.氨基酸(Amino a cid)14.以下哪个不是细胞内降解蛋白质的途径之一(Which o ne o f t he f ollowing i s N OT a w ay f orcellular d egradation o f p rotein):( )A.溶酶体途径(lysosome)B.自噬途径(autophagy)C.泛素修饰途径(ubiquitin-­‐proteasome)D.胰蛋白酶水解途径(Trypsin)15.以下哪种关于类固醇激素的描述是正确的(Which s tatement c orrectly d escribes s teroidhormones):( )A.它们在细胞中的作用是通过膜蛋白介导的(Their i ntracellular a ctions a re m ediated b yintegral m embrane p roteins)B.它们对细胞的作用需要水溶性细胞内的信号(Their e ffects o n c ells r equire a w ater-­‐soluble i ntracellular s ignal)C.它们的作用是通过结合水溶性受体蛋白来介导的(Their e ffects a re m ediated b y b indingto a w ater-­‐soluble r eceptor p rotein)D.它们是由氨基酸前体直接合成而来(They a re s ynthesized d irectly f rom a mino a cidprecursors)16.密码子简并性导致(The d egeneracy o f g enetic c ode r esults i n):( )A.tRNA的种类多于密码子的种类(More t RNAs t han c odons)B.密码子的种类多于氨基酸的种类(More c odons t han a mino a cids)C.核酸的种类多于密码子的种类(More n ucleotides t han c odons)D.密码子和氨基酸的种类同样多(The s ame n umber o f c odons a nd a mino a cids)17.下列关于λ噬菌体阻遏物哪一项是错误的(Which o ne i s N OT c orrect a bout l ambdarepressor):( )A.λ噬菌体阻遏物的DNA结合形式是二聚体(The D NA-­‐binding f orm o f t he L ambdarepressor i s a d imer)B.λ噬菌体阻遏物使用亮氨酸拉链基序来结合DNA(Lambda r epressor u ses a L eucineZipper m otif t o b ind D NA)C.λ噬菌体阻遏物的功能是维持溶原性(The f unction o f t he l ambda r epressor i s t o m aintainlysogeny)D.一个λ噬菌体阻遏物结合操纵基因后将增强下一个阻遏物结合相邻操纵基因的亲和力(Lambda r epressor b inding t o o ne o perator i ncreases t he a ffinity f or b inding a s econdrepressor d imer t o t he a djacent o perator)18.下列哪些蛋白结构域最有可能识别并结合核小体上的乙酰化赖氨酸(Which o f t he f ollowingprotein d omains w ould b e m ost l ikely t o r ecognize a nd b ind t o a cetylated l ysine r esidues o n nucleosomes):( )A.同源异形域(Homeodomains)B.锌指结构域(Zinc f ingers)C.布罗膜结构域(Bromodomains)D.克罗莫结构域(Chromodomains)19. “摆动碱基配对”会发生在下列哪一对密码子中(‘Wobble b ase p airing’ w ill o ccur f or w hichone o f t he f ollowing p airs c odons):( )A.AUG 和 U GG(AUG a nd U GG)B.AAA 和 U UU(AAA a nd U UU)C.GGA 和 G GC(GGA a nd G GC)D.UAG 和 U GA(UAG a nd U GA)20.你在实验过程中发现了一个新的DNA结合蛋白。

上海科技大学考研电路原理试题汇总

上海科技大学考研电路原理试题汇总

上海科技大学考研电路原理试题汇总第1题(12分)电路模型和电路定律如下图(a)所示,左边的电源/电阻网络连接到右边的一个新型电路元件SISTor B, 该元件的电流(i)- 电压(v)关系曲线如下图(b)所示。

求该新型元件消耗的功率。

SISTor B(a)图中10V为电压源,3A为电流源。

(b) i-V曲线题1图第2题(15分)含运算放大器的电阻电路分析在下图所示电路中,求输出信号v o与两个输入信号v1和v2之间的函数关系。

假设所有运算放大器都是理想的。

注意在解答中明确给出每个运算放大器的输出信号表达式。

题2图第3题(20分)等效电路在下图所示电路中,假设运算放大器是理想的,v s为独立电压源。

1)求从a、b两端往左看,该桥接电路的戴维南等效电路;(15分)⁄。

(5分)2)使用1)中得到的等效电路,求整个电路的电压增益G=v o v s题3图第4题(15分)一阶电路时域分析下图所示电路有两个开关,在t=0时刻之前,两个开关已经打开了足够长的时间。

在t=0时刻,开关Switch 1闭合,接着在t=5s时刻,开关Switch 2闭合。

求t≥0时,电容两端的电压v C(t)的表达式。

已知V0=24V,R1=R2=16kΩ,C=250μF。

假定v C(0)=0。

图中V0为独立电压源。

题4图第5题(20分)二阶电路时域分析在下图电路中,假设运算放大器是理想的。

求图中i L(t),t≥0的表达式。

已知V s=1mV, R1=10kΩ, R2=1MΩ, R3=100Ω, L=5H, C=1μF。

图中V s u(t)为独立电压源,其中u(t)是单位阶跃函数。

题5图第6题(15分)正弦稳态电路分析求下图中电流i的时域表达式i(t)。

已知L=0.1H,C=25mF,R1=3Ω,R2=3Ω,R3=1Ω。

另外,两个独立源(电压源V s和电流源I s)的正弦信号分别为V s(t)=−4cos(10t+30°)V和 I s(t)=2sin(40t+30°)A注:图中标注为“2i”的元件为受控电压源。

上海科技大学991数据结构与算法2019年考研专业课真题试卷

上海科技大学991数据结构与算法2019年考研专业课真题试卷

2019年上海科技大学考研专业课真题试卷上海科技大学2019年攻读硕士学位研究生招生考试试题科目代码:991 科目名称:数据结构与算法考生须知:1. 本试卷满分为150分,全部考试时间总计180分钟。

2. 所有答案必须写在答题纸上,写在试题纸上或草稿纸上一律无效。

3. 每道题的英文部分均已翻译为中文,考生可在中英文中任选一种语言作答。

1.True or False (10 problems, 2 points each) 判断题(10题,每题2分)Please indicate in the answer sheet whether each statement is true or false. Write down “T” for being true and “F” for being false.请在答题纸上写明下列每个命题的真假。

真则打“√”,假则打“⨯”。

1.In a circular linked list, some link fields may be null. ()在循环链表中,某些链接域可能为空。

()2.Given any functions f(n) and g(n), it is possible to have both f(n) = Ω(g(n)) and f(n) = o(g(n)).()给定任意函数f(n)和g(n),f(n) = Ω(g(n))和f(n) = o(g(n))可能同时成立。

()3. A good hash function of a hash table satisfies the assumption of simple uniform hashing. ()一个好的哈希函数需满足简单均匀。

()。

2020年991真题

2020年991真题

上海科技大学2020年攻读硕士学位研究生招生考试试题科目代码:991 科目名称:数据结构与算法考生须知:1. 本试卷满分为150分,全部考试时间总计180分钟。

2. 所有答案必须写在答题纸上,写在试题纸上或草稿纸上一律无效。

3. 每道题的英文部分均已翻译为中文,考生可在中英文中任选一种语言作答。

1. True or False (totally 20 points, 2 points each) 判断题(共20分,每题 2 分)Please indicate in the answer sheet whether each statement is true or false. Write down “T” for being true and “F” for being false.请在答题纸上写明下列每个命题的真假。

真则打“ ”,假则打“ ”。

1.Given three functions f(n), g(n) and h(n), if f(n)ϵΩ(h(n)) and g(n)ϵΩ(h(n)), then f(n)∙g(n)ϵΩ([h(n)]2). ()给定3个函数f(n),g(n) 和h(n),如果f(n)ϵΩ(h(n)) 而且g(n)ϵΩ(h(n)),那么f(n)∙g(n)ϵΩ([h(n)]2)。

()2.If a problem is in NP, it cannot be solved by a deterministic algorithm in polynomial time.()如果一个问题属于NP,它将不能被一个时间复杂度为多项式的确定性算法解决。

()3.The in-order depth-first traversal of a binary search tree (BST) produces elements indescending order. ()二叉搜索树的中序深度优先遍历可以产生一个降序的有序序列。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

上海科技大学计算机考研真题考生须知:1. 本试卷满分为150 分,全部考试时间总计180 分钟。

2. 所有答案必须写在答题纸上,写在试题纸上或草稿纸上一律无效。

3. 每道题的英文部分均已翻译为中文,考生可在中英文中任选一种语言作答。

1. True or False (10 problems, 2 points each) 判断题(10 题,每题2 分)Please indicate in the answer sheet whether each statement is true or false. Write down “T” for being true and “F” for being false. 请在答题纸上写明下列每个命题的真假。

真则打“√”,假则打“⨯”。

1. In a circular linked list, some link fields may be null. ()在循环链表中,某些链接域可能为空。

()2. Given any functions f(n) and g(n), it is possible to have both f(n) = Ω(g(n)) and f(n) = o(g(n)). ()给定任意函数f(n)和g(n),f(n) = Ω(g(n))和f(n) = o(g(n))可能同时成立。

()3. A good hash function of a hash table satisfies the assumption of simple uniform hashing. ()一个好的哈希函数需满足简单均匀。

()4. The following tree is a binary search tree. ()下列树是二叉搜索树。

()5. The number of nodes in a tree can be more than twice the number of leaf nodes. ()一棵树的节点个数有可能大于叶节点个数的两倍。

()6. The space complexity of an adjacency-matrix representation of a graph is independent of the number of edges in the graph. ()图的邻接矩阵表示的空间复杂度与图的边数无关。

()7. In the breadth-first search procedure of graphs, each vertex must be enqueued exactly once. ()在图的广度遍历算法中,每个节点恰好仅入队一次。

()8. Given a weighted, directed graph with nodes numbered1,2,……,n, finding the length of a shortest path from vertex 1 to vertex n or determining that no such path exists can be done in polynomial time. ()给定一个带权有向图,图的节点为1,2,……,n,要计算节点1 和n 之间的最短路径或判断这样的路径不存在,这个问题可以在多项式时间内解决。

()9. Given a graph, deciding whether it has a clique of 100 nodes is NP-complete, assuming P≠NP. ()给定一个图,确定图中是否存在一个正好包含100 个节点的团是一个NP-complete 的问题,假设P≠NP。

()10. Given a graph, deciding whether it is possible to remove half the nodes in the graph so that the remaining graph is 3-colorable is solvable in polynomial time, assuming P≠NP. ()给定一个图,确定是否可以去除图中一半的节点后使得该图可以三染色,这可以在多项式时间内完成,假设P NP。

()2. Multiple Choices – Select One (10 problems, 2 points each) 单选题(10 题,每题2 分)Each question has only one correct choice. Please indicate the correct choice in the answer sheet. 每题只有一个正确选项。

请在答题纸上写下正确选项的序号。

rearrange substrings? ()A. Fixed length storage structure B. Linked list storage C. Variable length storage with fixed maximum D. Array list storage E. None of the above 哪种字符串的存储结构可以方便地进行插入,删除,并联以及重新安排子字符串? ()A. 固定长度的存储结构B. 链表存储结构C. 具有固定最大长度的变长存储结构D. 数组存储结构E. 以上都不是2. In which of the following are the functions listed in order of increasing asymptotic size? ()下面哪个选项中的函数是按照渐进大小的增序排列?()A. 2 n , n + (log n)2 , n3 , 10n2 , n log nB. n + (log n)2 , n3 , 10n2 , n log n, 2 nC. n + (log n)2 , n log n, 10n2 , n3 , 2 nD. n + (log n)2 , 10n2 , n log n, n3 , 2 nE. 2 n , n3 , 10n2 , n log n, n + (log n)23. We store 10 elements with keys {5,28,19,15,20,12,33,17,10,18}into a hash table with collisions resolved by chaining (with linked list). The hash table has 9 slots and the hash function is defined as h(k) = k mod 9. What is the maximum length of the linked lists in the hash table? ()存储10 个元素到一个哈希表,这10 个元素的key 是{5,28,19,15,20,12,33,17,10,18}。

哈希表总共有9 个slots,哈希函数是h(k) = k mod 9,并用链表解决冲突。

哈希表中最长的链表长度是?()A. 1B. 2C. 3D. 4 4. A full binary tree is a rooted tree in which every internal node has exactly two children. many internal nodes are there in a full binary tree with 500 leaves? ()满二叉树的所有中间节点都有两个孩子节点。

一个有500 个叶子节点的满二叉树有多少个中间节点?()A. 250B. 499C. 500D. 501E. 1,0005. Which of the following statements about trees is false? ()A. An internal node may have no childB. Adding an edge to a tree creates a cycleC. Not every node has a parent node in a treeD. The height of a tree with one node is 0以下哪一个关于树的描述是错误的?()A. 非叶节点有可能没有孩子B. 在一棵树中加一条边会形成一个环C. 一棵树中并非每个节点都有父亲节点D. 一棵包含一个节点的树高度为06. What is the in-order traversal of the following binary tree? ()下面二叉树的中序遍历是什么?()A. DFBEACB. ABDFECC. FDEBCAD. FDEBACPrim’s algorithm is one algorithm for finding a minimum spanning tree in a graph and the Floyd-Warshall algorithm can be used to solve the all-pairs shortest-paths problem on a directed graph. Which of the following must be true?()Prim’s algorithm is a greedy algorithm. ii. Prim’s algorithm is a dynamic programming algorithm. iii. Floyd-Warshall algorithm is a greedy algorithm. iv. Floyd-Warshall algorithm is a dynamic programming algorithm. Prim 算法是一种计算图的最小生成树算法,Floyd-Warshall 算法可用于计算有向图中所有节点对之间的最短路径。

以下哪些表述肯定是正确的?()I Prim 算法是一种贪心算法。

ii. Prim 算法是一种动态规划算法。

iii. Floyd-Warshall 算法是一种贪心算法。

iv. Floyd-Warshall 算法是一种动态规划算法。

A. I 和iii B. I 和iv C. ii 和iii D. ii 和iv 8. Among the following problems concerning a given graph G, which is currently known to be solvable in linear time? ()A. Finding a longest simple cycle in an undirected graphB. Computing the strongly connected components of a directed graphC. Solving the single-source shortest-paths problem of a weighted, directed graph GD. Finding a largest clique in an undirected graph G以下哪一个图的问题可以在线性时间内解决?()A. 找到一个无向图中的最长简单环B. 计算有向图的强连通分量C. 解决带权有向图的单源最短路径问题D. 找到一个无向图的最大团9. Which of the following is true of merge sort and quicksort? ()A. Both are divide and conquer algorithmsB. Both take (n) time in each divide step, given an input array of size nC. Both have the same worst-case time complexityD. All of the above are true下列关于归并排序和快速排序的陈述哪一项是对的?()A. 都是用分治法B. 给定一个长度为n 的输入数组,都是需要 (n)的时间进行每一次切分C. 都有相同的最坏时间复杂度D. 以上都对10. Which of the following is the closest to the minimum number of comparisons between array elements that any comparison-based algorithm needs to perform to find both the minimum and maximum values in an input array of size n? ()任何一个基于比较的算法在一个长度为n 的数组中同时找出最大和最小值,至少需要数组元素之间的比较的次数与下列哪个最接近?()A. nB. 1.5nC. 2nD. n 2 3.Multiple Choices – Select One or More (5 problems, 2 points each) 多选题(5 题,每题2 分)Each question may have one or more correct choices. Please indicate all the correct choice(s) in the answer sheet. 每题有一个或多个正确选项。

相关文档
最新文档