unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Hans Lonsdale <hanslonsdale@mailfence.com>
To: Ruijie Yu <ruijie@netyu.xyz>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Finding repetitions of 8-tuples
Date: Sun, 1 Jan 2023 16:38:53 +0100 (CET)	[thread overview]
Message-ID: <2050606223.764646.1672587533274@ichabod.co-bxl> (raw)
In-Reply-To: <sdvv8lq7084.fsf@fw.net.yu>



> ----------------------------------------
> From: Ruijie Yu via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
> Sent: Sun Jan 01 16:16:35 CET 2023
> To: Hans Lonsdale <hanslonsdale@mailfence.com>
> Cc: <help-gnu-emacs@gnu.org>
> Subject: Re: Finding repetitions of 8-tuples
> 
> 
> 
> Hans Lonsdale <hanslonsdale@mailfence.com> writes:
> 
> > I have 16 collections of 8 numbers
> >
> > (11 12 11 44 11 12 11 23)
> > (12 21 11 44 11 12 11 23)
> > and so on
> >
> > I want to find whether there are repetitions of each 8-tuple.
> > The order in which the numbers occur is not important.
> 
> I think your best bet is to sort each 8-tuple and compare the sorted
> lists afterwards.  Can't think of anything better at the moment.
> 
> Best,
> RY

Sorting is a very good idea for an suitable algorithm. 


-- 
Sent with https://mailfence.com  
Secure and private email



  reply	other threads:[~2023-01-01 15:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-31 17:00 Finding repetitions of 8-tuples Hans Lonsdale
2023-01-01 15:13 ` Arthur Miller
2023-01-01 16:00   ` Ruijie Yu via Users list for the GNU Emacs text editor
2023-01-01 16:39   ` Yuri Khan
2023-01-01 17:08     ` Hans Lonsdale
2023-01-01 15:16 ` Ruijie Yu via Users list for the GNU Emacs text editor
2023-01-01 15:38   ` Hans Lonsdale [this message]
2023-01-08  4:39 ` Emanuel Berg

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/emacs/

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

  git send-email \
    --in-reply-to=2050606223.764646.1672587533274@ichabod.co-bxl \
    --to=hanslonsdale@mailfence.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=ruijie@netyu.xyz \
    /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).