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

相关推荐
王老师青少年编程7 小时前
csp信奥赛c++高频考点假期集训(分模块进阶)
数据结构·c++·算法·csp·高频考点·信奥赛·集训
Bear on Toilet9 小时前
递归_二叉树_50 . 从前序与中序遍历序列构造二叉树
数据结构·算法·leetcode·深度优先·递归
ArturiaZ13 小时前
【day29】
数据结构·c++·算法
Stringzhua14 小时前
队列-优先队列【Queue3】
java·数据结构·队列
季明洵18 小时前
数据在内存中的存储
数据结构·算法·c
阿昭L19 小时前
AVL树及其计算
数据结构
云深处@19 小时前
【数据结构】树&&堆
数据结构
星火开发设计20 小时前
关联式容器:map 与 multimap 的键值对存储
java·开发语言·数据结构·c++·算法
散峰而望20 小时前
【算法竞赛】二叉树
开发语言·数据结构·c++·算法·深度优先·动态规划·宽度优先
Stringzhua20 小时前
队列-双端队列【Queue2】
java·数据结构·算法·队列