- 博客(0)
- 资源 (15)
空空如也
基本算法模拟程序java
button_exp1=new JButton("二分法");
button_exp1.setFont(new Font("黑体",Font.BOLD,30));
button_exp1.addActionListener(this);
button_exp2=new JButton("归并分类");
button_exp2.setFont(new Font("黑体",Font.BOLD,30));
button_exp2.addActionListener(this);
button_exp3=new JButton("循环赛日程");
button_exp3.setFont(new Font("黑体",Font.BOLD,30));
button_exp3.addActionListener(this);
button_exp4=new JButton("活动安排");
button_exp4.setFont(new Font("黑体",Font.BOLD,30));
button_exp4.addActionListener(this);
button_exp5=new JButton("背包问题");
button_exp5.setFont(new Font("黑体",Font.BOLD,30));
button_exp5.addActionListener(this);
button_exp6=new JButton("最优装载");
button_exp6.setFont(new Font("黑体",Font.BOLD,30));
button_exp6.addActionListener(this);
button_exp7=new JButton("多段图");
button_exp7.setFont(new Font("黑体",Font.BOLD,30));
button_exp7.addActionListener(this);
button_exp8=new JButton("0-1背包问题");
button_exp8.setFont(new Font("黑体",Font.BOLD,30));
button_exp8.addActionListener(this);
button_exp9=new JButton("资源分配问题");
button_exp9.setFont(new Font("黑体",Font.BOLD,30));
button_exp9.addActionListener(this);
button_exp10=new JButton("子集和数问题");
button_exp10.setFont(new Font("黑体",Font.BOLD,30));
button_exp10.addActionListener(this);
2009-11-25
算法(图形学)多边形扫描转换算法
class ChainNode {//node class
Object node;
ChainNode next=null;
ChainNode(){}
ChainNode(Object element)
{
this.node=element;
}
ChainNode(Object element,ChainNode next)
{
this.node=element;
this.next=next;
}
}
2009-11-02
图形学 Bezier曲线的递推(de Casteljau)算法
private double t=0.0,ts=0.0;
private double px[][]=new double[999][999];
private double py[][]=new double[999][999];
private int i=0,j=0,k,x,y,sum=0;
private Button button_Caste,button_Clear,button_OK;
private int flag1=0,flag2=0,flag3=0;
private Dialog dialog;
private Label label_dialog,label;
private TextField text;
2009-11-02
遗传算法程序模拟代码
protected int N=999;//种群大小
protected int x[]=new int[N] ;//父代x表现型
protected int y[]=new int[N];//父代y表现型
protected int code_x[][]=new int[N][8];//父代x基因型
protected int code_y[][]=new int[N][8];//父代y基因型
protected double suff[]=new double[N];//个体适应度
protected double ave_suff[]=new double[N];//物种平均适应度
protected double select[]=new double[N];//选择概率
protected double odds[]=new double[N];//积累概率
protected int sele_x[][]=new int[N][8];//遗传x
protected int sele_y[][]=new int[N][8];//遗传y
protected int loca_x[]=new int[N];//x杂交位
protected int loca_y[]=new int[N];//y杂交位
protected int child_x[][]=new int[N][8];//杂交变异后x子代基因型
protected int child_y[][]=new int[N][8];//杂交变异后y子代基因型
protected int pro_x[]=new int[N];//x子代表现型
protected int pro_y[]=new int[N];//y子代表现型
protected int valu[]=new int[N];//子代函数值
protected int rate=1;//变异位数
protected int temp=0,flag=0,place,sum=0;//中间变量
protected double sum_suff=0.0,r;//中间变量
2009-11-02
JSP教程JSP学习笔记
一个实用的JSP学习文档,适合初学者学习JSP的基本框架和相关的语法结构。文档中的例子很实用,适合读者来亲自测试JSP的代码,包括其他的一些功能设置和服务器的配置。说得很详细!推荐一下!
2009-11-02
算法分析与设计课件(华中科大出版)
算法复杂性是算法运行所需要的计算机资源的量,需要时间资源的量称为时间复杂性,需要的空间资源的量称为空间复杂性。这个量应该只依赖于算法要解的问题的规模、算法的输入和算法本身的函数。如果分别用N、I和A表示算法要解问题的规模、算法的输入和算法本身,而且用C表示复杂性,那么,应该有C=F(N,I,A)。一般把时间复杂性和空间复杂性分开,并分别用T和S来表示,则有: T=T(N,I)和S=S(N,I) 。
2009-11-02
VMware虚拟网络连接
介绍了VMware虚拟网络的分类,包括NAT ,BRIDGE,LOCALHOST局域网络的连接方式和各自的特点。VMware可以虚拟多个操作系统,建立一个虚拟的局域网,同时可以实现主机虚拟机,同域虚拟机主机等之间的通信。
2009-11-02
华为新员工技术培训材料
华为新人必读
Function: // 函数名称
Description: // 函数功能、性能等的描述
Calls: // 被本函数调用的函数清单
Called By: // 调用本函数的函数清单
Table Accessed: // 被访问的表(此项仅对于牵扯到数据库操作的程序)
Table Updated: // 被修改的表(此项仅对于牵扯到数据库操作的程序)
Input: // 输入参数说明,包括每个参数的作
// 用、取值说明及参数间关系。
Output: // 对输出参数的说明。
Return: // 函数返回值的说明
Others: // 其它说明
2009-10-27
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人