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

相关推荐
Yeats_Liao7 小时前
MindSpore开发之路(八):数据处理之Dataset(上)——构建高效的数据流水线
数据结构·人工智能·python·机器学习·华为
客梦8 小时前
数据结构-线性表
数据结构·笔记
鹿角片ljp8 小时前
力扣226.翻转二叉树-递归
数据结构·算法·leetcode
WBluuue8 小时前
数据结构和算法:Morris遍历
数据结构·c++·算法
客梦8 小时前
数据结构-红黑树
数据结构·笔记
Sheep Shaun9 小时前
STL:string和vector
开发语言·数据结构·c++·算法·leetcode
winfield8219 小时前
滑动时间窗口,找一段区间中的最大值
数据结构·算法
k***921610 小时前
list 迭代器:C++ 容器封装的 “行为统一” 艺术
java·开发语言·数据结构·c++·算法·list
x70x8011 小时前
C++中auto的使用
开发语言·数据结构·c++·算法·深度优先
sin_hielo11 小时前
leetcode 2054(排序 + 单调栈,通用做法是 DP)
数据结构·算法·leetcode