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

相关推荐
晨晖27 小时前
单链表逆转,c语言
c语言·数据结构·算法
其美杰布-富贵-李9 小时前
HDF5文件学习笔记
数据结构·笔记·学习
明洞日记10 小时前
【数据结构手册008】STL容器完全参考指南
开发语言·数据结构·c++
kingmax5421200811 小时前
《数据结构C语言:单向链表-链表基本操作(尾插法建表、插入)》15分钟试讲教案【模版】
c语言·数据结构·链表
AI科技星11 小时前
质量定义方程常数k = 4π m_p的来源、推导与意义
服务器·数据结构·人工智能·科技·算法·机器学习·生活
Fine姐11 小时前
数据结构04——二叉树搜索树BST
数据结构
仰泳的熊猫12 小时前
1077 Kuchiguse
数据结构·c++·算法·pat考试
阿里巴巴AI编程社区12 小时前
Qoder 提效实战:数据开发工程师用 Qoder 提效50%
数据结构
消失的旧时光-194312 小时前
从 C 链表到 Android Looper:MessageQueue 的底层原理一条线讲透
android·数据结构·链表
夏乌_Wx12 小时前
练题100天——DAY28:找消失的数字+分发饼干
数据结构·算法