tag:blogger.com,1999:blog-4335481982098341811.post8213118602267367564..comments2023-06-20T01:12:06.193-07:00Comments on Code n Learn: A Simple Counting Sortcodenlearnhttp://www.blogger.com/profile/17528344102141172436noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-4335481982098341811.post-69363355596285867282016-07-10T13:49:49.027-07:002016-07-10T13:49:49.027-07:00We cannot generalize counting sort to all sorting ...We cannot generalize counting sort to all sorting problems, However if your input dataset is from a finite set (i.e you know the range or number of distinct input elements) - yes it would be a perfect fitcodenlearnhttps://www.blogger.com/profile/17528344102141172436noreply@blogger.comtag:blogger.com,1999:blog-4335481982098341811.post-61540927257876033452016-07-10T09:52:38.188-07:002016-07-10T09:52:38.188-07:00How about if we increase the area size to include ...How about if we increase the area size to include {4,9,8,12,13,21,23,43,21,1, 23,45,24,6,5}, are we gonna create a counter to each value?<br /><br />Anonymoushttps://www.blogger.com/profile/06555889134390000834noreply@blogger.com