% [BestPop,Trace]=fmaxga(FUN,LB,UB,eranum,popsize,pcross,pmutation) % Finds a maximum of a function of several variables. % fmaxga solves problems of the form: % max F(X) subj...
%CHECKBOUNDS Move the initial point within the (valid) bounds. % [X,LB,UB,X,FLAG] = CHECKBOUNDS(X0,LB,UB,nvars) % checks that the upper and lower % bounds are valid (LB <= UB)...
求集合运算AUB 利用两个线性表la和lb分别存放集合A和B的成员,依次取出lb中的每个元素,按其值查找线性表la,若la中不存在该元素,则将它插入到la中去,最后线性表la就存放了集合AUB的元素.
用VC。NET2005实现优秀的最近邻搜索算法LB-TREE的模拟和图形显示。具有建立优良数据结构和搜索功能
#include"c1.h" typedef int ElemType #include"c2-2.h" #include"bo2-4.cpp" void MergeList_CL(LinkList &La,LinkList Lb) { LinkList p=Lb->next Lb->next=La->next La->next=p->next f...