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
| 42 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.63.15
©2016-2020

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
| 31 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
| 50 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
| 50 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
| 48 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
| 25 views
10,497 questions
113,691 answers
101,151 comments
3,700 users