随笔分类 -  算法

摘要: 阅读全文
posted @ 2016-08-14 16:16 小菁菁爱吃番茄酱 阅读(167) 评论(0) 推荐(0)
摘要:1 package Three; 2 3 public class KNAPSACK { 4 public static int [][] KNAPSACK_DP(int[] v,int [] w,int W) 5 { 6 int n=w.length-1; 7 int[][] c=new int[n+1][W+1]; 8 ... 阅读全文
posted @ 2016-05-09 14:02 小菁菁爱吃番茄酱 阅读(220) 评论(0) 推荐(0)
摘要:可套用Assembly Lines问题解法 附上源代码JAVA版 问题 1.public static void main(String[] args)主函数格式改了直接就没法run; 2.给定义数组规定每行每列有多少int data[][]=new int[10][10]; 3.静态数组定义方式: 阅读全文
posted @ 2016-04-15 19:06 小菁菁爱吃番茄酱 阅读(389) 评论(0) 推荐(0)