Article View: alt.privacy.anon-server
Article #307002Re: wordlist - same letters
From: elvis-85781
Date: Mon, 02 Dec 2019 00:16
Date: Mon, 02 Dec 2019 00:16
80 lines
5579 bytes
5579 bytes
>> On 2019-10-23, elvis-85650@notatla.org.uk <elvis-85650@notatla.org.uk> wrote:
>> > same letters - different order
>> >
>> > 102:earth
>> > 128:heart
>>
>> ONE DIFF lines 24/27: beach/bench
>> ONE DIFF lines 23/38: batch/botch
>> ONE DIFF lines 27/48: bench/bunch
>> ONE DIFF lines 23/55: batch/catch
>> ONE DIFF lines 32/70: block/clock
>> ONE DIFF lines 89/92: decay/delay
>> ONE DIFF lines 78/99: cream/dream
>> ONE DIFF lines 66/119: class/glass
>> ONE DIFF lines 119/121: glass/grass
>> ONE DIFF lines 97/132: donor/honor
>> ONE DIFF lines 133/135: horse/house
>> ONE DIFF lines 93/143: demon/lemon
>> ONE DIFF lines 48/150: bunch/lunch
>> ONE DIFF lines 131/154: honey/money
>> ONE DIFF lines 135/156: house/mouse
>> ONE DIFF lines 145/159: light/night
>> ONE DIFF lines 172/173: plane/plate
>> ONE DIFF lines 148/175: lower/power
>> ONE DIFF lines 166/176: paint/print
>> ONE DIFF lines 180/181: radio/ratio
>> ONE DIFF lines 90/183: defer/refer
>> ONE DIFF lines 145/187: light/right
>> ONE DIFF lines 174/189: pound/round
>> ONE DIFF lines 145/199: light/sight
>> ONE DIFF lines 196/204: shell/smell
>> ONE DIFF lines 203/204: small/smell
>> ONE DIFF lines 24/221: beach/teach
>> ONE DIFF lines 222/224: thank/think
>> ONE DIFF lines 145/227: light/tight
>> ONE DIFF lines 148/233: lower/tower
>> ONE DIFF lines 40/235: brain/train
>> ONE DIFF lines 163/241: onion/union
>> ONE DIFF lines 209/256: south/youth
>>
>
> Hi elvis,
>
> can you please tell me what program or scipt you used
> to find the ONE DIFFs?
==================
$ ./sort_letters.plx < WORDS
==================
#!/usr/bin/perl
use strict;
use warnings;
my $txt;
%::count = ();
%::blanks = ();
while (defined($txt = <>)) {
chomp($txt);
my @q = sort split(//, $txt);
my $ntxt = join('', @q);
if (defined( $::count{$ntxt} )) {
printf("SAME LETTERS lines %d/%d: %s/%s\n", $::count{$ntxt}, $., $ntxt, $txt);
} else {
$::count{$ntxt} = $.;
}
for(my $num = 0 ; $num < length $txt; $num++) {
my @dotty = split(//, $txt);
$dotty[$num] = '.';
my $blank = join('', @dotty);
if (defined( $::blanks{$blank})) {
printf("ONE DIFF lines %d/%d: %s/%s\n", $::blanks{$blank}[0], $., $::blanks{$blank}[1], $txt);
} else {
$::blanks{$blank} = [$., $txt];
}
}
}
==================
Technical Details
Message-ID:
<slrnqu8lvh.p9l.elvis-85781@notatla.org.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<slrnqr1fv0.5d9.elvis-85650@notatla.org.uk> <slrnqr1hpc.5r5.elvis-85650@notatla.org.uk> <20191201145826.00005705@300baud.de>Show Full Headers
Complete Article Headers
Message-ID: <slrnqu8lvh.p9l.elvis-85781@notatla.org.uk> Subject: Re: wordlist - same letters Date: Mon, 02 Dec 2019 00:16:49 GMT From: elvis-85781@notatla.org.uk References: <slrnqr1fv0.5d9.elvis-85650@notatla.org.uk> <slrnqr1hpc.5r5.elvis-85650@notatla.org.uk> <20191201145826.00005705@300baud.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: alt.privacy.anon-server X-Noarchive: yes X-No-Archive: yes User-Agent: slrn/1.0.3 (Linux) Lines: 80 X-Complaints-To: abuse@blocknews.net Nntp-Posting-Date: Mon, 02 Dec 2019 00:16:49 UTC Organization: blocknews - www.blocknews.net