Thuật toán sắp xếp là gì?

Cấu trúc dữ liệu - Sắp xếp

Quiz
•
Others
•
1st Grade
•
Hard

cchr d_dorizx
FREE Resource
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Thuật toán sắp xếp chỉ dùng cho số nguyên
Thuật toán sắp xếp là một phương pháp để sắp xếp các phần tử trong một tập hợp theo một thứ tự nhất định.
Thuật toán sắp xếp là một cách để ngẫu nhiên xếp các phần tử
Thuật toán sắp xếp không liên quan đến việc sắp xếp
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Insertion sort hoạt động như thế nào?
Insertion sort chỉ so sánh phần tử hiện tại với phần tử liền kề
Insertion sort hoạt động bằng cách đảo ngược mảng ban đầu
Insertion sort hoạt động bằng cách lặp qua mảng từ trái sang phải, so sánh mỗi phần tử với các phần tử bên trái của nó, và chèn nó vào vị trí đúng trong phần đã được sắp xếp của mảng.
Insertion sort không thay đổi vị trí của các phần tử trong mảng
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Selection sort hoạt động như thế nào?
Selection sort picks elements randomly from the array
Selection sort repeatedly selects the smallest element from the unsorted portion of the array and swaps it with the element at the beginning of the unsorted portion.
Selection sort always swaps adjacent elements
Selection sort starts from the middle of the array
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Merge sort hoạt động như thế nào?
Merge sort works by selecting the largest element in the array and moving it to the end.
Merge sort sorts the input array by repeatedly swapping adjacent elements.
Merge sort randomly shuffles the input array before sorting it.
Merge sort works by recursively dividing the input array into two halves, sorting each half, and then merging the sorted halves back together.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Quick sort hoạt động như thế nào?
Quick sort hoạt động bằng cách chọn một phần tử làm pivot, chia mảng thành 2 phần dựa vào pivot đó, và tiếp tục sắp xếp đệ quy trên 2 phần đó.
Quick sort sắp xếp ngẫu nhiên các phần tử trong mảng
Quick sort chia mảng thành 3 phần dựa vào pivot
Quick sort chỉ hoạt động trên mảng đã sắp xếp
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Thuật toán nào hiệu quả hơn giữa Insertion sort và Selection sort?
Merge sort
Selection sort
Bubble sort
Quick sort
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Thuật toán nào hiệu quả hơn giữa Merge sort và Quick sort?
Quick sort
Bubble sort
Selection sort
Insertion sort
Create a free account and access millions of resources
Similar Resources on Quizizz
19 questions
Ôn tập tin học bài 18

Quiz
•
1st - 5th Grade
20 questions
Câu hỏi chương 5

Quiz
•
1st Grade
20 questions
lớp 3 cuối kì 2

Quiz
•
1st - 5th Grade
17 questions
tai biến truyền máu

Quiz
•
1st Grade
15 questions
Tương lai :3

Quiz
•
1st Grade
16 questions
Quick Sort Overview

Quiz
•
1st Grade
15 questions
Quiz 3

Quiz
•
1st Grade
16 questions
Ôn đấu trường toán lần 1

Quiz
•
1st Grade - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Others
10 questions
American Flag

Quiz
•
1st - 2nd Grade
10 questions
Identifying equations

Quiz
•
KG - University
25 questions
2.4A Add Subtract within 20 quickly: set 3

Quiz
•
1st - 3rd Grade
15 questions
Music 2016

Quiz
•
KG - 12th Grade
12 questions
Summer Trivia

Quiz
•
1st - 5th Grade
44 questions
logos

Quiz
•
KG - University
20 questions
Guess that Disney

Quiz
•
KG - 5th Grade
20 questions
Cartoon Characters!

Quiz
•
KG - 5th Grade