Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Support bacteria -- it's the only culture some people have!


devel / comp.lang.awk / Re: Unique Characters related: Isogram Coding Puzzle

SubjectAuthor
* Unique Characters related: Isogram Coding Puzzleyeti
`* Re: Unique Characters related: Isogram Coding PuzzleJanis Papanagnou
 +- Re: Unique Characters related: Isogram Coding PuzzleJanis Papanagnou
 `* Re: Unique Characters related: Isogram Coding PuzzleBen Bacarisse
  +* Re: Unique Characters related: Isogram Coding PuzzleJanis Papanagnou
  |`* Re: Unique Characters related: Isogram Coding Puzzleyeti
  | `* Re: Unique Characters related: Isogram Coding PuzzleJanis Papanagnou
  |  `* Re: Unique Characters related: Isogram Coding Puzzleyeti
  |   `* Re: Unique Characters related: Isogram Coding PuzzleJanis Papanagnou
  |    +- Re: Unique Characters related: Isogram Coding Puzzleyeti
  |    `- Re: Unique Characters related: Isogram Coding PuzzleJanis Papanagnou
  `* Re: Unique Characters related: Isogram Coding PuzzleJanis Papanagnou
   `- Re: Unique Characters related: Isogram Coding PuzzleMike Sanders

1
Unique Characters related: Isogram Coding Puzzle

<87fs2u1ikb.fsf@tilde.institute>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1595&group=comp.lang.awk#1595

  copy link   Newsgroups: comp.lang.awk
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: yeti@tilde.institute (yeti)
Newsgroups: comp.lang.awk
Subject: Unique Characters related: Isogram Coding Puzzle
Date: Sun, 01 Oct 2023 15:14:12 +0000
Organization: Democratic Order of Pirates International (DOPI)
Lines: 9
Message-ID: <87fs2u1ikb.fsf@tilde.institute>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="d5d0a25f0e94c188036849c1957cc145";
logging-data="1707736"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/f3t5CciiNB5Pr2kwXz3yt"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:ZbzuBzCgRG+FWFey5HzX3WO27qI=
sha1:BERP8ggRuKEo5UkkVXb6A+1j9Ig=
X-Face: ]_G&_b@O$RF(L7zT;DQ3-VU}c"F/_Mgy(4^P1,Tt^#0Cq+\qM&-h\&Z.3UuiwV")n~b;26e
5-s.cF/5tMdha-:]4eBHC9vBXnz4_aNe@d4oijVyix?>pC=tzuQhoD2A8P02+\xO4gNfRBE
`B<kE3T-Gps_d0_6`+0W3E9{D
 by: yeti - Sun, 1 Oct 2023 15:14 UTC

WEEKEND PROGRAMMING CHALLENGE ISSUE #4
https://olimex.wordpress.com/2013/04/12/weekend-programming-challenge-issue-4/

That was a nice and fun one. \o/

Try it.

--
R || 0 ... Resistance is futile.

Re: Unique Characters related: Isogram Coding Puzzle

<ufcl9b$2gaga$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1596&group=comp.lang.awk#1596

  copy link   Newsgroups: comp.lang.awk
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.awk
Subject: Re: Unique Characters related: Isogram Coding Puzzle
Date: Sun, 1 Oct 2023 22:36:58 +0200
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <ufcl9b$2gaga$1@dont-email.me>
References: <87fs2u1ikb.fsf@tilde.institute>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 1 Oct 2023 20:36:59 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a9ac867b0065c5cdb8e4207ad2edf2b0";
logging-data="2632202"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18tu0TTK03QwXF4qYQA5zrm"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:FKjEXP7uAMLTyzVZ/SnOSWWssuU=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <87fs2u1ikb.fsf@tilde.institute>
 by: Janis Papanagnou - Sun, 1 Oct 2023 20:36 UTC

On 01.10.2023 17:14, yeti wrote:
> WEEKEND PROGRAMMING CHALLENGE ISSUE #4
> https://olimex.wordpress.com/2013/04/12/weekend-programming-challenge-issue-4/

Under the link you find:

"Isogram words are these with all letters different (no letters
duplicated). For instance “Hydropneumatics” is Isogram word.
Your challenge this weekend is to make program which scans text
and displays the longest Isogram word found in the scanned text."

And an (obviously broken) data link to alice_in_wonderland.html

>
> That was a nice and fun one. \o/
>
> Try it.

The point is that such types of tasks can be simply solved by
Unix commands. E.g. the following code

grep -Ev '.*(.).*\1.*' /usr/share/dict/american-english |
awk '{print length($0),$0}' | sort -n | tail

produces - sensible folks DO NOT READ FURTHER (strong language) !!!

13 clergywoman's
13 demographic's
13 documentary's
13 expurgation's
13 motherfucking
13 thunderclap's
13 tragicomedy's
13 valedictory's
14 ambidextrously
14 lexicography's

and so I'd throw in "ambidextrously" as a possible good word.

As homework do that in GNU Awk - I think it is not difficult. :-)

Janis

Re: Unique Characters related: Isogram Coding Puzzle

<ufcm3r$2gfvu$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1597&group=comp.lang.awk#1597

  copy link   Newsgroups: comp.lang.awk
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.awk
Subject: Re: Unique Characters related: Isogram Coding Puzzle
Date: Sun, 1 Oct 2023 22:51:06 +0200
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <ufcm3r$2gfvu$1@dont-email.me>
References: <87fs2u1ikb.fsf@tilde.institute> <ufcl9b$2gaga$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 1 Oct 2023 20:51:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="365d04b1a935ceae4416abed6f2cd86e";
logging-data="2637822"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX190b7ZoRHy8xbR3nAfYsa8O"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:5S301+Pi3NxqURpnT5sOfI/JJgw=
In-Reply-To: <ufcl9b$2gaga$1@dont-email.me>
 by: Janis Papanagnou - Sun, 1 Oct 2023 20:51 UTC

On 01.10.2023 22:36, Janis Papanagnou wrote:
> On 01.10.2023 17:14, yeti wrote:
>> WEEKEND PROGRAMMING CHALLENGE ISSUE #4
>
> grep -Ev '.*(.).*\1.*' /usr/share/dict/american-english |
> awk '{print length($0),$0}' | sort -n | tail

grep -Ev '(.).*\1'

is of course a sufficient grep pattern.

Janis

Re: Unique Characters related: Isogram Coding Puzzle

<87wmw6aun8.fsf@bsb.me.uk>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1598&group=comp.lang.awk#1598

  copy link   Newsgroups: comp.lang.awk
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ben.usenet@bsb.me.uk (Ben Bacarisse)
Newsgroups: comp.lang.awk
Subject: Re: Unique Characters related: Isogram Coding Puzzle
Date: Sun, 01 Oct 2023 22:40:43 +0100
Organization: A noiseless patient Spider
Lines: 61
Message-ID: <87wmw6aun8.fsf@bsb.me.uk>
References: <87fs2u1ikb.fsf@tilde.institute> <ufcl9b$2gaga$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="c2f22c1fb3b550915037b7b8f30f30b7";
logging-data="2656346"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/GFlz1Oxzb0nBu0GUNObbkw4aAKjBz4qg="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock: sha1:p7xE45LtR2qpb2rWSwRh7naLRlc=
sha1:tXTrpC5AhRKM8ao7MqmXjWIOLN4=
X-BSB-Auth: 1.a3b8112e9992bc1954b6.20231001224043BST.87wmw6aun8.fsf@bsb.me.uk
 by: Ben Bacarisse - Sun, 1 Oct 2023 21:40 UTC

Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:

> On 01.10.2023 17:14, yeti wrote:
>> WEEKEND PROGRAMMING CHALLENGE ISSUE #4
>> https://olimex.wordpress.com/2013/04/12/weekend-programming-challenge-issue-4/
>
> Under the link you find:
>
> "Isogram words are these with all letters different (no letters
> duplicated). For instance “Hydropneumatics” is Isogram word.
> Your challenge this weekend is to make program which scans text
> and displays the longest Isogram word found in the scanned text."
>
> And an (obviously broken) data link to alice_in_wonderland.html
>
>>
>> That was a nice and fun one. \o/
>>
>> Try it.
>
> The point is that such types of tasks can be simply solved by
> Unix commands. E.g. the following code
>
> grep -Ev '.*(.).*\1.*' /usr/share/dict/american-english |

That's a neat trick! The initial and final .* are, however, redundant
and removing them makes the search noticeably faster (though it hardy
matters).

> awk '{print length($0),$0}' | sort -n | tail

I generally use 'sort -rn | head' for this sort of thing, but that's
just a preference for the output order.

Comments on the exercise suggest that case should be ignored so maybe a
'tr A-Z a-z' in the pipe is needed. Personally, I'd also exclude
apostrophes:

</usr/share/dict/american-english tr A-Z a-z | \
grep -Ev "(.).*\1|'" | awk '{print length($0),$0}' | sort -rn | head

> As homework do that in GNU Awk - I think it is not difficult. :-)

GNU AWK does not permit numbered back references in REs so it's going to
be more fiddly, though probably faster. Something like:

function is_isogram(s, letters, unique, i) {
split(tolower(s), letters, //)
for (i in letters) unique[letters[i]] = 1
return length(letters) == length(unique)
}

!/'/ && length($0) > max && is_isogram($0) {
max = length($0)
max_isogram = $0
}

END { print max_isogram }

--
Ben.

Re: Unique Characters related: Isogram Coding Puzzle

<ufcpr0$2h73c$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1599&group=comp.lang.awk#1599

  copy link   Newsgroups: comp.lang.awk
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.awk
Subject: Re: Unique Characters related: Isogram Coding Puzzle
Date: Sun, 1 Oct 2023 23:54:39 +0200
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <ufcpr0$2h73c$1@dont-email.me>
References: <87fs2u1ikb.fsf@tilde.institute> <ufcl9b$2gaga$1@dont-email.me>
<87wmw6aun8.fsf@bsb.me.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 1 Oct 2023 21:54:40 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="2be48219745aaa63cef7b5b0668ccdc2";
logging-data="2661484"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18bMVAPTmgAtu6PcgfjB6cU"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:Tl6L98FvPxyDhc1tWTV9R4DC0YE=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <87wmw6aun8.fsf@bsb.me.uk>
 by: Janis Papanagnou - Sun, 1 Oct 2023 21:54 UTC

On 01.10.2023 23:40, Ben Bacarisse wrote:
> Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
>>
>> The point is that such types of tasks can be simply solved by
>> Unix commands. E.g. the following code
>>
>> grep -Ev '.*(.).*\1.*' /usr/share/dict/american-english |
>
> That's a neat trick! The initial and final .* are, however, redundant
> and removing them makes the search noticeably faster (though it hardy
> matters).

Yes, I posted a follow-up where I already noted that.

>
>> awk '{print length($0),$0}' | sort -n | tail
>
> I generally use 'sort -rn | head' for this sort of thing, but that's
> just a preference for the output order.

Yes.

>
> Comments on the exercise suggest that case should be ignored so maybe a
> 'tr A-Z a-z' in the pipe is needed.

Partly solved simply by a 'grep -Evi', but only for the first part.
So, yes, you're right

> Personally, I'd also exclude apostrophes:

Indeed. (I've just taken a Linux standard dictionary as test data,
since the proposed text was unavailable. For a more complex text
there's certainly a lot more cleanup to be done beforehand.)

> [snip]

Janis

Re: Unique Characters related: Isogram Coding Puzzle

<ufcqat$2hcpp$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1600&group=comp.lang.awk#1600

  copy link   Newsgroups: comp.lang.awk
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.awk
Subject: Re: Unique Characters related: Isogram Coding Puzzle
Date: Mon, 2 Oct 2023 00:03:08 +0200
Organization: A noiseless patient Spider
Lines: 55
Message-ID: <ufcqat$2hcpp$1@dont-email.me>
References: <87fs2u1ikb.fsf@tilde.institute> <ufcl9b$2gaga$1@dont-email.me>
<87wmw6aun8.fsf@bsb.me.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 1 Oct 2023 22:03:09 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a539c25475f2e4041bb6e98bcc704af5";
logging-data="2667321"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18/FCKN50YgnJC+M7l3ZpOM"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:Fete5YlpFTcMadScRTejQsdJ15s=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <87wmw6aun8.fsf@bsb.me.uk>
 by: Janis Papanagnou - Sun, 1 Oct 2023 22:03 UTC

On 01.10.2023 23:40, Ben Bacarisse wrote:
> Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
>> As homework do that in GNU Awk - I think it is not difficult. :-)
>
> GNU AWK does not permit numbered back references in REs so it's going to
> be more fiddly, though probably faster.

Here I was not so much focused on the back-reference but on the
code that had already been posted in that other thread and that
could simply be used, e.g. like

# already existing function

function uniqueChars (t, s, n, i, c, o, seen)
{ delete seen
n = split (t, s, "")
for (i=1; i<=n; i++)
if (!seen[c = s[i]]++)
o = o c

return o
}

# new code below

$0 == uniqueChars($0) && length($0) > maxlen {
maxlen = length($0)
word = $0
}

END { print maxlen, word }

Of course there are also other ways to implement the function,
like yours...

> Something like:
>
> function is_isogram(s, letters, unique, i) {
> split(tolower(s), letters, //)
> for (i in letters) unique[letters[i]] = 1
> return length(letters) == length(unique)
> }
>
> !/'/ && length($0) > max && is_isogram($0) {
> max = length($0)
> max_isogram = $0
> }
>
> END { print max_isogram }
>

Janis

Re: Unique Characters related: Isogram Coding Puzzle

<87y1glzx9f.fsf@tilde.institute>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1601&group=comp.lang.awk#1601

  copy link   Newsgroups: comp.lang.awk
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: yeti@tilde.institute (yeti)
Newsgroups: comp.lang.awk
Subject: Re: Unique Characters related: Isogram Coding Puzzle
Date: Mon, 02 Oct 2023 00:25:00 +0000
Organization: Democratic Order of Pirates International (DOPI)
Lines: 10
Message-ID: <87y1glzx9f.fsf@tilde.institute>
References: <87fs2u1ikb.fsf@tilde.institute> <ufcl9b$2gaga$1@dont-email.me>
<87wmw6aun8.fsf@bsb.me.uk> <ufcpr0$2h73c$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="c5edd8a76de1aeb0f2d2ff240bf040fd";
logging-data="2710888"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19gKUvdSdtxaXnHrgTniRD8"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:6WNXNGjKkYRkukOVhrpy4VroppE=
sha1:1BMuKEDUXvl4SDph4r1qUhw4osg=
X-Face: ]_G&_b@O$RF(L7zT;DQ3-VU}c"F/_Mgy(4^P1,Tt^#0Cq+\qM&-h\&Z.3UuiwV")n~b;26e
5-s.cF/5tMdha-:]4eBHC9vBXnz4_aNe@d4oijVyix?>pC=tzuQhoD2A8P02+\xO4gNfRBE
`B<kE3T-Gps_d0_6`+0W3E9{D
 by: yeti - Mon, 2 Oct 2023 00:25 UTC

Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:

> Indeed. (I've just taken a Linux standard dictionary as test data,
> since the proposed text was unavailable. For a more complex text
> there's certainly a lot more cleanup to be done beforehand.)

<https://www.gutenberg.org/cache/epub/11/pg11.txt>

--
This stealth signature intentionally left blank.

Re: Unique Characters related: Isogram Coding Puzzle

<ufdmcn$2q6ek$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1603&group=comp.lang.awk#1603

  copy link   Newsgroups: comp.lang.awk
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: porkchop@invalid.foo (Mike Sanders)
Newsgroups: comp.lang.awk
Subject: Re: Unique Characters related: Isogram Coding Puzzle
Date: Mon, 2 Oct 2023 06:01:59 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Sender: Mike Sanders <busybox@sdf.org>
Message-ID: <ufdmcn$2q6ek$1@dont-email.me>
References: <87fs2u1ikb.fsf@tilde.institute> <ufcl9b$2gaga$1@dont-email.me> <87wmw6aun8.fsf@bsb.me.uk> <ufcqat$2hcpp$1@dont-email.me>
Injection-Date: Mon, 2 Oct 2023 06:01:59 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b80093a998c08ec5e7b71710a7b0258d";
logging-data="2955732"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18v4nj4Dnv212UCRSPPukZU"
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (NetBSD/9.3 (amd64))
Cancel-Lock: sha1:pYAnvoX56Gmi/FnHpEgovWx0lZA=
 by: Mike Sanders - Mon, 2 Oct 2023 06:01 UTC

Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:

> # new code below
>
> $0 == uniqueChars($0) && length($0) > maxlen {
> maxlen = length($0)
> word = $0
> }
>
> END { print maxlen, word }

Now that's really nice. I like the thinking here.

--
:wq
Mike Sanders

Re: Unique Characters related: Isogram Coding Puzzle

<ufduma$2rqlh$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1606&group=comp.lang.awk#1606

  copy link   Newsgroups: comp.lang.awk
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.awk
Subject: Re: Unique Characters related: Isogram Coding Puzzle
Date: Mon, 2 Oct 2023 10:23:37 +0200
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <ufduma$2rqlh$1@dont-email.me>
References: <87fs2u1ikb.fsf@tilde.institute> <ufcl9b$2gaga$1@dont-email.me>
<87wmw6aun8.fsf@bsb.me.uk> <ufcpr0$2h73c$1@dont-email.me>
<87y1glzx9f.fsf@tilde.institute>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 2 Oct 2023 08:23:38 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b2921f6e67fc17454a8a1b7cb11d0a32";
logging-data="3009201"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18d52oIpmQh9Ckg2a3yOZ+C"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:wAOUTvWGK9YI+jJ5CSknC/2OBUM=
In-Reply-To: <87y1glzx9f.fsf@tilde.institute>
 by: Janis Papanagnou - Mon, 2 Oct 2023 08:23 UTC

On 02.10.2023 02:25, yeti wrote:
> Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes:
>
>> Indeed. (I've just taken a Linux standard dictionary as test data,
>> since the proposed text was unavailable. For a more complex text
>> there's certainly a lot more cleanup to be done beforehand.)
>
> <https://www.gutenberg.org/cache/epub/11/pg11.txt>

In this text I could only find seven isogram words of max.
length 10 (complained, croqueting, curtseying, educations,
flamingoes, flamingoes, scrambling). - Is that expected?

Janis

Re: Unique Characters related: Isogram Coding Puzzle

<87r0mdyxdr.fsf@tilde.institute>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1607&group=comp.lang.awk#1607

  copy link   Newsgroups: comp.lang.awk
Path: i2pn2.org!i2pn.org!news.hispagatos.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: yeti@tilde.institute (yeti)
Newsgroups: comp.lang.awk
Subject: Re: Unique Characters related: Isogram Coding Puzzle
Date: Mon, 02 Oct 2023 13:20:00 +0000
Organization: Democratic Order of Pirates International (DOPI)
Lines: 7
Message-ID: <87r0mdyxdr.fsf@tilde.institute>
References: <87fs2u1ikb.fsf@tilde.institute> <ufcl9b$2gaga$1@dont-email.me>
<87wmw6aun8.fsf@bsb.me.uk> <ufcpr0$2h73c$1@dont-email.me>
<87y1glzx9f.fsf@tilde.institute> <ufduma$2rqlh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: dont-email.me; posting-host="c5edd8a76de1aeb0f2d2ff240bf040fd";
logging-data="3120854"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18WJEQc+XGZXhqBWDdaI7kM"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:X2ykS9xVmcygEY52RymJyIwJweg=
sha1:F0eXjPSXUi84QRZkEL3gcVJziGY=
X-Face: ]_G&_b@O$RF(L7zT;DQ3-VU}c"F/_Mgy(4^P1,Tt^#0Cq+\qM&-h\&Z.3UuiwV")n~b;26e
5-s.cF/5tMdha-:]4eBHC9vBXnz4_aNe@d4oijVyix?>pC=tzuQhoD2A8P02+\xO4gNfRBE
`B<kE3T-Gps_d0_6`+0W3E9{D
 by: yeti - Mon, 2 Oct 2023 13:20 UTC

Weekend Programming Challenge ISSUE #4 – Solutions
<https://olimex.wordpress.com/2013/04/15/weekend-programming-challenge-issue-4-solutions/>

.... confirms ‘curtseying’ as solution.

--
Fake signature.

Re: Unique Characters related: Isogram Coding Puzzle

<ufegs2$2vcau$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1608&group=comp.lang.awk#1608

  copy link   Newsgroups: comp.lang.awk
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.awk
Subject: Re: Unique Characters related: Isogram Coding Puzzle
Date: Mon, 2 Oct 2023 15:33:53 +0200
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <ufegs2$2vcau$1@dont-email.me>
References: <87fs2u1ikb.fsf@tilde.institute> <ufcl9b$2gaga$1@dont-email.me>
<87wmw6aun8.fsf@bsb.me.uk> <ufcpr0$2h73c$1@dont-email.me>
<87y1glzx9f.fsf@tilde.institute> <ufduma$2rqlh$1@dont-email.me>
<87r0mdyxdr.fsf@tilde.institute>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 2 Oct 2023 13:33:54 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="5ea5cc6f44d41f8e21bc681ec9fcea2a";
logging-data="3125598"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1885KrPg0945ZoqMsdvq53g"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:HJYNeYYq6dyrF9hbQHBcBDBB8CI=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <87r0mdyxdr.fsf@tilde.institute>
 by: Janis Papanagnou - Mon, 2 Oct 2023 13:33 UTC

On 02.10.2023 15:20, yeti wrote:
> Weekend Programming Challenge ISSUE #4 – Solutions
> <https://olimex.wordpress.com/2013/04/15/weekend-programming-challenge-issue-4-solutions/>

....says "This Weekend Programming Challenge have record submissions,
either the problem was very easy [...]" - I suppose it was.

....and: "I count total 30 solutions, some of them very elegant, some of
them very short [...]" - But where can we find the code to all these
solutions contributed? (I can't see anything on that page.)

....specifically: "I still bang my head to understand what this one line
AWK shell script solution does" - Certainly interesting for c.l.awk

Janis

Re: Unique Characters related: Isogram Coding Puzzle

<87il7pyvka.fsf@tilde.institute>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1609&group=comp.lang.awk#1609

  copy link   Newsgroups: comp.lang.awk
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: yeti@tilde.institute (yeti)
Newsgroups: comp.lang.awk
Subject: Re: Unique Characters related: Isogram Coding Puzzle
Date: Mon, 02 Oct 2023 13:59:17 +0000
Organization: Democratic Order of Pirates International (DOPI)
Lines: 6
Message-ID: <87il7pyvka.fsf@tilde.institute>
References: <87fs2u1ikb.fsf@tilde.institute> <ufcl9b$2gaga$1@dont-email.me>
<87wmw6aun8.fsf@bsb.me.uk> <ufcpr0$2h73c$1@dont-email.me>
<87y1glzx9f.fsf@tilde.institute> <ufduma$2rqlh$1@dont-email.me>
<87r0mdyxdr.fsf@tilde.institute> <ufegs2$2vcau$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="c5edd8a76de1aeb0f2d2ff240bf040fd";
logging-data="3132634"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+QIq79Upsel1esTF01VnKa"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:h8GF8dZEmnY4WQ5qOre/o6a6Fv8=
sha1:ml8q3s/XII52p0FIYJNbIdhk5lA=
X-Face: ]_G&_b@O$RF(L7zT;DQ3-VU}c"F/_Mgy(4^P1,Tt^#0Cq+\qM&-h\&Z.3UuiwV")n~b;26e
5-s.cF/5tMdha-:]4eBHC9vBXnz4_aNe@d4oijVyix?>pC=tzuQhoD2A8P02+\xO4gNfRBE
`B<kE3T-Gps_d0_6`+0W3E9{D
 by: yeti - Mon, 2 Oct 2023 13:59 UTC

<https://github.com/OLIMEX/WPC/tree/master/ISSUE-4/SOLUTION-24>

--
Recursive signature
|--
|Recursive signature

Re: Unique Characters related: Isogram Coding Puzzle

<ufercl$31a80$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1610&group=comp.lang.awk#1610

  copy link   Newsgroups: comp.lang.awk
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.lang.awk
Subject: Re: Unique Characters related: Isogram Coding Puzzle
Date: Mon, 2 Oct 2023 18:33:24 +0200
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <ufercl$31a80$1@dont-email.me>
References: <87fs2u1ikb.fsf@tilde.institute> <ufcl9b$2gaga$1@dont-email.me>
<87wmw6aun8.fsf@bsb.me.uk> <ufcpr0$2h73c$1@dont-email.me>
<87y1glzx9f.fsf@tilde.institute> <ufduma$2rqlh$1@dont-email.me>
<87r0mdyxdr.fsf@tilde.institute> <ufegs2$2vcau$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 2 Oct 2023 16:33:25 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="51cde8d5cc25f9cc11ff84da65d32be3";
logging-data="3188992"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/LoO7mF8yJS38N2qesVgHC"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:hUHrTDM/+GH7wXqPMtjR4cd+kaA=
In-Reply-To: <ufegs2$2vcau$1@dont-email.me>
X-Enigmail-Draft-Status: N1110
 by: Janis Papanagnou - Mon, 2 Oct 2023 16:33 UTC

On 02.10.2023 15:33, Janis Papanagnou wrote:
>
> ...specifically: "I still bang my head to understand what this one line
> AWK shell script solution does" - Certainly interesting for c.l.awk

https://github.com/OLIMEX/WPC/tree/master/ISSUE-4/SOLUTION-24/readme.txt

awk 'BEGIN { RS="[^A-Za-z]" } $0 { word=tolower($0) ; if(word in
WordSeen) next ; WordSeen[word]=1 ; split(word,Letters,"") ; delete
CharSeen ; for(char in Letters) if(++CharSeen[Letters[char]]>1) next ;
len=length(word) ; if(len>maxlen) { maxword=word ; maxlen=len } } END {
print maxword}'

Not something I'd call a one-liner. (It's just a complete program in one
line, just omitting newlines.)

Janis

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor