Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

You will be successful in love.


comp / comp.lang.python / Re: given Dict=(act, eat, sat, ...) make a long chain (no repeats) with 2-letter overlaps

SubjectAuthor
* given Dict=(act, eat, sat, ...) make a long chain (no repeats) with 2-letter oveHenHanna
`* Re: given Dict=(act, eat, sat, ...) make a long chain (no repeats) with 2-letterJames Waldby
 `* Re: given Dict=(act, eat, sat, ...) make a long chain (no repeats) with 2-letterHenHanna
  `* Re: given Dict=(act, eat, sat, ...) make a long chain (no repeats) with 2-letterJames Waldby
   `* Re: given Dict=(act, eat, sat, ...) make a long chain (no repeats) with 2-letterHenHanna
    `* Re: given Dict=(act, eat, sat, ...) make a long chain (no repeats) with 2-letterJames Waldby
     `- Re: given Dict=(act, eat, sat, ...) make a long chain (no repeats) with 2-letterHenHanna

1
Subject: given Dict=(act, eat, sat, ...) make a long chain (no repeats) with 2-letter overlaps
From: HenHanna
Newsgroups: comp.lang.python, sci.lang, sci.math
Organization: A noiseless patient Spider
Date: Mon, 17 Jun 2024 19:01 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: HenHanna@devnull.tb (HenHanna)
Newsgroups: comp.lang.python,sci.lang,sci.math
Subject: given Dict=(act, eat, sat, ...) make a long chain (no repeats) with
2-letter overlaps
Date: Mon, 17 Jun 2024 12:01:27 -0700
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <v4q168$sgqr$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 17 Jun 2024 21:01:30 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="7fcfed2c1aa218ac39705005bc220039";
logging-data="934747"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Gf3K8vyBFx2aHptTeLV6cBuAQvej4v2E="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:IkIAouEfEGKEGflK1qG9eFddJQ8=
Content-Language: en-US
View all headers

given (a list of 3-letter words)
Dict=(act, ATT, eat, sat, sit, cat, bat, dog, god, mat, tim, kim, ...)

The object is to make a long chain (no repeats) with 2-letter overlaps.

e.g. -- [cat, ate, tea, eat, ATT, ...]

What's a good approach (in Python)?

in Mathematica, it's easy to find THE Longest chain?

is this a typical NP-complete problem?

________________

-- Martha has aspirin in industrial allotments.

-- Two women enter erotic icehouse, seduce celibate teacher.

-- Rush showed editorial alarmism, smeared educational alliance ceaselessly.

Subject: Re: given Dict=(act, eat, sat, ...) make a long chain (no repeats) with 2-letter overlaps
From: James Waldby
Newsgroups: comp.lang.python, sci.lang, sci.math
Organization: A noiseless patient Spider
Date: Mon, 17 Jun 2024 23:24 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: no@no.no (James Waldby)
Newsgroups: comp.lang.python,sci.lang,sci.math
Subject: Re: given Dict=(act, eat, sat, ...) make a long chain (no repeats) with 2-letter overlaps
Date: Mon, 17 Jun 2024 23:24:15 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <v4qgiu$ve3b$1@dont-email.me>
References: <v4q168$sgqr$1@dont-email.me>
Injection-Date: Tue, 18 Jun 2024 01:24:15 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="585482d3d56ccbaea3432ff3b396faa0";
logging-data="1030251"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19rlWMSHtjC4BjwXxfJtYor"
User-Agent: tin/2.6.2-20220130 ("Convalmore") (Linux/5.15.0-107-generic (x86_64))
Cancel-Lock: sha1:kA9IZKY8XAxgEgiC2JAj6BRHla8=
View all headers

In sci.math HenHanna <HenHanna@devnull.tb> wrote:
> given (a list of 3-letter words)
> Dict=(act, ATT, eat, sat, sit, cat, bat, dog, god, mat, tim, kim, ...)
>
> The object is to make a long chain (no repeats) with 2-letter overlaps.
>
> e.g. -- [cat, ate, tea, eat, ATT, ...]
>
> What's a good approach (in Python)?

