单项选择题
下面是一段Pascal程序: for h:=1 tO n-1 dO begin x:=A[h+1]; k:=h; while (k>=1) and (A[k]>x) do begin A[k+1):=A[k]; k:=k-1 end; A[k+1]:=x end; 假设在程序开始执行时,数组A[1..n)是一组随机整数。下列答案中,哪一个最好的描述了最差情况下的程序执行时间(运行时间阶数)( )
A.0(nlog
2
B.O(
C.0(10g
2
D.O(n
2
)
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
D
点击查看答案
单项选择题
Software Engineering Economy is an effective part of software engineering, which of the fol-lowing content is the research content of software engineering economy ( ) Ⅰ.Estimation of software development cost Ⅱ.Earn & Cost analysis of software development Ⅲ.Adjustment of software development progress
A.Ⅲ only
B.Ⅱ and Ⅲ
C.Ⅰ and Ⅱ
D.all
点击查看答案
相关试题
论述题3请说明操作系统作业管理的功能作业...
Which traversal method for a binary...
论述题2模块独立性是由内聚和耦合两个定性...
论述题4 在数据链路层,HDLC信息帧的N(S...
论述题1按规范设计的方法将数据库设计分为...