Câu ví dụ
- thêm câu ví dụ: 1 2
- A sorting algorithm is stable if whenever there are two records R and S with the same key, and R appears before S in the original list, then R will always appear before S in the sorted list.
Thuật toán là sắp xếp ổn định nếu bất cứ khi nào có hai bản ghi R và S có cùng khóa và R xuất hiện trước S trong danh sách gốc, thì R sẽ luôn xuất hiện trước S trong danh sách đầu ra đã được sắp xếp. - A sorting algorithm is stable if whenever there are two records R and S with the same key and with R appearing before S in the original list, R will appear before S in the sorted list.
Thuật toán là sắp xếp ổn định nếu bất cứ khi nào có hai bản ghi R và S có cùng khóa và R xuất hiện trước S trong danh sách gốc, thì R sẽ luôn xuất hiện trước S trong danh sách đầu ra đã được sắp xếp. - A sorting algorithm is stable if whenever there are two records R and S with the same key, and R appears before S in the original list, then R will always appear before S in the sorted list. (wikipedia.org)
Thuật toán là sắp xếp ổn định nếu bất cứ khi nào có hai bản ghi R và S có cùng khóa và R xuất hiện trước S trong danh sách gốc, thì R sẽ luôn xuất hiện trước S trong danh sách đầu ra đã được sắp xếp. - This sorting algorithm is an in-place comparison-based algorithm in which the list is divided into two parts, the sorted part at the left end and the unsorted part at the right end.
Giải thuật sắp xếp này là một giải thuật dựa trên việc so sánh in-place, trong đó danh sách được chia thành hai phần, phần được sắp xếp (sorted list) ở bên trái và phần chưa được sắp xếp (unsorted list) ở bên phải.