comp.lang.ada
 help / color / mirror / Atom feed
From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Re: Recapping on “Bug Sort”.
Date: Sat, 23 Jun 2012 21:05:56 +0300
Date: 2012-06-23T21:05:56+03:00	[thread overview]
Message-ID: <a4mes4F70nU1@mid.individual.net> (raw)
In-Reply-To: <77963856-3a25-4477-9510-769df7a9b85c@googlegroups.com>

On 12-06-23 13:20 , Austin Obyrne wrote:
> On Saturday, June 23, 2012 8:54:52 AM UTC+1, Austin Obyrne wrote:
>> On Friday, June 22, 2012 9:45:53 PM UTC+1, Jeffrey Carter wrote:
>>> On 06/22/2012 12:55 PM, Austin Obyrne wrote:
>>>>
>>>> I have been told that my program resembles a known sort program called
>>>> �Counting Sort�.  I would hate to be guilty of plagiarism and I would like to
>>>> point out therefore that the salient thing about my �Parallel Sort� is that
>>>> my implementation is geared to capturing data during any unrelated program
>>>> run-time and assigning the data in such a way that the separate elements
>>>> index their own addresses in the sorting arrays.  A similarity with some
>>>> other existing paper algorithm is simply fortuitous.
>>>
>>> What you have presented is an implementation of counting sort, nothing more.
>>> There is nothing new or unique about your implementation.

Austin,

While I agree with Jeff that you have rediscovered Counting Sort, this 
does not mean that you are being accused of plagiarism. It is common for 
programmers to rediscover algorithms that are basically simple, but very 
good for some special cases -- and perhaps for just these reasons are 
not very well known.

I could imagine posing this sorting problem (sorting a dense set of 
numbers in a known, not too wide range) in a class on programming (not 
an advanced class, either) and would expect some of the students to use 
this method (i.e. Counting Sort) in their solutions.

> Update on performance.
>
> 42750 seven-digit positive integers were sorted in between 1 and 2 seconds.
>
> Waiting to hear regarding "Count Sort".

Since your method is an implementation of Counting Sort, you are 
actually measuring "Counting Sort", at least in one implementation.

-- 
Niklas Holsti
Tidorum Ltd
niklas holsti tidorum fi
       .      @       .



  parent reply	other threads:[~2012-06-23 18:05 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-22 19:55 Recapping on “Bug Sort” Austin Obyrne
2012-06-22 20:45 ` Jeffrey Carter
2012-06-23  6:50   ` Austin Obyrne
2012-06-23  7:54   ` Austin Obyrne
2012-06-23 10:20     ` Austin Obyrne
2012-06-23 13:08       ` Austin Obyrne
2012-06-23 14:21         ` Austin Obyrne
2012-06-23 14:57           ` Austin Obyrne
2012-06-23 15:59             ` Austin Obyrne
2012-06-23 16:07             ` Pascal Obry
2012-06-23 16:12               ` Austin Obyrne
2012-06-23 16:19               ` Austin Obyrne
2012-06-23 17:05               ` Austin Obyrne
2012-06-23 18:17           ` Niklas Holsti
2012-06-23 19:21             ` Austin Obyrne
2012-06-23 20:19               ` Ludovic Brenta
2012-06-23 18:05       ` Niklas Holsti [this message]
2012-06-23 19:07         ` Austin Obyrne
2012-06-23 19:40           ` Austin Obyrne
2012-06-23 20:00           ` Jeffrey Carter
2012-06-23 20:21             ` Austin Obyrne
2012-06-23 20:12           ` Niklas Holsti
2012-06-23 20:49             ` Austin Obyrne
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox