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

相关推荐
每周报刊5 小时前
竞速座舱级视界:爱攻 AGP497UCZD 超宽 QDOLED 显示器解析
数据结构·游戏·计算机外设
小星星闪亮登场7 小时前
图论--最小生成树(内含二分图)
数据结构·算法·图论·迭代加深·图搜索算法
2601_962201729 小时前
Java进阶,集合,Colllection,常见数据结构
java·数据结构·windows
挽星安9 小时前
2026/8/29
数据结构·算法
positive_zpc9 小时前
进阶数据结构图——最短路径(二)
数据结构·算法·图论·最短路径
positive_zpc9 小时前
进阶数据结构图——最小生成树(一)
数据结构·算法·图论
码完就睡9 小时前
数据结构——遍历二叉树
数据结构·算法
老王爱玩车10 小时前
关于函数递归的优缺点分析
开发语言·数据结构·学习·算法
lv__pf10 小时前
Mysql索引优化实战1【TL mysql4】
数据结构
boxiansheng16310 小时前
通讯录系统报错(二)
c语言·数据结构