caml-list - the Caml user's mailing list
 help / Atom feed
From: Mario Pereira <mjp.pereira@fct.unl.pt>
To: Christophe Raffalli <christophe@raffalli.eu>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] O(n ln k) sorting for ocaml on github and a challenge
Date: Sat, 9 Oct 2021 09:58:12 +0100
Message-ID: <CAJ98AgmGGR-JaciOfMB=9wOt5im4qPg--EBrt5AJOvBg7b9Niw@mail.gmail.com> (raw)
In-Reply-To: <20211009040533.chu7kqqk27r5wcok@oulala>

[-- Attachment #1: Type: text/plain, Size: 281 bytes --]

Hi Christophe,

Your implementation reminds me very much of TimSort (for an OCaml
implementation, see for instance
https://github.com/LesBoloss-es/sorting/blob/master/src/list/timsort.ml).
This is also a stable algorithm.

Was TimSort an inspiration?

Cheers
--
Mário

[-- Attachment #2: Type: text/html, Size: 570 bytes --]

  reply index

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-09  4:05 Christophe Raffalli
2021-10-09  8:58 ` Mario Pereira [this message]
2021-10-09 19:59   ` Christophe Raffalli
2021-10-11 11:46     ` Niols
2021-10-11 21:27       ` Mario Pereira
2021-10-22  4:44 ` Kazuhiko Sakaguchi

Reply instructions:

You may reply publically 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

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

  git send-email \
    --in-reply-to='CAJ98AgmGGR-JaciOfMB=9wOt5im4qPg--EBrt5AJOvBg7b9Niw@mail.gmail.com' \
    --to=mjp.pereira@fct.unl.pt \
    --cc=caml-list@inria.fr \
    --cc=christophe@raffalli.eu \
    /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

caml-list - the Caml user's mailing list

Archives are clonable: git clone --mirror https://inbox.ocaml.org/caml-list

AGPL code for this site: git clone https://public-inbox.org/ public-inbox