Trong thuật toán sắp xếp chọn, nếu thay “Tìm giá trị lớn nhất” bằng “Tìm giá trị nhỏ nhất” thì kết quả nhận được là dãy số có giá trị ra sao? Thuật toán sắp xếp chọn Lặp với i từ 1 đến n – 1: a) Tìm số lớn nhất trong dãy số ai, ai + 1, …, an gọi là am b) Đổi chỗ am cho ai Hết lặp
![]() | Phạm Minh Trí | Chat Online |
05/09/2024 13:19:39 (Tin học - Lớp 7) |
8 lượt xem
Trong thuật toán sắp xếp chọn, nếu thay “Tìm giá trị lớn nhất” bằng “Tìm giá trị nhỏ nhất” thì kết quả nhận được là dãy số có giá trị ra sao?
Thuật toán sắp xếp chọn Lặp với i từ 1 đến n – 1: a) Tìm số lớn nhất trong dãy số ai, ai + 1, …, an gọi là am b) Đổi chỗ am cho ai Hết lặp |
![](https://lazi.vn/uploads/icon/loading.gif)
Lựa chọn một trả lời để xem Đáp án chính xác Báo sai đáp án hoặc câu hỏi |
Số lượng đã trả lời:
A. Dãy số có giá trị giảm dần. 0 % | 0 phiếu |
B. Dãy số có giá trị tăng dần. 0 % | 0 phiếu |
C. Dãy số có giá trị không thay đổi. 0 % | 0 phiếu |
D. Dãy số có giá trị thay đổi. 0 % | 0 phiếu |
Tổng cộng: | 0 trả lời |
Bình luận (0)
Chưa có bình luận nào, bạn có thể gửi ý kiến bình luận tại đây:
Trắc nghiệm liên quan
- Khi dùng thuật toán sắp xếp chọn để sắp dãy theo thứ tự giảm dần, khi nào không cần thực hiện thao tác “Đổi chỗ am cho ai” mà kết quả sắp xếp vẫn đúng? (Tin học - Lớp 7)
- Có một bó que tính dài ngắn khác nhau, muốn sắp xếp các que tính thành dãy từ trái qua phải theo thứ tự ngắn dần em phải làm thao tác gì? (Tin học - Lớp 7)
- Sắp xếp kết quả kiểm tra môn Sinh học theo thứ tự từ thấp đến cao. Dãy đầu vào là gì? (Tin học - Lớp 7)
- Sắp xếp kết quả kiểm tra môn Tin học theo thứ tự từ cao xuống thấp. Tiêu chí sắp xếp là gì? (Tin học - Lớp 7)
- Bài toán sắp xếp cần xác định rõ những gì? (Tin học - Lớp 7)
Trắc nghiệm mới nhất
- Circle the letter A, B, C, or D to indicate the options that best complete the passage. Vietnam has various intriguing cultural norms that should be (29) ______ publicly and taboos that should be avoided secretly. Using chopsticks to eat usual dishes ... (Tiếng Anh - Lớp 12)
- Circle the letter A, B, C, or D to indicate the options that best complete the letter. Hi Andy, Remember how we used to dream of living in the big city? Well, it's been six months (23) ______ to Washington. I love the amazing things here - theme ... (Tiếng Anh - Lớp 12)
- a. Consequently, it could be more difficult for teens to concentrate on their studies or perform better at school. b. Social media offers such fascinating reels that watching them for a long time weakens teens' focus ability. c. Therefore, it is ... (Tiếng Anh - Lớp 12)
- Circle the letter A, B, C, or D to indicate the correct arrangement of the sentences to make a meaningful paragraph in each of the following questions. a. It allows people to stay in touch with friends and family and share life updates. b. Indeed, ... (Tiếng Anh - Lớp 12)
- Circle the letter A, B, C, or D to indicate the options that best complete the message. Hi Max, In Vietnam, each province has at least one specialty, and the locals are generally proud of their (18) ______. You should try some nem nướng (Vietnamese ... (Tiếng Anh - Lớp 12)
- The ______ growth of technology driven by globalization has transformed industries worldwide. (Tiếng Anh - Lớp 12)
- To show ______ when meeting the elderly, you should bow. (Tiếng Anh - Lớp 12)
- ______ people read physical newspapers and magazines nowadays than in earlier times. (Tiếng Anh - Lớp 12)
- Rick ______ to his favorite sports podcast for thirty minutes. (Tiếng Anh - Lớp 12)
- The city council got a group of volunteers ______ up the slums to improve living conditions. (Tiếng Anh - Lớp 12)