3 like 0 dislike
假設現在要使用選擇排序法來排序 n 個數,則共會用到 n*(n-1)/ $1 次的比較以及 $2 *(n-1) 次的陣列存取。

 

參考書籍:旗標無痛學習教本
[Normal] Fill in the blank - asked in Introduction to Computer Programming I (C) by (20.9k points)
Available when: Unlimited - Due to: Unlimited
| 5 views
Get it on Google Play Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:172.69.62.4
©2016-2019

Related questions

3 like 0 dislike
0 answers
[Normal] True/False - asked Feb 11, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
Available when: Unlimited - Due to: Unlimited
| 5 views
2 like 0 dislike
0 answers
[Normal] True/False - asked Feb 11, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
Available when: Unlimited - Due to: Unlimited
| 5 views
3 like 0 dislike
0 answers
[Normal] Multichoice - asked Feb 6, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
Available when: Unlimited - Due to: Unlimited
| 3 views
3 like 0 dislike
0 answers
[Normal] Multichoice - asked Feb 5, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
Available when: Unlimited - Due to: Unlimited
| 3 views
3 like 0 dislike
0 answers
[Normal] Multichoice - asked Feb 5, 2017 in Introduction to Computer Programming I (C) by The Contributor (20.9k points)
Available when: Unlimited - Due to: Unlimited
| 4 views
8,201 questions
63,042 answers
35,691 comments
1,343 users