From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hans Lonsdale Newsgroups: gmane.emacs.help Subject: Re: Finding repetitions of 8-tuples Date: Sun, 1 Jan 2023 16:38:53 +0100 (CET) Message-ID: <2050606223.764646.1672587533274@ichabod.co-bxl> References: <1399831366.706043.1672506045023@ichabod.co-bxl> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1039"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Ruijie Yu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 02 10:46:15 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pCHOZ-000AdX-44 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 02 Jan 2023 10:46:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pCHO3-0005Ax-4j; Mon, 02 Jan 2023 04:45:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pCHO1-0005AZ-Rk for help-gnu-emacs@gnu.org; Mon, 02 Jan 2023 04:45:41 -0500 Original-Received: from wilbur.contactoffice.com ([212.3.242.68]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pCHNy-0000LV-LF for help-gnu-emacs@gnu.org; Mon, 02 Jan 2023 04:45:41 -0500 Original-Received: from hologram (hologram.co-bxl [10.2.0.17]) by wilbur.contactoffice.com (Postfix) with ESMTP id 040D61950; Mon, 2 Jan 2023 10:45:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1672652731; s=20210208-e7xh; d=mailfence.com; i=hanslonsdale@mailfence.com; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding; l=910; bh=xzo1LhUiOc8NwQcpZC+mm2M/Qxb135FQtwXYLCX370k=; b=gyaA9ejLrqRBchJ/aLWOcvG73W0yw3fz0EPXsvd29VS+Gl8f+hbc0wnP/f2az708 KcHcWNHqHyjL4hccSIfJKpFtq+2W4QOznn63RQNw8FW0+jMBfelfT9PI6E02aaTcQGd K4NELlSsJqWH3FtV9tiizX/8HWd/uCsDhtZ5oux243mBXo2peEePt1HcQlZd9hiyRvA n4iJnnN2Ed+wMniLtKfqVH7IGJzL42DNodvz1gv/9OoVttBTlBytW0ypPgnGurAmf7w Omf90pC5T4dUZzO7ZDspdx6X23p+kH3/eLND9GmMMjrTxtx6CRA9lScsL9xWnE+9rf7 rPyzIO1otA== In-Reply-To: X-Mailer: ContactOffice Mail X-ContactOffice-Account: com:377787701 Received-SPF: pass client-ip=212.3.242.68; envelope-from=hanslonsdale@mailfence.com; helo=wilbur.contactoffice.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_12_24=1.049, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:142090 Archived-At: > ---------------------------------------- > From: Ruijie Yu via Users list for the GNU Emacs text editor > Sent: Sun Jan 01 16:16:35 CET 2023 > To: Hans Lonsdale > Cc: > Subject: Re: Finding repetitions of 8-tuples > > > > Hans Lonsdale 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