According to ref 1, longest-path problems are NP-complete. At the
moment there's no method known that is "good" in general for the
problem. However, if all of the dictionary words are chosen from a
natural-language, then we have a special (not general) case. I think
in this special case a method like finding pairs, then combining pairs
to triple, then triples to fives, fives to nines, etc, might work
well, given obvious fallbacks to combining different-length sequences
when at some length same-length combinations don't exist.

*Ref 1 <https://en.wikipedia.org/wiki/Longest_path_problem#NP-hardness>
*Ref 2 <https://en.wikipedia.org/wiki/NP-completeness>

>
> in Mathematica, it's easy to find THE Longest chain?
>
> is this a typical NP-complete problem?

As noted in ref 2, "A problem p in NP is NP-complete if every other
problem in NP can be transformed (or reduced) into p in polynomial
time", so there is a sense in which every NP-complete problem is a
typical NP-complete problem.

> ________________
>
> -- Martha has aspirin in industrial allotments.
>
> -- Two women enter erotic icehouse, seduce celibate teacher.
>
> -- Rush showed editorial alarmism, smeared educational alliance ceaselessly.

Subject: Re: given Dict=(act, eat, sat, ...) make a long chain (no repeats) with 2-letter overlaps
From: HenHanna
Newsgroups: comp.lang.python, sci.lang, sci.math
Organization: A noiseless patient Spider
Date: Tue, 18 Jun 2024 02:32 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: HenHanna@devnull.tb (HenHanna)
Newsgroups: comp.lang.python,sci.lang,sci.math
Subject: Re: given Dict=(act, eat, sat, ...) make a long chain (no repeats)
with 2-letter overlaps
Date: Mon, 17 Jun 2024 19:32:58 -0700
Organization: A noiseless patient Spider
Lines: 52
Message-ID: <v4qrkr$157vp$1@dont-email.me>
References: <v4q168$sgqr$1@dont-email.me> <v4qgiu$ve3b$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 18 Jun 2024 04:33:00 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="54c3e15d7ec71e21a08feb29ba404444";
logging-data="1220601"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/VsZ5yyVz9uMGuOm0/GhcHjQuoHb2p9dY="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:fjKc2GVF2JnTEvgxJEJ/0yOJmT8=
In-Reply-To: <v4qgiu$ve3b$1@dont-email.me>
Content-Language: en-US
View all headers

On 6/17/2024 4:24 PM, James Waldby wrote:
> In sci.math HenHanna <HenHanna@devnull.tb> wrote:
>> given (a list of 3-letter words)
>> Dict=(act, ATT, eat, sat, sit, cat, bat, dog, god, mat, tim, kim, ...)
>>
>> The object is to make a long chain (no repeats) with 2-letter overlaps.
>>
>> e.g. -- [cat, ate, tea, eat, ATT, ...]
>>
>> What's a good approach (in Python)?
>
> According to ref 1, longest-path problems are NP-complete. At the
> moment there's no method known that is "good" in general for the
> problem. However, if all of the dictionary words are chosen from a
> natural-language, then we have a special (not general) case. I think
> in this special case a method like finding pairs, then combining pairs
> to triple, then triples to fives, fives to nines, etc, might work
> well, given obvious fallbacks to combining different-length sequences
> when at some length same-length combinations don't exist.
>
> *Ref 1 <https://en.wikipedia.org/wiki/Longest_path_problem#NP-hardness>
> *Ref 2 <https://en.wikipedia.org/wiki/NP-completeness>
>
>>
>> in Mathematica, it's easy to find THE Longest chain?
>>
>> is this a typical NP-complete problem?
>
> As noted in ref 2, "A problem p in NP is NP-complete if every other
> problem in NP can be transformed (or reduced) into p in polynomial
> time", so there is a sense in which every NP-complete problem is a
> typical NP-complete problem.
>
>> ________________
>>
>> -- Martha has aspirin in industrial allotments.
>>
>> -- Two women enter erotic icehouse, seduce celibate teacher.
>>
>> -- Rush showed editorial alarmism, smeared educational alliance ceaselessly.

