题目
题目

FIT1008-FIT2085_S1_2025 Week 10 Workshop Quiz

判断题

Is Mergesort a stable sorting algorithm?

选项
A.True
B.False
查看解析

查看解析

标准答案
Please login to view
思路分析
When evaluating whether Mergesort is a stable sorting algorithm, we begin by recalling the definition of stability: a stable sort preserves the relative order of equal elements as they appeared in the input. Option 1: True. Merge sort is traditionally stable. The standard merge procedure combines two sorted sublists by repeatedly selecting the smaller (or equal) head element from the sublists and pla......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!