学堂在线数据结构(上)(2023春)邓俊辉 课后作业错题整理

  1. The reverse number of a sequence is defined as the total number of reversed pairs in the sequence, and the total number of element comparisons performed by the insertion sort in the list of size n is:

一个序列的逆序数定义为该序列中的逆序对总数,规模为n的列表中插入排序进行的元素比较总次数为:

答案:1B

  1. For ordered subsequences (set their length to k) during insertion sorting.
    对于插入排序过程中的已排序子序列(设其长度为k):

答案:2C

相关推荐
爱滑雪的码农5 小时前
Java基础十七:数据结构
数据结构
多加点辣也没关系5 小时前
数据结构与算法|第二十三章:高级数据结构
数据结构·算法
孬甭_7 小时前
初识数据结构与算法
数据结构
naturerun11 小时前
从数组中删除元素的算法
数据结构·c++·算法
酿情师14 小时前
区块链原理与技术02:区块链的数据结构04(区块结构)
数据结构·区块链
夏日听雨眠14 小时前
数据结构(循环队列)
数据结构·算法·链表
平行侠14 小时前
30MacLaren-Marsaglia算法故事文件
数据结构·算法
平行侠16 小时前
33水库抽样 - 从未知大小的流中等概率采样
数据结构·算法
Controller-Inversion16 小时前
42. 接雨水
数据结构·算法·leetcode