thanks!

word Chain with 3-letter overlaps (between successive words)

10 (shtoomest, estrayed, yedo, edomitish,
ish, ishime, imelle, ller, lerps, rps)

Subject: Re: given Dict=(act, eat, sat, ...) make a long chain (no repeats) with 2-letter overlaps
From: James Waldby
Newsgroups: comp.lang.python, sci.lang, sci.math
Organization: A noiseless patient Spider
Date: Sat, 6 Jul 2024 22:08 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: no@no.no (James Waldby)
Newsgroups: comp.lang.python,sci.lang,sci.math
Subject: Re: given Dict=(act, eat, sat, ...) make a long chain (no repeats) with 2-letter overlaps
Date: Sat, 6 Jul 2024 22:08:53 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 86
Message-ID: <v6cf9l$3vtoo$1@dont-email.me>
References: <v4q168$sgqr$1@dont-email.me> <v4qgiu$ve3b$1@dont-email.me> <v4qrkr$157vp$1@dont-email.me>
Injection-Date: Sun, 07 Jul 2024 00:08:54 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a8acc4ea2f043903feac0994c81a6548";
logging-data="4192024"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/KZ4/zQ2usyjyP7Dg7XRuC"
User-Agent: tin/2.6.2-20220130 ("Convalmore") (Linux/5.15.0-107-generic (x86_64))
Cancel-Lock: sha1:7cm4TxNNrm9piyUru7i6JtE/VLA=
View all headers

In sci.math HenHanna <HenHanna@devnull.tb> wrote:
> On 6/17/2024 4:24 PM, James Waldby wrote:
>> In sci.math HenHanna <HenHanna@devnull.tb> wrote:
>>> given (a list of 3-letter words)
>>> Dict=(act, ATT, eat, sat, sit, cat, bat, dog, god, mat, tim, kim, ...)
>>>
>>> The object is to make a long chain (no repeats) with 2-letter overlaps.
>>> e.g. -- [cat, ate, tea, eat, ATT, ...]
>>> What's a good approach (in Python)?
>>
>> According to ref 1, longest-path problems are NP-complete. At the
>> moment there's no method known that is "good" in general for the
>> problem. However, if all of the dictionary words are chosen from a
>> natural-language, then we have a special (not general) case. I think
>> in this special case a method like finding pairs, then combining pairs
>> to triple, then triples to fives, fives to nines, etc, might work
>> well, given obvious fallbacks to combining different-length sequences
>> when at some length same-length combinations don't exist.
>>
>> *Ref 1 <https://en.wikipedia.org/wiki/Longest_path_problem#NP-hardness>
>> *Ref 2 <https://en.wikipedia.org/wiki/NP-completeness>

>>> in Mathematica, it's easy to find THE Longest chain?
>>> is this a typical NP-complete problem?
>>
>> As noted in ref 2, "A problem p in NP is NP-complete if every other
>> problem in NP can be transformed (or reduced) into p in polynomial
>> time", so there is a sense in which every NP-complete problem is a
>> typical NP-complete problem.
....
> word Chain with 3-letter overlaps (between successive words)
>
> 10 (shtoomest, estrayed, yedo, edomitish,
> ish, ishime, imelle, ller, lerps, rps)

I wrote some programs to look for word chains, first on the plan
mentioned earlier -- finding pairs, then combining pairs to triples,
triples to fives, etc which worked ok to find chains of up to 30 or 40
words, but this turned out to be fairly slow and of course memory
intensive, running out of memory after a few hours on my 64GB-ram
system. Then I tried depth-first recursion, which in .1 second can
find chains of 150+ words, using 6-letter dictionary words with
3-letter overlaps, but taking 1.5 hours to find its first 171-word
chain, 11 hours to find a 174-chain, 30 hours for a 177-chain, then no
progress in the next 142 hours of computation. With a couple of minor
program changes I got the 174 time below 6 minutes, and time to 177
around 14 minutes, but no progress beyond that in the next 18 hours.

