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

相关推荐
冻柠檬飞冰走茶8 小时前
PTA基础编程题目集 7-34 通讯录的录入与显示(C语言实现)
c语言·开发语言·数据结构·算法
白白白小纯19 小时前
算法篇—反转链表
c语言·数据结构·算法·leetcode
雨雨雨雨雨别下啦20 小时前
C语言练习——数据结构
c语言·开发语言·数据结构·算法
阿米亚波1 天前
【C++ STL】std::unordered_multimap
开发语言·数据结构·c++·笔记·stl
三克的油1 天前
数据结构-4
数据结构
0566461 天前
Python康复训练——数据结构
数据结构·windows·python
冻柠檬飞冰走茶1 天前
PTA基础编程题目集 7-27 冒泡法排序(C语言实现)
c语言·开发语言·数据结构·算法
noipp1 天前
推荐题目:洛谷 P5843 [SCOI2012] Blinker 的噩梦
c语言·数据结构·c++·算法·游戏·洛谷·luogu
冻柠檬飞冰走茶1 天前
PTA基础编程题目集 7-20 打印九九口诀表(C语言实现)
c语言·开发语言·数据结构·算法
红叶舞1 天前
基于线段树的数据结构
数据结构·python·算法