2. ã¯ãã㫠⢠ãåçè¨ç»æ³ãã¯è±èªã§ ãDynamic Programmingã ã¨è¨ãã¾ãï¼ â¢ ç¥ãã¦ãDPãã¨ããå¼ã°ãã¾ãï¼ â¢ ã¹ã©ã¤ãã§ã以å¾ä½¿ãã¾ãï¼ 4. ããããµãã¯åé¡ã¨ã¯ï¼ ⢠n åã®åç©ããã ⢠åç© i ã¯éã wi, ä¾¡å¤ vi ⢠éãã®åè¨ã U ãè¶ ããªãããã«é¸ã¶ â 1 ã¤ã®åç©ã¯ 1 ã¤ã¾ã§ ⢠ãã®æã®ä¾¡å¤ã®åè¨ã®æ大å¤ã¯ï¼ åç© 1 åç© 2 åç© n éã w1 éã w2 ã»ã»ã» éã wn ä¾¡å¤ v1 ä¾¡å¤ v2 ä¾¡å¤ vn 5. ããããµãã¯åé¡ã®ä¾ åç© 1 åç© 2 åç© 3 åç© 4 U=5 w1 = 2 w2 = 1 w3 = 3 w4 = 2 v1 = 3 v2 = 2 v3 = 4 v4 = 2 åç© 1 åç© 2 åç© 3 åç© 4 çã 7 w1 = 2 w2 = 1 w3 = 3 w4 = 2 v1 = 3 v
{{#tags}}- {{label}}
{{/tags}}