出典:Wiktionary
出典:Wikipedia
出典:『Wikipedia』 (2011/07/11 08:47 UTC 版)
In computer science, counting sort is an algorithm for sorting a collection of objects according to keys that are small integers; that is, it is an integer sorting algorithm. It operates by counting the number of objects that have each different key value, and using arithmetic on those counts to determine the positions of each key value in the output sequence. Its running time is linear in the number of items and the maximum key value, so it is only suitable for use directly in situations where the keys are not significantly larger than the number of items. However, it is often used as a subroutine in another sorting algorithm, radix sort, that can handle larger keys more efficiently.
| ・counting sort | |
| ・BUdR | |
| ・pre-packaged | |
| ・jook | |
| ・claimer | |
| ・tollerable | |
| ・domiseda | |
| ・Calidris | |
| ・Ude | |
| ・Blood groups |