Number of Strings without containing given string as substring?

Правка en1, от ILoveBitches, 2020-04-29 21:31:36

How to calculate the number of the string S of length N, which does not contain given string T as a substring?

length(S) ~ 10000 I would like to know all the approaches for the following 2 constraints :

  1. length(T) ~ 4 -> I have some DP idea but would appreciate if you can elaborate it more
  2. length(T) ~ 100
  3. length(T) ~ 100000

Please let me know all the available approaches.

Теги #dp, difficult, #combination, #combinatorics

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en5 Английский ILoveBitches 2020-04-29 22:09:00 4 Tiny change: ' 10000\n\nEDIT: What if ' -> ' 10000\n\n**EDIT**: What if '
en4 Английский ILoveBitches 2020-04-29 22:08:34 118
en3 Английский ILoveBitches 2020-04-29 21:33:59 3
en2 Английский ILoveBitches 2020-04-29 21:32:05 2 Tiny change: ' ~ 10000\nI would ' -> ' ~ 10000\n\nI would '
en1 Английский ILoveBitches 2020-04-29 21:31:36 463 Initial revision (published)