given Dict=(act, eat, sat, ...) make a long chain (no repeats) with 2-letter overlaps

Liste des GroupesRevenir à s lang 
Sujet : given Dict=(act, eat, sat, ...) make a long chain (no repeats) with 2-letter overlaps
De : HenHanna (at) *nospam* devnull.tb (HenHanna)
Groupes : comp.lang.python sci.lang sci.math
Date : 17. Jun 2024, 20:01:27
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v4q168$sgqr$1@dont-email.me>
User-Agent : Mozilla Thunderbird
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.

Date Sujet#  Auteur
17 Jun 24 * given Dict=(act, eat, sat, ...) make a long chain (no repeats) with 2-letter overlaps7HenHanna
18 Jun 24 `* Re: given Dict=(act, eat, sat, ...) make a long chain (no repeats) with 2-letter overlaps6James Waldby
18 Jun 24  `* Re: given Dict=(act, eat, sat, ...) make a long chain (no repeats) with 2-letter overlaps5HenHanna
7 Jul 24   `* Re: given Dict=(act, eat, sat, ...) make a long chain (no repeats) with 2-letter overlaps4James Waldby
7 Jul 24    `* Re: given Dict=(act, eat, sat, ...) make a long chain (no repeats) with 2-letter overlaps3HenHanna
7 Jul 24     `* Re: given Dict=(act, eat, sat, ...) make a long chain (no repeats) with 2-letter overlaps2James Waldby
7 Jul 24      `- Re: given Dict=(act, eat, sat, ...) make a long chain (no repeats) with 2-letter overlaps1HenHanna

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal