Probabilità

Vuoi proporre i tuoi esercizi? Qui puoi farlo!!

Moderatore: tutor

Bloccato
Avatar utente
bh3u4m
Messaggi: 547
Iscritto il: 01 gen 1970, 01:00
Località: Milano

Messaggio da bh3u4m »

Si definisce stringa palindrome una stringa che letta da sinistra a destra e letta da destra a sinistra è identica. Ossia ABBCBBA lo è, ABBAC non lo è.
<BR>
<BR>Data una stringa qualsiasi di <b>n</b> caratteri presi da un insieme di <b>R</b> elementi trovare la probabilità che la massima sottostringa palindrome abbia <b>k</b> elementi.
<BR>
<BR>Vincoli:
<BR>3 < k <= n
<BR>
<BR>R>1
<BR>
In the break of new dawn
My hope is forlorn
Shadows they will fade
But I'm always in the shade
Without you...

My Selene - Sonata Arctica
Avatar utente
bh3u4m
Messaggi: 547
Iscritto il: 01 gen 1970, 01:00
Località: Milano

Messaggio da bh3u4m »

Tutti i numeri (<b>n, R, k</b>) sono interi.
In the break of new dawn
My hope is forlorn
Shadows they will fade
But I'm always in the shade
Without you...

My Selene - Sonata Arctica
Bloccato