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

相关推荐
重生之后端学习3 小时前
78. 子集
java·数据结构·算法·职场和发展·深度优先
kronos.荒3 小时前
滑动窗口+哈希表:最小覆盖子串
数据结构·python·散列表
wostcdk4 小时前
筛质数汇总
数据结构·算法
qq_454245035 小时前
BuildTemplateGraph 函数深度解析:动态节点图构建的架构设计与核心价值
数据结构·c#
qq_454245035 小时前
SkeletonFlow:基于组合子逻辑与范畴论的数据流处理框架
数据结构·c#
逆境不可逃6 小时前
【春节篇】LeetCode 热题 100 之 238.除了自身以外数组的乘积
数据结构·算法·leetcode
散峰而望6 小时前
【算法竞赛】堆和 priority_queue
开发语言·数据结构·c++·算法·贪心算法·动态规划·推荐算法
重生之后端学习7 小时前
46. 全排列
数据结构·算法·职场和发展·深度优先·图论
wostcdk7 小时前
数论学习1
数据结构·学习·算法
Zik----7 小时前
Leetcode2 —— 链表两数相加
数据结构·c++·leetcode·链表·蓝桥杯