Here's an 8-letter/4-overlap 10-chain example, based on an
88-word dictionary of 8-letter words, all containing `over`:
10 : discover overhang hangover overhung hungover overtake
takeover overturn turnover overacts at 0.201194 seconds

Example 6-letter/3-overlap 177-chain:
177 : abacus cuspid pidgin ginger gerbil billet lethal halter terser
serene enemas mascot cotton tonsil silent entice icebox boxcar carbon
bonbon bongos gospel pellet letups upshot hotbed bedbug bugles lessee
seeped pedant anthem hempen pennon noncom combat bather herbal balder
dermis misfit fitful fulcra craven vendor dormer merman manful fulfil
filthy thymus muscat catnap napped pedlar largos gossip siphon honcho
choice icecap captor torpor portal talent entrap rapper permit mitten
tenpin pintos tosses sesame amebas basins instil tildes despot potash
ashcan cancan cancel cellar larvas vassal salver verbal ballad ladles
lessen sensor sorbet betcha chapel pelvis viscus custom tombed bedlam
lambed bedpan pantry tryout outlay layout outran rancor cornea neared
redden denser server vermin minute uterus russet settee teepee peewee
weevil villas lassie siesta stamen mentor torque queasy asylum lumbar
barfed fedora orator torrid ridden dentin tinsel selves vessel selfie
fiesta stadia dialog logout outrun runway waylay layman mantra trains
insult ultras rascal callus lustre tremor mortar tartar tarpon poncho
chores resend endear earwig wigwam wampum pumper person sonnet nether
hernia niacin cinder derail ailing ingest esters ersatz at 820.516 seconds

Example 8-letter/4-overlap 79-chain:
79: abjuring ringside sidekick kickback backbone bonehead headland
landlady ladyship shipload loadstar starfish fishtail tailgate
gatepost postdate dateline linefeed feedback backfire fireside
sidelong longhand handbook bookcase casework workbook bookworm
wormwood woodcock cocksure surefire firewood woodland landmark
markdown downhill hillside sideshow showdown downturn turnover
overcome comeback backhand handrail railroad roadkill killdeer
deerskin skinhead headword wordplay playback backstop stopover
overhand handsome somewhat whatever evermore moreover overhang
hangover overhung hungover overtake takeover overdraw drawback
backrest restrain raindrop dropouts outshone honester sternest
nestling lingered at 54577.844678 seconds

Subject: Re: given Dict=(act, eat, sat, ...) make a long chain (no repeats) with 2-letter overlaps
From: HenHanna
Newsgroups: comp.lang.python, sci.lang, sci.math
Organization: A noiseless patient Spider
Date: Sun, 7 Jul 2024 05:42 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: HenHanna@devnull.tb (HenHanna)
Newsgroups: comp.lang.python,sci.lang,sci.math
Subject: Re: given Dict=(act, eat, sat, ...) make a long chain (no repeats)
with 2-letter overlaps
Date: Sat, 6 Jul 2024 22:42:38 -0700
Organization: A noiseless patient Spider
Lines: 127
Message-ID: <v6d9sf$79kv$1@dont-email.me>
References: <v4q168$sgqr$1@dont-email.me> <v4qgiu$ve3b$1@dont-email.me>
<v4qrkr$157vp$1@dont-email.me> <v6cf9l$3vtoo$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 07 Jul 2024 07:42:39 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="cf7c2fa96044547c90e4fddda328c141";
logging-data="239263"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18kYQjE93Fs6RQCbNpOZd9HBT2jLlHYn5E="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:/yN3WPyses/ZWSqk81sFHC3gehI=
Content-Language: en-US
In-Reply-To: <v6cf9l$3vtoo$1@dont-email.me>
View all headers

