首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
已知一组关键字为{18,48,36,72,79,82,23,40,16,35},其中每相邻两个为有序子序列。对这些子序列进行一趟两两归并的结果是(27)。
已知一组关键字为{18,48,36,72,79,82,23,40,16,35},其中每相邻两个为有序子序列。对这些子序列进行一趟两两归并的结果是(27)。
admin
2009-05-15
53
问题
已知一组关键字为{18,48,36,72,79,82,23,40,16,35},其中每相邻两个为有序子序列。对这些子序列进行一趟两两归并的结果是(27)。
选项
A、{18,36,48,72,23,40,79,82,16,35}
B、{18,36,48,72,16,23,40,79,82,35}
C、{18,36,48,72,16,23,35,40,79,82}
D、{16,23,18,35,36,40,48,72,79,82}
答案
A
解析
一趟两两归并是每两组进行一次归并排序,第一组为{18,48,36,72},排序后得到{18,36,48,72};第二组为{79,82,23,40}排序后得到{23,40,79,82}:第三组不变。所以最终结果为{18,36,48,72,23,40,79,82,16,35}。
转载请注明原文地址:https://kaotiyun.com/show/4fjZ777K
本试题收录于:
程序员上午基础知识考试题库软考初级分类
0
程序员上午基础知识考试
软考初级
相关试题推荐
某网站设计了一个留言系统,能够记录留言者的姓名、IP地址及留言时间。撰写留言页面如图4-1所示,表4-1为利用MicrosoftAccess创建的数据库lyb。以下是图4-1所示write.asp页面的部分代码,请仔细阅读该段代码,将(1)~(1
阅读以下说明,回答问题。【说明】某公司A楼高40层,每层高3.3m,同一楼层内任意两个房间最远传输距离不超过90m,A楼和B楼之间距离为500m,需在整个大楼进行综合布线,其结构如图l一23所示。为满足公司业务发展的需要,要求
(74)is nonprogram text embedded in a program to explain its form and function to human readers.
(66)is a one-way function that takes an arbitrarily long piece of plaintext and from it computes a fixed,length bit string.(67)i
The standard(67)in C language contain many useful functions for input and output, string handling, mathematical computations, an
The major goal of USB was to define an external expansion bus which makes adding(70)to a PC as easy as hooking up a telephone to
Because Web servers are platform and application(71)they can send or request data from legacy or external applications including
ByusingMP3,a600M-bytemusicCDcanbe(1)_____to50Mbytesorless.Itcanbestreamed(downloadedinchunks)sothatyoucanb
By using MP3, a 600M-byte music CD can be(70)to 50M bytes or less. It can be streamed(downloaded in chunks)so that you can begin
By using(26), a 600M -byte music CD can be compressed to 50M bytes or less. It can be streamed(downloaded in chunks) so that you
随机试题
从内容上看,荒诞更接近的审美形态是()
下列各穴,不属于荥穴的是:
男,60岁。直肠癌根治术4天,晨起时突发左下肢肿胀,左腿皮温增高。股三角区有深压痛,最有可能的诊断是左下肢()
以下属于经济和技术环境的有()。
AS公司2014年年末、2015年年末利润表中“利润总额”项目金额分别为5000万元、6000万元。各年所得税税率均为25%,各年与所得税有关的经济业务如下:(1)2014年:①2014年计提存货跌价准备45万元,年末存货账面价值为500万元。②20
下列关于税收强制执行措施的表述中,正确的是()。
在一列数2、2、4、8、2…中,从第三个数开始,每个数都是它前面两个数乘积的个位数,按照这个规律,这列数中的第2008个数应该是()。
以下按照ARM公司的分类,不属于ARMCortex应用处理器的是()。
AFrenchmanwenttostayatthebesthotelinasmallItaliantownwithhiswife.Onenight,hewentoutforawalkalone.Thes
A、Narrowdownthetopicofherarticle.B、Readandreviseheressay.C、Providesomefactsforheropinion.D、Givehersomeadvic
最新回复
(
0
)