学堂在线数据结构(上)(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 分钟前
《Java数据结构与算法》第三篇(下)队列全解析:从基础概念到高级应用
java·开发语言·数据结构
别动哪条鱼1 小时前
AVAudioFifo
数据结构·ffmpeg·音视频
Croa-vo2 小时前
TikTok 数据工程师三轮 VO 超详细面经:技术深挖 + 建模推导 + 压力测试全记录
javascript·数据结构·经验分享·算法·面试
蘑菇小白3 小时前
时间复杂度
数据结构·算法
Cx330❀3 小时前
C++ STL set 完全指南:从基础用法到实战技巧
开发语言·数据结构·c++·算法·leetcode·面试
阿昭L4 小时前
堆结构与堆排序
数据结构·算法
.YM.Z14 小时前
【数据结构】:排序(一)
数据结构·算法·排序算法
sin_hielo17 小时前
leetcode 2435
数据结构·算法·leetcode
crescent_悦17 小时前
PTA L1-020 帅到没朋友 C++
数据结构·c++·算法
稚辉君.MCA_P8_Java20 小时前
Gemini永久会员 Java动态规划
java·数据结构·leetcode·排序算法·动态规划