unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Nala Ginrut <nalaginrut@gmail.com>
To: "Kovacsics Róbert" <kovirobi@gmail.com>
Cc: Guile User <guile-user@gnu.org>
Subject: Re: Self balancing trees
Date: Wed, 23 Aug 2017 12:00:11 +0800	[thread overview]
Message-ID: <CAPjoZodj8SBWLNBdK67eJbLKCzTqnA8LCLzC6_XEsNSFzP6Btw@mail.gmail.com> (raw)
In-Reply-To: <CABPkNK=WUQmoMev8Gh8PEVUBV_ZzQfi=_WQO0TxV_UPYfNbo+w@mail.gmail.com>

Here's mine, but I haven't updated for a while, RB tree works, please don't
use it seriously, and hope it inspire you.

https://github.com/NalaGinrut/nashkel/blob/master/nashkel/rbtree.scm

2017年8月22日 下午5:34,"Kovacsics Róbert" <kovirobi@gmail.com>写道:

> Sorry Marko, I didn't hit reply all, so re-sending for the benefit of the
> list.
>
> I'd just like to point out
> https://wiki.rice.edu/confluence/download/attachments/2761212/Okasaki-
> Red-Black.pdf
> for the simplicity of it's Red-Black tree implementation. Granted, it
> uses Haskell, but you could implement it similarly simply as Guile has
> pattern-matching too with (ice-9 match). Also, it hasn't got a delete
> operation, that would be more messy.
>
>


      reply	other threads:[~2017-08-23  4:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-22  2:52 Self balancing trees Christopher Howard
2017-08-22  4:31 ` Marko Rauhamaa
2017-08-22  5:07   ` Christopher Howard
2017-08-22  5:16     ` Marko Rauhamaa
2017-08-22  9:33       ` Kovacsics Róbert
2017-08-23  4:00         ` Nala Ginrut [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAPjoZodj8SBWLNBdK67eJbLKCzTqnA8LCLzC6_XEsNSFzP6Btw@mail.gmail.com \
    --to=nalaginrut@gmail.com \
    --cc=guile-user@gnu.org \
    --cc=kovirobi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).