Article View: comp.lang.c++
Article #1183Re: “The end of software secrecy is almost upon
From: BCFD 36
Date: Sat, 05 Dec 2026 22:01
Date: Sat, 05 Dec 2026 22:01
54 lines
3738 bytes
3738 bytes
On 12/5/26 01:10, Thomas Koenig wrote: > 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. This was in the late '90s or early '00s. I found the algorithm on line and then the actual C code, so I appropriated it, tested it, and decided it was time to move on before management decided for me. No matter what other algorithm I used, I wasn't going to gain that much more. > > See above. > > Again, probably before "Numerical Recipes". -- ---------------- Dave Scruggs Senior Software Engineer - Lockheed Martin, et. al (mostly Retired) Captain - Boulder Creek Fire (Retired) Board of Directors - Boulder Creek Fire Protection District (What was I thinking?)
Technical Details
Message-ID:
<11f21ki$3cg53$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<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> <11f0kdq$2k2oj$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-eu-txt.newsdeef.eu!feed-eu-ch.newsdeef.eu!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: BCFD 36 <bcfd36@cruzio.com> 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 14:01:54 -0800 Organization: A noiseless patient Spider Lines: 54 Message-ID: <11f21ki$3cg53$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> <11f0kdq$2k2oj$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sat, 05 Dec 2026 22:01:55 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3555491"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Fx/zVDRA3pdZFsy744O2T"; posting-host="c5c1af757a97da9f564c1c3632b20cb5" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:Mxc+Ndj++GHFc1lcVMirlyt3QWU= sha256:hIlUEsF/6MrTHJ6zBI61za6m81eXvGLGoMWtV32j2i0= sha1:ITC9Y6iGTxpnlyhSU3LKSybKYHQ= sha256:U98x16sOyaBVASZHatW5MH62sOlAeFEBhAAYF29WHek= Content-Language: en-US In-Reply-To: <11f0kdq$2k2oj$1@dont-email.me>