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

相关推荐
Queenie_Charlie41 分钟前
前缀和的前缀和
数据结构·c++·树状数组
念越5 小时前
数据结构:栈堆
java·开发语言·数据结构
dear_bi_MyOnly5 小时前
【多线程——线程状态与安全】
java·开发语言·数据结构·后端·中间件·java-ee·intellij-idea
浪客灿心5 小时前
list_stack_queue
数据结构·list
zh_xuan5 小时前
最小跳跃次数
数据结构·算法
zh_xuan6 小时前
单青蛙跳台阶
数据结构·算法
罗湖老棍子7 小时前
【 例 1】石子合并(信息学奥赛一本通- P1569)
数据结构·算法·区间dp·区间动态规划·分割合并
小高Baby@7 小时前
JSON、bind、form
数据结构·json
数智工坊10 小时前
【数据结构-栈】3.1栈的顺序存储-链式存储
java·开发语言·数据结构
执着25910 小时前
力扣102、二叉树的层序遍历
数据结构·算法·leetcode