🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c++
Article #1160

Re: “The end of software secrecy is almost upon

#1160
From: Thomas Koenig
Date: Sat, 05 Dec 2026 09:10
41 lines
3200 bytes
BCFD 36 <bcfd36@cruzio.com> schrieb:
> The RF guy (who was brilliant 
> BTW) who wrote the original program used a bubble sort for his sorting 
> algorithm. ANY SE knows this is a bad idea.

Not only them.

I assume that was before Numerical Recipes?  Its famous quote

# We will draw the line, however, at the inefficient N² algorithm,
# beloved of elementary computer science texts, called bubble
# sort. If you know what bubble sort is, wipe it from your mind;
# if you don't know, make a point of never finding out!



>They asked me to make some 
> mods and Oh, BTW, it is really slow. I made the mod, found said bubble 
> sort, switched in a quick sort (no libraries available at the time) and 
> improved the run times by 2 to 3 orders of magnitude depending on how 
> many pulses were collected.

Good.

>Then I found an algorithm that actually 
> combined the bubble sort with quick sort and got another 10% 
> improvement.

Bad.  As a fallback to quicksort, should use another algorithm,
for example insertion or selection sort.

>It had to do with bubble sorting partitions when the 
> partition got to a certain size.

See above.

Again, probably before "Numerical Recipes".
-- 
This USENET posting was made without artificial intelligence,
artificial impertinence, artificial arrogance, artificial stupidity,
artificial flavorings or artificial colorants.
Technical Details
Message-ID: <11f0kdq$2k2oj$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11amvre$15far$1@dont-email.me> <11b884b$p2o9$1@dont-email.me> <11b8d6i$39gd9$1@dont-email.me> <11b9qna$pqb8$1@dont-email.me> <11bakdb$o7f$1@panix2.panix.com> <11bau11$29ugh$1@dont-email.me> <11bb9sf$ac9u$1@dont-email.me> <11bd7tj$rh4f$1@dont-email.me> <20261022224829.00003145@yahoo.com> <11bf4fp$2esrr$1@dont-email.me> <20261023114238.000042ff@yahoo.com> <11bf8og$2f10p$1@dont-email.me> <11bg3md$1vo80$1@dont-email.me> <11evh50$2568g$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Thomas Koenig <tkoenig@netcologne.de>
Newsgroups: rec.arts.sf.written,comp.lang.fortran,comp.lang.c++,alt.comp.lang.rust,alt.folklore.computers
Subject: Re: “The end of software secrecy is almost upon
Date: Sat, 5 Dec 2026 09:10:18 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <11f0kdq$2k2oj$1@dont-email.me>
References: <11amvre$15far$1@dont-email.me> <11b884b$p2o9$1@dont-email.me>
 <11b8d6i$39gd9$1@dont-email.me> <11b9qna$pqb8$1@dont-email.me>
 <11bakdb$o7f$1@panix2.panix.com> <11bau11$29ugh$1@dont-email.me>
 <11bb9sf$ac9u$1@dont-email.me> <11bd7tj$rh4f$1@dont-email.me>
 <20261022224829.00003145@yahoo.com> <11bf4fp$2esrr$1@dont-email.me>
 <20261023114238.000042ff@yahoo.com> <11bf8og$2f10p$1@dont-email.me>
 <11bg3md$1vo80$1@dont-email.me> <11evh50$2568g$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 05 Dec 2026 09:10:19 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2755347"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19c/KJTye3LWSMTvo1u9GXyXnRcxhImAjY="; posting-host="8c293f01ea2ab6b989495387d5303ed4"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:S5W3C3cn63rs18WK78fg1VxxKpM= sha256:LZtdqKmCZxQs4ucfp832Nu9a6gj6rQXBpdqjzaUk88M=
	sha1:wzp0IgQdKcNTR1dDCvGrsrJT/VE= sha256:+XqPPKh1vg+hCVJjreE7xHjYtdGuEx4MceDZlGjaYVA=