学堂在线数据结构(上)(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

相关推荐
lihao lihao13 分钟前
模板进阶
java·数据结构·算法
Ghost-Silver26 分钟前
2025年度总结
开发语言·数据结构·c++·算法
你撅嘴真丑35 分钟前
成绩排序 与 整数奇偶排序
数据结构
谈笑也风生1 小时前
经典算法题型之排序算法(四)
数据结构·算法·排序算法
光明西道45号1 小时前
Leetcode 15. 三数之和
数据结构·算法·leetcode
咸鱼2.01 小时前
【java入门到放弃】数据结构
java·开发语言·数据结构
Sheep Shaun2 小时前
STL中的unordered_map和unordered_set:哈希表的快速通道
开发语言·数据结构·c++·散列表
optimistic_chen2 小时前
【Redis 系列】常用数据结构---String类型
数据结构·数据库·redis·缓存·string
wen__xvn2 小时前
代码随想录算法训练营DAY1第一章 数组part01
数据结构·算法·leetcode
爱编码的傅同学2 小时前
【程序地址空间】页表的映射方式
c语言·数据结构·c++·算法