Article View: comp.lang.c
Article #88Re: AVL tree insertion - programming exercise
From: Janis Papanagnou
Date: Fri, 09 Oct 2026 15:54
Date: Fri, 09 Oct 2026 15:54
57 lines
3981 bytes
3981 bytes
On 2026-10-09 16:05, David Brown wrote: > On 09/10/2026 14:38, Dan Cross wrote: >> In article <11aaimc$n0f0$2@dont-email.me>, >> David Brown <david.brown@hesbynett.no> wrote: >>> On 09/10/2026 12:43, bart wrote: >>>> [snip] >>>> This 'MIX' language was something that astonished me even then. Not >>>> only >>>> was it assembly that would totally obscure whatever algorithm was being >>>> expressed, but it was a weird made-up assembly with unusual byte and >>>> word sizes. >>> >>> Indeed. When I first saw it, I was familiar with several 8-bit >>> assemblies (6502, Z80, 8085) and some 32-bit ARM assembly, and had read >>> books on the 68000 family and MIPS. MIX was, to me, absurd. To be >>> fair, the computer world was not nearly as consolidated in 1962, but I'm >>> sure it looked fairly odd even by the standards of the time. >> >> If one were coming from the world of early 1960s mainframes, it >> would perhaps be less astonishing. > > It would undoubtedly have been less astonishing in 1968 (when the first > book was published) than in 1991 (when I first saw it), but I would have > thought that even people familiar with 1960's mainframes would see it as > strange to use a limited and highly specific artificial assembly that > matched poorly with existing systems. I am sure people were already > familiar with the pain of converting code written in assembly for one > system into assembly for a very different system - the only advantage of > the MIX code was that it was equally useless to everyone, and favoured > no one! I have no recollection on MIX. (Never engaged with it.) Incidentally, our own folks had an own set of abstract machines and respective machine languages (M1, M2, M3). (I'm not sure who actually invented them; I associated G. Seegmüller with those.) But their purpose was to teach system programming, and to teach about the (back these days) typical CPU addressing facilities, and about their utility to support HLLs. I think it makes sense to learn these things, the concepts, not on any specific commercial assembly language but on an abstract machine. YMMV. Using some hypothetical assembly to learn programming complex algorithms might be useful for case studies, but I think it's otherwise not a good idea. Our teachers uphold all due respect but clearly suggested more sensible representations. To represent high-level algorithms a clear notation is sensible, ideally without any ballast; it need not even be an existing HLL. Janis > [...]
Technical Details
Message-ID:
<11ab2mu$cjm0$2@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<86ece2kppv.fsf@linuxsc.com> <11aa8vb$jk93$1@dont-email.me> <11aaggn$mu6q$1@dont-email.me> <11aaimc$n0f0$2@dont-email.me> <11aan7c$ki0$1@reader2.panix.com> <11aasbg$r60s$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com> Newsgroups: comp.lang.c Subject: Re: AVL tree insertion - programming exercise Date: Fri, 9 Oct 2026 17:54:06 +0200 Organization: A noiseless patient Spider Lines: 57 Message-ID: <11ab2mu$cjm0$2@dont-email.me> References: <86ece2kppv.fsf@linuxsc.com> <11aa8vb$jk93$1@dont-email.me> <11aaggn$mu6q$1@dont-email.me> <11aaimc$n0f0$2@dont-email.me> <11aan7c$ki0$1@reader2.panix.com> <11aasbg$r60s$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 09 Oct 2026 15:54:07 +0000 (UTC) Injection-Info: dont-email.me; logging-data="413376"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19EXNO41hsAb2pjPE8YSBhL"; posting-host="5df2e382f4c85fd5e765438f10ef664f" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:b5QZ83vO3luLH+luKd71v3xbtBI= sha256:M5SdI35oKd7pjoOBSgFzk6yp4XtTC9y1UrlClmTk1fs= sha1:7QDHxqJYRpgDYsNgFm+kLZmnWF4= sha256:E8H74IZFiYMmoXGdXjtdGpA8smk3DLBNMfm2NdaQZqk= Content-Language: en-US In-Reply-To: <11aasbg$r60s$1@dont-email.me>