Re: [理工] [離散] 導遞迴式

看板Grad-ProbAsk作者 (祈附‧征前御祭)時間15年前 (2011/01/06 00:18), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/3 (看更多)
: find the number of bit strings that contain the string "01" 先算不包含"01" x_1 x_2 |-------||-------| 11111...100000...0 0 <= x_1,x_2 <= n x_1 + x_2 = n 非負整數解 H(2,n) = C(n+1,1) = n+1 再扣回去 2^n - (n+1) 跟遞迴解出來應該是一樣的 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.230.129.117
文章代碼(AID): #1D99dE2e (Grad-ProbAsk)
文章代碼(AID): #1D99dE2e (Grad-ProbAsk)