问题 填空题

冒泡排序算法在最好情况下的元素交换次数为 【1】

答案

参考答案:0

解析: 根据冒泡排序算法思想可知,若待排序的初始序列为“正序”序列,则只需进行一趟排序,在排序过程中进行n-1次关键字间的比较,且不移动和交换元素,这种情况是冒泡排序的最好情况,故冒泡排序算法在最好的情况下的元素交换次数为0。

填空题

Marks & Spencer has a very good reputation for job security and looking after its staff, with things like good perks, (1) , that sort of thing. Do those things actually (2)
I think it is, it is very important. When people have been working (3) , and they may have been in from seven or eight o’clock in the morning, they can come off the sales floor and can go to (4) and obviously they can have tea, coffee, or (5) , and can then buy at very reduced rates (6) , if they want one, or a roll and cheese, in a pleasant environment, (7) , food of the highest quality, there’re areas where they can (8) , or play pool or something, yeah, that is very important because they need (9) . At busy times, they need to get away from it, they need to be able to relax. In terms of all the (10) we’ve got, that is very important, when people know that they will be having medicals, and (11) is another thing, obviously there’s (12) that they will buy which they will be able to buy (13) . For Christmas bonus, we give all our general staff (14) which is guaranteed, and the (15) of that, actually, at the busiest time of the year when they’re (16) and working hard, is fantastic and to see their faces as you (17) with 10% of their salary in it. I believe the environment that you work in, (18) that you work with, the way you are treated, (19) , and the fact that your views are listened to, and you feel you are consulted, that makes people (20) and makes them get up and come to work in the morning.

单项选择题