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

相关推荐
wangluoqi13 分钟前
c++ 数据结构-树状数组、线段树 小总结
开发语言·数据结构·c++
化学在逃硬闯CS15 分钟前
Leetcode111. 二叉树的最小深度
数据结构
重生之后端学习1 小时前
230. 二叉搜索树中第 K 小的元素
java·数据结构·算法·深度优先
星火开发设计2 小时前
类模板:实现通用数据结构的基础
java·开发语言·数据结构·c++·html·知识
EE工程师2 小时前
数据结构篇 - 顺序队列
数据结构·顺序队列
白中白121382 小时前
算法题-14
数据结构·算法·leetcode
plus4s2 小时前
2月13日(73-75题)
数据结构·c++·算法
仰泳的熊猫3 小时前
题目1465:蓝桥杯基础练习VIP-回形取数
数据结构·c++·算法·蓝桥杯
blackicexs3 小时前
第四周第五天
数据结构·算法
重生之后端学习3 小时前
98. 验证二叉搜索树
java·数据结构·后端·算法·职场和发展