On 7/6/2024 3:08 PM, James Waldby wrote:
> In sci.math HenHanna <HenHanna@devnull.tb> wrote:
>> On 6/17/2024 4:24 PM, James Waldby wrote:
>>> In sci.math HenHanna <HenHanna@devnull.tb> wrote:
>>>> given (a list of 3-letter words)
>>>> Dict=(act, ATT, eat, sat, sit, cat, bat, dog, god, mat, tim, kim, ...)
>>>>
>>>> The object is to make a long chain (no repeats) with 2-letter overlaps.
>>>> e.g. -- [cat, ate, tea, eat, ATT, ...]
>>>> What's a good approach (in Python)?
>>>
>>> According to ref 1, longest-path problems are NP-complete. At the
>>> moment there's no method known that is "good" in general for the
>>> problem. However, if all of the dictionary words are chosen from a
>>> natural-language, then we have a special (not general) case. I think
>>> in this special case a method like finding pairs, then combining pairs
>>> to triple, then triples to fives, fives to nines, etc, might work
>>> well, given obvious fallbacks to combining different-length sequences
>>> when at some length same-length combinations don't exist.
>>>
>>> *Ref 1 <https://en.wikipedia.org/wiki/Longest_path_problem#NP-hardness>
>>> *Ref 2 <https://en.wikipedia.org/wiki/NP-completeness>
>
>>>> in Mathematica, it's easy to find THE Longest chain?
>>>> is this a typical NP-complete problem?
>>>
>>> As noted in ref 2, "A problem p in NP is NP-complete if every other
>>> problem in NP can be transformed (or reduced) into p in polynomial
>>> time", so there is a sense in which every NP-complete problem is a
>>> typical NP-complete problem.
> ...
>> word Chain with 3-letter overlaps (between successive words)
>>
>> 10 (shtoomest, estrayed, yedo, edomitish,
>> ish, ishime, imelle, ller, lerps, rps)
>
> I wrote some programs to look for word chains, first on the plan
> mentioned earlier -- finding pairs, then combining pairs to triples,
> triples to fives, etc which worked ok to find chains of up to 30 or 40
> words, but this turned out to be fairly slow and of course memory
> intensive, running out of memory after a few hours on my 64GB-ram
> system. Then I tried depth-first recursion, which in .1 second can
> find chains of 150+ words, using 6-letter dictionary words with
> 3-letter overlaps, but taking 1.5 hours to find its first 171-word
> chain, 11 hours to find a 174-chain, 30 hours for a 177-chain, then no
> progress in the next 142 hours of computation. With a couple of minor
> program changes I got the 174 time below 6 minutes, and time to 177
> around 14 minutes, but no progress beyond that in the next 18 hours.
>

> Here's an 8-letter/4-overlap 10-chain example, based on an
> 88-word dictionary of 8-letter words, all containing `over`:
> 10 : ( discover overhang hangover overhung hungover overtake
> takeover overturn turnover overacts ) at 0.201194 seconds

menomini + minidisc +

( discover overhang hangover overhung hungover overtake
takeover overturn turnover overacts )

>
> Example 6-letter/3-overlap 177-chain:
> 177 : abacus cuspid pidgin ginger gerbil billet lethal halter terser
> serene enemas mascot cotton tonsil silent entice icebox boxcar carbon
> bonbon bongos gospel pellet letups upshot hotbed bedbug bugles lessee
> seeped pedant anthem hempen pennon noncom combat bather herbal balder
> dermis misfit fitful fulcra craven vendor dormer merman manful fulfil
> filthy thymus muscat catnap napped pedlar largos gossip siphon honcho
> choice icecap captor torpor portal talent entrap rapper permit mitten
> tenpin pintos tosses sesame amebas basins instil tildes despot potash
> ashcan cancan cancel cellar larvas vassal salver verbal ballad ladles
> lessen sensor sorbet betcha chapel pelvis viscus custom tombed bedlam
> lambed bedpan pantry tryout outlay layout outran rancor cornea neared
> redden denser server vermin minute uterus russet settee teepee peewee
> weevil villas lassie siesta stamen mentor torque queasy asylum lumbar
> barfed fedora orator torrid ridden dentin tinsel selves vessel selfie
> fiesta stadia dialog logout outrun runway waylay layman mantra trains
> insult ultras rascal callus lustre tremor mortar tartar tarpon poncho
> chores resend endear earwig wigwam wampum pumper person sonnet nether
> hernia niacin cinder derail ailing ingest esters ersatz at 820.516 seconds
>
> Example 8-letter/4-overlap 79-chain:
> 79: abjuring ringside sidekick kickback backbone bonehead headland
> landlady ladyship shipload loadstar starfish fishtail tailgate
> gatepost postdate dateline linefeed feedback backfire fireside
> sidelong longhand handbook bookcase casework workbook bookworm
> wormwood woodcock cocksure surefire firewood woodland landmark
> markdown downhill hillside sideshow showdown downturn turnover
> overcome comeback backhand handrail railroad roadkill killdeer
> deerskin skinhead headword wordplay playback backstop stopover
> overhand handsome somewhat whatever evermore moreover overhang
> hangover overhung hungover overtake takeover overdraw drawback
> backrest restrain raindrop dropouts outshone honester sternest
> nestling lingered at 54577.844678 seconds

