皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
填空并回答相关问题 (1)下面是将任意序列调整为最大堆(MAX HEAP)的算法,请将空白部分填上: 将任意序列调整为最大堆通过不断调用 adjust函数,即:FOR(i=n/2;i >0;i- -)adjust(list,i,n);其中list为待调整序列所在数组(从下标1开始),n为序列元素个数,adjust函数为: void adjust(int list[],int root,int n) /*将以root为下标的对应元素作为待调整堆的根,待调整元素放在list数组中,最大元素下标为n*/ {int child,rootkey; rootkey=list[root]; child=2*root; while(child<=n) {if((child list[child]) break; else{List[(2) ]=list[child]; child*=2; } } list[child/2]=rootkey; } (2)判断下列序列能否构成最大堆:(12,70,33,65,24,56,48,92,86,33);若不能按上述算法将其调整为堆,调整后的结果为:( )。
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】people visit the museum  every day.
A.
Million of
B.
3 million
C.
3 millions
D.
3 millions of
【单选题】Every day 25 million US children ride school buses. The safety record for these buses is much better than for passenger cars; but nevertheless, about 10 children are killed each year riding on large s...
A.
School buses killed the smallest number of children in America.
B.
School buses are much safer than passenger cars in America.
C.
Outside buses in loading zones killed the most children in America.
D.
Children in America mainly take school buses to and from school.
【单选题】下列有关市场机会的含义、分类和来源说法错误的是( )
A.
有些市场竞争者受到外部激励作用,搜索并识别机会,然后创建新企业。
B.
而另一些市场竞争者却受到内部激励作用,先识别出现实问题或未满足的需求,从而通过市场来填补它。
C.
不管市场竞争者以哪种方式创建新企业,机会不难识别。
D.
机会识别一半是艺术,一半是科学。
【多选题】以下哪些是创业机会的识别方法:( )
A.
着眼于问题发现机会
B.
利用变化把握机会
C.
在市场夹缝中把握机会
D.
跟踪技术创新把握机会
【单选题】_______ people in the world are sending and receiving e-mails every day. [     ]
A.
Million of
B.
Many millions of
C.
Several million of
D.
Several millions
【判断题】Every day, the news of the world is relayed to people by over 300 million copies of daily papers, over 400 million radio sets, and over 150 million television sets. Additional news is shown by motion ...
A.
正确
B.
错误
【单选题】不符合新车库存检查规范操作有( ) 3 2
A.
根据库存时间不同,有7种类别检查
B.
库存检查单由销售部门存档
C.
库存检查由售后部门执行
D.
库存检查单有两联
【单选题】下列作者中属于“唐宋古文八大家”的是
A.
李斯
B.
李密
C.
韩愈
D.
宗臣
【单选题】色谱分析时,为能获得较好的精密度和准确度,应使分离度R
A.
≥1.5
B.
≤1.5
C.
≥2
D.
≤2
【简答题】Every day 25 million U.S. children ride school buses. The safety record for these buses is much better than for passenger cars; but nevertheless, about 10 children are killed each year riding on large...
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题