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

相关推荐
程序员-周李斌1 分钟前
ArrayList 源码深度分析(基于 JDK 8)
java·开发语言·数据结构·算法·list
爪哇部落算法小助手28 分钟前
爪哇周赛 Round 3
数据结构·c++·算法
迷途之人不知返44 分钟前
二叉树的链式结构
数据结构
不会c嘎嘎1 小时前
【数据结构】红黑树详解:从原理到C++实现
开发语言·数据结构
吃着火锅x唱着歌1 小时前
LeetCode 2364.统计坏数对的数目
数据结构·算法·leetcode
kyle~1 小时前
数据结构---堆(Heap)
服务器·开发语言·数据结构·c++
带土11 小时前
13. 某马数据结构整理(1)
数据结构
Kuo-Teng1 小时前
Mastering High-Concurrency Data Processing: A Deep Dive into BufferTrigger
java·数据结构
秋深枫叶红2 小时前
嵌入式第二十三篇——数据结构基本概念
linux·数据结构·学习·算法
Zsy_0510032 小时前
【数据结构】二叉树介绍及C语言代码实现
c语言·数据结构·算法