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

相关推荐
嵌入小生0071 分钟前
Data Structure Learning: Starting with C Language Singly Linked List
c语言·开发语言·数据结构·算法·嵌入式软件
ValhallaCoder4 分钟前
hot100-子串
数据结构·python·算法
还是奇怪27 分钟前
Python第四课:循环与数据结构深度解析
数据结构·windows·python·青少年编程·循环
二年级程序员1 小时前
qsort函数的使用与模拟实现
c语言·数据结构·算法·排序算法
ajole1 小时前
C++学习笔记——C++11
数据结构·c++·笔记·学习·算法·stl
BHXDML1 小时前
数据结构:(四)空间的艺术——数组压缩与广义表
数据结构
爱编码的傅同学1 小时前
【今日算法】LeetCode 543.二叉树的直径 621.任务调度器 739.每日温度
数据结构·算法·leetcode
sin_hielo1 小时前
leetcode 3651
数据结构·算法·leetcode
嵌入小生0071 小时前
数据结构基础内容 + 顺序表 + 单链表的学习---嵌入式入门---Linux
linux·数据结构·学习·算法·小白·嵌入式软件
康小庄1 小时前
List线程不安全解决办法和适用场景
java·数据结构·spring boot·spring·list·intellij-idea