my PC is slow... but i got curious... (about 6-letter/3-overlap)

........., massig,signal,nalfon, +

........., reshun,hungry,gryfon, +

95 ( fondak, dakota, otakus, kuskus, kussos, sossed, sedate, ateles,
lesses, sestet, tethys, hyssop, sophia, hiatus, tuscan, canell, ellops,
opsins, insoul, oulder, dermol, molten, tenure, uretal, talpas, passes,
seskin, kindie, dietal, tallis, lisbon, bonagh, aghast, astony, onymal,
malice, icecap, caplin, lingas, gassit, situps, upsend, endore, oregon,
gonads, adsorb, orbits, itself, elfish, ishtar, tarpot, potboy, boyaux,
auxins, inship, hippus, pusley, leymus, muslin, linsey, seyens, ensure,
uredia, diamat, matlos, losels, elsins, insunk, unkill, illing, ingoes,
oesogi, ogived, vedism, ismdom, domett, ettles, lessee, seeing, ingans,
anshar, hardim, dimply, plying, inglut, lutzes, zester, ternar, narica,
icarus, rushes, hestia, tiamat, mating, ingots )

i think... A long (straight) chain like this (below) is harder to find
(no dict for them)

Survey -
Monkey - Business - Casual - Sex - Work - Visa - Card - Shark - Tank
- Top - Secret - Agent - Orange - Julius - Caesar - Salad - Dressing

Subject: Re: given Dict=(act, eat, sat, ...) make a long chain (no repeats) with 2-letter overlaps
From: James Waldby
Newsgroups: comp.lang.python, sci.lang, sci.math
Organization: A noiseless patient Spider
Date: Sun, 7 Jul 2024 20:41 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: no@no.no (James Waldby)
Newsgroups: comp.lang.python,sci.lang,sci.math
Subject: Re: given Dict=(act, eat, sat, ...) make a long chain (no repeats) with 2-letter overlaps
Date: Sun, 7 Jul 2024 20:41:41 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 59
Message-ID: <v6eui5$fqih$1@dont-email.me>
References: <v4q168$sgqr$1@dont-email.me> <v4qgiu$ve3b$1@dont-email.me> <v4qrkr$157vp$1@dont-email.me> <v6cf9l$3vtoo$1@dont-email.me> <v6d9sf$79kv$1@dont-email.me>
Injection-Date: Sun, 07 Jul 2024 22:41:42 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a8acc4ea2f043903feac0994c81a6548";
logging-data="518737"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+SN5ZtKRRGhpDr209iXJE2"
User-Agent: tin/2.6.2-20220130 ("Convalmore") (Linux/5.15.0-107-generic (x86_64))
Cancel-Lock: sha1:pXTJAUVr52YxE3FmCbY1rpJh4Fs=
View all headers

In sci.math HenHanna <HenHanna@devnull.tb> wrote:
> On 7/6/2024 3:08 PM, James Waldby wrote:
....
>> Here's an 8-letter/4-overlap 10-chain example, based on an
>> 88-word dictionary of 8-letter words, all containing `over`:
>> 10 : ( discover overhang hangover overhung hungover overtake
>> takeover overturn turnover overacts ) at 0.201194 seconds

