help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding repetitions of 8-tuples


From: Hans Lonsdale
Subject: Re: Finding repetitions of 8-tuples
Date: Sun, 1 Jan 2023 16:38:53 +0100 (CET)


> ----------------------------------------
> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]