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

相关推荐
Queenie_Charlie1 小时前
小陶与杠铃片
数据结构·c++·树状数组
云深处@1 小时前
【C++】AVL树
数据结构
Yvonne爱编码2 小时前
JAVA数据结构 DAY4-ArrayList
java·开发语言·数据结构
czxyvX4 小时前
016-二叉搜索树(C++实现)
开发语言·数据结构·c++
执着2594 小时前
力扣hot100 - 94、二叉树的中序遍历
数据结构·算法·leetcode
-dzk-4 小时前
【代码随想录】LC 707.设计链表
数据结构·c++·算法·链表
you-_ling5 小时前
数据结构:3.栈和队列
数据结构
梵刹古音6 小时前
【C语言】 递归函数
c语言·数据结构·算法
代码游侠6 小时前
C语言核心概念复习(二)
c语言·开发语言·数据结构·笔记·学习·算法
you-_ling7 小时前
数据结构:5.哈希表
数据结构·散列表