> menomini + minidisc +
> ( discover overhang hangover overhung hungover overtake
> takeover overturn turnover overacts )

>> Example 6-letter/3-overlap 177-chain:
>> 177 : abacus cuspid pidgin ginger gerbil billet lethal halter terser
>> serene enemas mascot cotton tonsil silent entice icebox boxcar carbon
....
>> hernia niacin cinder derail ailing ingest esters ersatz at 820.516 seconds
>>
>> Example 8-letter/4-overlap 79-chain:
>> 79: abjuring ringside sidekick kickback backbone bonehead headland
>> landlady ladyship shipload loadstar starfish fishtail tailgate
>> gatepost postdate dateline linefeed feedback backfire fireside
....
>> backrest restrain raindrop dropouts outshone honester sternest
>> nestling lingered at 54577.844678 seconds

> my PC is slow... but i got curious... (about 6-letter/3-overlap)
>
> ........, massig,signal,nalfon, +
>
> ........, reshun,hungry,gryfon, +
>
> 95 ( fondak, dakota, otakus, kuskus, kussos, sossed, sedate, ateles,
> lesses, sestet, tethys, hyssop, sophia, hiatus, tuscan, canell, ellops,
> opsins, insoul, oulder, dermol, molten, tenure, uretal, talpas, passes,
> seskin, kindie, dietal, tallis, lisbon, bonagh, aghast, astony, onymal,
> malice, icecap, caplin, lingas, gassit, situps, upsend, endore, oregon,
> gonads, adsorb, orbits, itself, elfish, ishtar, tarpot, potboy, boyaux,
> auxins, inship, hippus, pusley, leymus, muslin, linsey, seyens, ensure,
> uredia, diamat, matlos, losels, elsins, insunk, unkill, illing, ingoes,
> oesogi, ogived, vedism, ismdom, domett, ettles, lessee, seeing, ingans,
> anshar, hardim, dimply, plying, inglut, lutzes, zester, ternar, narica,
> icarus, rushes, hestia, tiamat, mating, ingots )

Do you have a link to the dictionary you're using? Among the first 17
words (for example) of that sequence, only sedate and hiatus are in
linux's /usr/share/dict/american-english file.

> i think... A long (straight) chain like this (below) is harder to find
> (no dict for them)
>
> Survey -
> Monkey - Business - Casual - Sex - Work - Visa - Card - Shark - Tank
> - Top - Secret - Agent - Orange - Julius - Caesar - Salad - Dressing

I think the basics of the problem are not more difficult, if a
dictionary of collocations were to be found. I don't know of a free
one, or whether the following would be accessible if paid for.
https://www.oxfordlearnersdictionaries.com/us/definition/collocations

Subject: Re: given Dict=(act, eat, sat, ...) make a long chain (no repeats) with 2-letter overlaps
From: HenHanna
Newsgroups: comp.lang.python, sci.lang, sci.math
Organization: A noiseless patient Spider
Date: Sun, 7 Jul 2024 21:23 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: HenHanna@devnull.tb (HenHanna)
Newsgroups: comp.lang.python,sci.lang,sci.math
Subject: Re: given Dict=(act, eat, sat, ...) make a long chain (no repeats)
with 2-letter overlaps
Date: Sun, 7 Jul 2024 14:23:29 -0700
Organization: A noiseless patient Spider
Lines: 86
Message-ID: <v6f10i$fuf9$1@dont-email.me>
References: <v4q168$sgqr$1@dont-email.me> <v4qgiu$ve3b$1@dont-email.me>
<v4qrkr$157vp$1@dont-email.me> <v6cf9l$3vtoo$1@dont-email.me>
<v6d9sf$79kv$1@dont-email.me> <v6eui5$fqih$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 07 Jul 2024 23:23:31 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="a02c9f7872b50aaf5bc4fe4461c0332f";
logging-data="522729"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18TDYW+WD+9gHLLsztCGHQb1pR1EfqnDNY="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:CbfuKwvo6PyprGQb0F+OhLUEeog=
Content-Language: en-US
In-Reply-To: <v6eui5$fqih$1@dont-email.me>
View all headers

