Article View: comp.lang.c
Article #115Re: AVL tree insertion - programming exercise
From: Bonita Montero
Date: Sat, 10 Oct 2026 17:40
Date: Sat, 10 Oct 2026 17:40
6 lines
1761 bytes
1761 bytes
AVL trees are cool. Nominally, a red-black tree is faster for insertions and deletions—and in C++, `std::map` is almost always based on one—but that is a theoretical advantage. In practice, because the search depth of an AVL tree is up to half that of a red-black tree, you touch fewer memory locations during a search, meaning less cache data needs to be reloaded. The same applies to insertion and deletion operations.
Technical Details
Message-ID:
<11adt9l$1ukcc$1@raubtier-asyl.eternal-september.org>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!raubtier-asyl.eternal-september.org!.POSTED!not-for-mailReferences:
<86ece2kppv.fsf@linuxsc.com>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!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail From: Bonita Montero <Bonita.Montero@gmail.com> Newsgroups: comp.lang.c Subject: Re: AVL tree insertion - programming exercise Date: Sat, 10 Oct 2026 19:40:04 +0200 Organization: A noiseless patient Spider Lines: 6 Message-ID: <11adt9l$1ukcc$1@raubtier-asyl.eternal-september.org> References: <86ece2kppv.fsf@linuxsc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sat, 10 Oct 2026 17:40:06 +0000 (UTC) Injection-Info: raubtier-asyl.eternal-september.org; logging-data="2052492"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/SWMLn6ZToP/HtE3Q33+i1zoNy5m95uVA="; posting-host="34292c032625708b0aa0953a22c5d122" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:GXMX5gjzM5BiLGtHm6BenLXIMw8= sha256:z2br0XuMJ+PqM8kGgr0D8peUt2hc47or6CXC7QT26DA= sha1:lDJj0+6jIp/Hj+HeFw7ygIYaHKY= sha256:S+zYtxfw0IiyRnO8vlnblhhOnNr4rPK/tO9hiX9TO50= Content-Language: de-DE In-Reply-To: <86ece2kppv.fsf@linuxsc.com>