判断关于快速排序与归并排序时间复杂度、归并排序空间开销的描述是否正确
对 n个元素的数组进行排序,快速排序和归并排序的平均时间复杂度都为 <img src="https://img.julecn.com/tk/pla/fopnbhffbprxinzj.png" alt="" data-href="" style="">。但快速排序存在退化情况,使得时间复杂度升高至 <img src="https://img.julecn.com/tk/xnt/jqdhxvesleutzdui.png" alt="" data-href="" style="">;归并排序需要额外的空间开销。
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析