On 7/7/2024 1:41 PM, James Waldby wrote:
> In sci.math HenHanna <HenHanna@devnull.tb> wrote:
>> On 7/6/2024 3:08 PM, James Waldby wrote:
> ...
>>> Here's an 8-letter/4-overlap 10-chain example, based on an
>>> 88-word dictionary of 8-letter words, all containing `over`:
>>> 10 : ( discover overhang hangover overhung hungover overtake
>>> takeover overturn turnover overacts ) at 0.201194 seconds
>
>> menomini + minidisc +
>> ( discover overhang hangover overhung hungover overtake
>> takeover overturn turnover overacts )
>
>>> Example 6-letter/3-overlap 177-chain:
>>> 177 : abacus cuspid pidgin ginger gerbil billet lethal halter terser
>>> serene enemas mascot cotton tonsil silent entice icebox boxcar carbon
> ...
>>> hernia niacin cinder derail ailing ingest esters ersatz at 820.516 seconds
>>>
>>> Example 8-letter/4-overlap 79-chain:
>>> 79: abjuring ringside sidekick kickback backbone bonehead headland
>>> landlady ladyship shipload loadstar starfish fishtail tailgate
>>> gatepost postdate dateline linefeed feedback backfire fireside
> ...
>>> backrest restrain raindrop dropouts outshone honester sternest
>>> nestling lingered at 54577.844678 seconds
>
>> my PC is slow... but i got curious... (about 6-letter/3-overlap)
>>
>> ........, massig,signal,nalfon, +
>>
>> ........, reshun,hungry,gryfon, +
>>
>> 95 ( fondak, dakota, otakus, kuskus, kussos, sossed, sedate, ateles,
>> lesses, sestet, tethys, hyssop, sophia, hiatus, tuscan, canell, ellops,
>> opsins, insoul, oulder, dermol, molten, tenure, uretal, talpas, passes,
>> seskin, kindie, dietal, tallis, lisbon, bonagh, aghast, astony, onymal,
>> malice, icecap, caplin, lingas, gassit, situps, upsend, endore, oregon,
>> gonads, adsorb, orbits, itself, elfish, ishtar, tarpot, potboy, boyaux,
>> auxins, inship, hippus, pusley, leymus, muslin, linsey, seyens, ensure,
>> uredia, diamat, matlos, losels, elsins, insunk, unkill, illing, ingoes,
>> oesogi, ogived, vedism, ismdom, domett, ettles, lessee, seeing, ingans,
>> anshar, hardim, dimply, plying, inglut, lutzes, zester, ternar, narica,
>> icarus, rushes, hestia, tiamat, mating, ingots )
>
> Do you have a link to the dictionary you're using? Among the first 17
> words (for example) of that sequence, only sedate and hiatus are in
> linux's /usr/share/dict/american-english file.

Do you prefer that these words be excluded?
dublin, otaku, otakus, shinju, ohtani,
jonathan, eliza, mary, Biden, boston, oregon

>
>> i think... A long (straight) chain like this (below) is harder to find
>> (no dict for them)
>>
>> Survey -
>> Monkey - Business - Casual - Sex - Work - Visa - Card - Shark - Tank
>> - Top - Secret - Agent - Orange - Julius - Caesar - Salad - Dressing
>
> I think the basics of the problem are not more difficult, if a
> dictionary of collocations were to be found. I don't know of a free
> one, or whether the following would be accessible if paid for.
> https://www.oxfordlearnersdictionaries.com/us/definition/collocations

i've used a bigger dict before, but stopped using that one,
when i realized that it was giving me so many words
i'd never seen and will never use or learn.

https://github.com/possibly-wrong/word-frequency/blob/main/word-frequency.txt

_________________ Rearrange the words into a chain of 2-word phrases:

Rocky Break Road Point Compound
Game Eye Open Level

(Hint: the ends (Rocky ... Level) don't move)

1

rocksolid light 0.9.8
clearnet tor