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

相关推荐
ホロHoro1 天前
数据结构非线性部分(二)review
linux·服务器·数据结构
菜鸟233号1 天前
力扣474 一和零 java实现
java·数据结构·算法·leetcode·动态规划
xlp666hub1 天前
链表与它在 Linux 内核中的实现
linux·数据结构
super杨某人1 天前
算法十日谈:双指针
数据结构·算法
好奇龙猫1 天前
【大学院-筆記試験練習:线性代数和数据结构(7)】
数据结构·线性代数
小北方城市网1 天前
数据库性能优化实战指南:从索引到架构,根治性能瓶颈
数据结构·数据库·人工智能·性能优化·架构·哈希算法·散列表
bbq粉刷匠1 天前
Java—排序1
数据结构·算法·排序算法
w-w0w-w1 天前
C++ list简单模拟实现
数据结构·c++
信奥胡老师1 天前
P14917 [GESP202512 五级] 数字移动
开发语言·数据结构·c++·学习·算法
源代码•宸1 天前
Golang原理剖析(程序初始化、数据结构string)
开发语言·数据结构·经验分享·后端·golang·string·init