ת¶¾Êóǿͬѧ¶ÔÒ»µ¶n¶ÏͬѧÌá³öµÄÎÊÌ⣺mά¿Õ¼ä±»m-1άµ¶Æ¬ÇÐn´ÎµÃµ½ÓжàÉÙ¶Î[icky (5-7 18:29, Long long ago)] [ ´«Í³°æ | sForum ][µÇ¼ºó»Ø¸´]1Â¥
ÎҵĽⷨ[icky (5-7 18:29, Long long ago)] [ ´«Í³°æ | sForum ][µÇ¼ºó»Ø¸´]2Â¥
(ÒýÓà icky:ÎҵĽⷨ)f(n,m)=f(n-1,m)+f(n-1,m-1)with f(1,*)=1 and f(*,1)=1
»¯¼òÖ®ºó¿ÉµÃ
f(n,m) = 2^n - \sum_{k=0}^{n-m-1}{(n+1) \choose k}
²»ÖªÓзñclose form[icky (5-7 18:32, Long long ago)]
[ ´«Í³°æ |
sForum ][µÇ¼ºó»Ø¸´]3Â¥
(ÒýÓà icky:f(n,m)=f(n-1,m)+f(n-1,m-1)with f(1,*)=1 and f(*,1)=1 »¯¼òÖ®ºó¿ÉµÃ f(n,m) = 2^n - \sum_{k=0}^{n-m-1}{(n+1) \choose k} ²»ÖªÓз)--> ²»ÖªÓзñclose form [icky (5-7 18:34, Long long ago)] [ ´«Í³°æ | sForum ][µÇ¼ºó»Ø¸´]4Â¥
m=2, n=4, answer is 11?[ÎâÓÀï£ (5-7 21:32, Long long ago)] [ ´«Í³°æ | sForum ][µÇ¼ºó»Ø¸´]5Â¥
(ÒýÓà ÎâÓÀï£:m=2, n=4, answer is 11?)ƽÃæÉÏ»®4ÌõÏߣ¬×î¶à11¸öÇøÓò£¬¶ÔµÄ°É[icky (5-7 21:39, Long long ago)] [ ´«Í³°æ | sForum ][µÇ¼ºó»Ø¸´]6Â¥
(ÒýÓà icky:ƽÃæÉÏ»®4ÌõÏߣ¬×î¶à11¸öÇøÓò£¬¶ÔµÄ°É)ÄÇf(n,m)=f(n-1,m)+f(n-1,m-1)¾Í²»¶Ô¿©¡£f(4,2)=f(3,2)+1=...=4[ÎâÓÀï£ (5-7 22:57, Long long ago)] [ ´«Í³°æ | sForum ][µÇ¼ºó»Ø¸´]7Â¥
(ÒýÓà ÎâÓÀï£:ÄÇf(n,m)=f(n-1,m)+f(n-1,m-1)¾Í²»¶Ô¿©¡£f(4,2)=f(3,2)+1=...=4)f(4,2)=(f(3,2)+f(3,1)=7+4=11f(3,1) = 4 ÒòΪÈý¸öµã¿ÉÒÔ°ÑÒ»ÌõÏß·Ö³É4¶Î
ÎÒµÄbasisд´íÁË£¬Ó¦¸ÃÊÇf(*,0)=f(0,*)=1,¼´Ò»¸öµã²»¹ÜÔõô·Ö¶¼»¹ÊÇÒ»¸öµã£¬ÈκÎÒ»¸ö¿Õ¼ä²»ÇиîµÄÇé¿öÏÂÊÇÒ»¸öpartition[icky (5-7 23:47, Long long ago)]
[ ´«Í³°æ |
sForum ][µÇ¼ºó»Ø¸´]8Â¥
(ÒýÓà icky:f(4,2)=(f(3,2)+f(3,1)=7+4=11f(3,1) = 4 ÒòΪÈý¸öµã¿ÉÒÔ°ÑÒ»ÌõÏß·Ö³É4¶Î ÎÒµÄbasisд´íÁË£¬Ó¦¸ÃÊÇf(*,0)=f(0,*)=1,¼´Ò»¸öµã²»¹ÜÔõô·Ö¶...)À÷º¦[ÎâÓÀï£ (5-8 13:38, Long long ago)] [ ´«Í³°æ | sForum ][µÇ¼ºó»Ø¸´]9Â¥
(ÒýÓà ÎâÓÀï£:À÷º¦)ÎÒÄǸö¹«Ê½ÊÇÓõÝÍÆʽµÃ³öÀ´µÄ£¬µ«ÊÇÎÒ»¹²»ÖªµÀÔõô½âÊÍÕâ¸ö¹«Ê½Äã¿´°¡
f(n,m) = 2^n - \sum_{k=0}^{n-m-1}{n \choose k}
= \sum_{k=n-m}^{n}{n \choose k}
= \sum_{k=0}^{m}{n \choose k}
¾ÍÊÇ˵Õâ¸öÖµÊÇÑî»ÔÈý½ÇµÄµÚnÐУ¨¼â¼âΪµÚ0ÐУ©Ç°m+1ÏîµÄºÍ
n=0 1
n=1 1 1
n=2 1 2 1
n=3 1 3 3 1
n=4 1 4 6 4 1
±È·½Ëµm=2µÄÇé¿ö£¬ÎÒÃÇÖ»Ðè°ÑÿһÐеÄÇ°3ÏîÏà¼Ó£¬¾ÍÊÇf(n,2)ÁË
ÎÒ»¹ÔÚÏëÕâ¸öÔõô½âÊÍ£¬²»¹ýÎÒ³õ²½µÄÏë·¨Ó¦¸Ã¸úÿ¸öpartitionµÄ±ßÊýÓйØ
[icky (5-8 19:19, Long long ago)]
[ ´«Í³°æ |
sForum ][µÇ¼ºó»Ø¸´]10Â¥
(ÒýÓà icky:ÎÒÄǸö¹«Ê½ÊÇÓõÝÍÆʽµÃ³öÀ´µÄ£¬µ«ÊÇÎÒ»¹²»ÖªµÀÔõô½âÊÍÕâ¸ö¹«Ê½Äã¿´°¡
f(n,m) = 2^n - \sum_{k=0}^{n-m-1}{n \choose k}
= \sum_{k=n-...)¿ÉÒÔÕâô½âÊÍmά¿Õ¼ä±»ÇÐn´ÎµÃµ½µÄ¶ÎÊý = mά¿Õ¼ä±»ÇÐn-1´ÎµÃµ½µÄ¶ÎÊý + µÚnµ¶Ôö¼ÓµÄ¶ÎÊý
¼ÙÉèmά¿Õ¼ä±»ÇÐn-1´ÎµÃµ½µÄ¶ÎÊýΪA£¬¼´±»·Ö³ÉÁËA¸ömά¿Õ¼ä¡£¼ÙÉèµÚn¸öµ¶Æ¬±»ÆðÏȵÄn-1µ¶·Ö³Ék¶Î£¬ÓÐk¸öm-1άСµ¶Æ¬£¬Ã¿¸öСµ¶Æ¬ÍêÈ«±»°üÈÝÓÚÓëA¸ö¿Õ¼äÖеÄÆäÖÐÒ»¸ö¿Õ¼ä£¬¶øÇÒ°ÑËü·Ö³ÉÁ½°ë£¬ËùÒÔ×ܹ²Ôö¼ÓÁËk¶Î¡£
ËùÒÔ f(n, m) = A + k.
ºÜÏÔÈ» A = f(n-1, m)
k = µÚn¸öµ¶Æ¬£¨m-1ά£©±»ÇÐn-1µ¶µÃµ½µÄ¶ÎÊý = f(n-1, m-1)
µÃÖ¤¡£[´óÊ÷Ï (5-9 19:11, Long long ago)]
[ ´«Í³°æ |
sForum ][µÇ¼ºó»Ø¸´]11Â¥
(ÒýÓà ´óÊ÷ÏÂ:¿ÉÒÔÕâô½âÊÍmά¿Õ¼ä±»ÇÐn´ÎµÃµ½µÄ¶ÎÊý = mά¿Õ¼ä±»ÇÐn-1´ÎµÃµ½µÄ¶ÎÊý + µÚnµ¶Ôö¼ÓµÄ¶ÎÊý ¼ÙÉèmά¿Õ¼ä±»ÇÐn-1´ÎµÃµ½µÄ¶ÎÊýΪA£¬¼´±»·Ö³É...)¶÷£¬ÎÒÊÇÎÊÔõô½âÊÍÕâ¸öÊý¸ÕºÃÊÇÑî»ÔÈý½ÇÇ°m+1ÏîµÄºÍ[icky (5-10 15:10, Long long ago)] [ ´«Í³°æ | sForum ][µÇ¼ºó»Ø¸´]12Â¥
(ÒýÓà icky:¶÷£¬ÎÒÊÇÎÊÔõô½âÊÍÕâ¸öÊý¸ÕºÃÊÇÑî»ÔÈý½ÇÇ°m+1ÏîµÄºÍ)...ÄãÈÏΪÕâÁ½¸öÖ®¼äÓÐhidden connection£¿
ÎÒ¾õµÃÖ»ÊÇÇɺϡ£ÒòΪÑî»ÔÈý½ÇµÚnÐÐÇ°mÏîµÄºÍÒ²·ûºÏÕâ¸öʽ×ÓS(n,m)=S(n-1,m)+S(n-1,m-1),¸ù¾ÝÑî»ÔÈý½ÇµÄÐÔÖÊ¡¾Ñî»ÔÈý½ÇµÚnÐеÚmÏîY(n,m)=Y(n-1,m)+Y(n-1,m-1)¡¿ºÜÈÝÒ×ÍƵ¼³öÀ´µÄ¡£
[´óÊ÷Ï (5-12 12:02, Long long ago)]
[ ´«Í³°æ |
sForum ][µÇ¼ºó»Ø¸´]13Â¥