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

相关推荐
摇滚侠6 小时前
StreamAPI,取出list中的name属性,返回一个新list
数据结构·list
是苏浙9 小时前
零基础入门C语言之C语言实现数据结构之单链表经典算法
c语言·开发语言·数据结构·算法
橘颂TA9 小时前
【剑斩OFFER】算法的暴力美学——点名
数据结构·算法·leetcode·c/c++
迷途之人不知返10 小时前
数据结构之,栈与队列
数据结构
MOONICK12 小时前
数据结构——哈希表
数据结构·哈希算法·散列表
FMRbpm14 小时前
链表5--------删除
数据结构·c++·算法·链表·新手入门
努力学习的小全全15 小时前
【CCF-CSP】05-01数列分段
数据结构·算法·ccf-csp
遗憾是什么.16 小时前
数据结构 -- 栈
数据结构·算法·链表
liuhuapeng030417 小时前
GetMapping自动截取List<String>字符
数据结构·windows·list
仰泳的熊猫17 小时前
1013 Battle Over Cities
数据结构·c++·算法·pat考试