
Interchange Sort & Shaker Sort
Authored by Kiệt Gia
Computers
University
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
45 sec • 1 pt
Hai thuật toán vừa được trình bày là "............ và ............."
(Viết thường tất cả chữ cái)
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Ý tưởng của thuật toán Interchange sort
A. Đổi chỗ vị trí cho nhau. Lặp lại xử lý trên với phần tử kế tiếp trong danh sách.
B. Đổi chỗ hai phần tử đầu cuối. Lặp lại xử lý trên với phần tử kế tiếp trong danh sách
C. Đổi chỗ hai phần tử kề nha.Lặp lại xử lý trên với phần tử kế tiếp trong danh sách
D. Đổi chỗ hai phần tử trong cặp nghịch thế. Lặp lại xử lý trên với phần tử kế tiếp trong danh sách
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Đâu không phải là tên gọi của Shaker Sort
A.Bi-Directional Sort
B.Shuttle Sort
C.Ripple Sort
D.Interchange Sort
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Shaker Sort được đánh giá như thế nào
A. Thuật toán không nhận diện được mảng đã sắp xếp
B.Thuật toán nhận diện được mảng đã sắp xếp
C. Độ phức tạp cho trường hợp tốt nhất là O(n)
d. Cả B và C đều đúng
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Cho dãy số sau: 6 1 3 0 5 7. Áp dụng phương pháp Interchange Sort, sau bao nhiều lần thực thì dãy số đã cho được sắp xếp tuần tự tăng dần
A.4
B.5
C.6
D.7
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Giả sử cần sắp xếp mảng M có N phần tử sau theo phương pháp Shaker Sort {6 1 3 0 5 7}
Vòng lặp được thực hiện _ lần thì mảng M đã cho được sắp xếp tuần tự tăng dần
A.1
B.2
C.3
D.4
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Chọn đáp án đúng về hàm Swap
A. void Swap(int &X, int &Y) {
int Temp = X;
X = Y;
Y = Temp;
return; }
B. void Swap(float X, float Y) {
int Temp = X;
X = Y;
Y = Temp;
return; }
C. void Swap(int *X, int *Y) {
int Temp = X;
X = Y;
Y = Temp;
return; }
D. void Swap(int X, int Y) {
int Temp = X;
X = Y;
Y = Temp;
return; }
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
5 questions
Quiz 5
Quiz
•
University
13 questions
Vetores C# Quiz
Quiz
•
University
15 questions
Câu hỏi về lập trình Python
Quiz
•
10th Grade - University
10 questions
Kiến thức C++ cơ bản - Test1
Quiz
•
12th Grade - University
12 questions
CPP Mid-Coding
Quiz
•
University
15 questions
Burn up
Quiz
•
University
9 questions
Métodos de Ordenamiento
Quiz
•
University
5 questions
Array in Java
Quiz
•
University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
5 questions
What is Presidents' Day?
Interactive video
•
10th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
20 questions
Mardi Gras History
Quiz
•
6th Grade - University
10 questions
The Roaring 20's Crash Course US History
Interactive video
•
11th Grade - University
17 questions
Review9_TEACHER
Quiz
•
University