main.java
来自「用分支界限法解决的几个问题:包括0-1背包问题,最大团问题,电路布线问题,最大装」· Java 代码 · 共 56 行
JAVA
56 行
/* * Main.java * * Created on 2006年4月4日, 下午3:24 * * To change this template, choose Tools | Options and locate the template under * the Source Creation and Management node. Right-click the template and choose * Open. You can then make changes to the template in the Source Editor. */package test;import java.applet.*;import bag.*;/** * * @author michael */public class Main { /** Creates a new instance of Main */ public Main() { } /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here //CircuitBoard frmCircuit = new CircuitBoard(); //frmCircuit.setVisible(true); /*double[] pl ={9.0,10.0,7.0,4.0}; double[] wl ={3.0,5.0,2.0,1.0}; double cl = 6.0; int [] xx=new int[5]; BBKnapsack first = new BBKnapsack(); double max=first.knapsack(pl,wl,cl); System.out.println(max); for (int i=0;i<4;i++) System.out.print(xx[i]); BBLoad b = new BBLoad(); int[] w ={2,2,3,3,5}; int[] best=new int[5]; b.maxLoad(w,10 ); int[] bestx=new int[5]; BBClique bc=new BBClique(); System.out.print(bc.maxClique(bestx)); for (int j=0;j<5;j++) System.out.print(bestx[j]+" ");*/ CircuitBoard c = new CircuitBoard(); c.setVisible(true); } }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?