public TDRodCutting(int n, int price[])
	{
		this.n = n;
		r = new int[price.length];
		p = price;
		cuts = new String[price.length];
		
		r[0] = 0;
		p[0] = 0;
		cuts[0] = "";
		
		for (int i = 1; i < price.length; i++)
			r[i] = Integer.MIN_VALUE;

		r[n] = cutRod(n);
	}