学堂在线数据结构(上)(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 小时前
C++ 启程:从历史到实战,揭开命名空间的神秘面纱
c语言·开发语言·数据结构·c++·算法·github·visual studio
Darkwanderor3 小时前
数据结构 - 并查集的应用
数据结构·c++·并查集
Hag_204 小时前
LeetCode Hot100 53.最大子数组和
数据结构·算法·leetcode
王老师青少年编程4 小时前
csp信奥赛C++之反素数
数据结构·c++·数学·算法·csp·信奥赛·反素数
元亓亓亓8 小时前
考研408--数据结构--day17--外部排序
数据结构·考研
仰泳的熊猫9 小时前
蓝桥杯算法提高VIP-种树
数据结构·c++·算法·蓝桥杯·深度优先·图论
郝学胜-神的一滴9 小时前
FastAPI:Python 高性能 Web 框架的优雅之选
开发语言·前端·数据结构·python·算法·fastapi
样例过了就是过了9 小时前
LeetCode热题100 回文链表
数据结构·算法·leetcode·链表
Solitary-walk10 小时前
前缀和思想
数据结构·c++·算法
忍者必须死10 小时前
JDK1.7的HashMap的环形链表
java·数据结构·算法·链表