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

相关推荐
虹科网络安全2 分钟前
艾体宝干货 | Redis Java 开发系列#2 数据结构
java·数据结构·redis
sin_hielo29 分钟前
leetcode 2211
数据结构·算法·leetcode
Queenie_Charlie31 分钟前
和为k的连续区间
数据结构·c++·map
爱学java的ptt1 小时前
206反转链表
数据结构·链表
java修仙传1 小时前
力扣hot100:最大子数组和
数据结构·算法·leetcode
hweiyu001 小时前
数据结构:二叉树
数据结构
Rock_yzh2 小时前
LeetCode算法刷题——54. 螺旋矩阵
数据结构·c++·学习·算法·leetcode·职场和发展·矩阵
ベadvance courageouslyミ2 小时前
数据结构(一)
数据结构
lightqjx2 小时前
【C++】对set和map的使用
开发语言·数据结构·c++·stl
AI科技星2 小时前
时空运动的几何约束:张祥前统一场论中圆柱螺旋运动光速不变性的严格数学证明与物理诠释
服务器·数据结构·人工智能·python·科技·算法·生活