代码搜索:PATH
找到约 10,000 项符合「PATH」的源代码
代码结果 10,000
www.eeworm.com/read/433343/7940111
m select.m
function path=Select(path,FP)
%轮盘赌选择
[row,col]=size(path);
roulette=cumsum(FP);
for i=1:row
tempP=rand(1);
for j=1:length(roulette)
if tempP
www.eeworm.com/read/433343/7940118
m mutationreverse.m
function path=MutationReverse(path,Pm)
%逆转变异
[row,col]=size(path);
childpath=path;
for i=1:row
point=randperm(col)-1;
point1=min(point(1),point(2));
point2=max(point(1),point(2));
www.eeworm.com/read/433343/7940156
asv fitness.asv
function FP=Fitness(path,TSPMatrix)
%计算适应度
[row,col]=size(path);
for i=1:row
pathlong(i)=0;
for j=1:(col-1)
pathlong(i)=pathlong(i)+TSPMatrix(path(i,j),path(i,j+1));
end
www.eeworm.com/read/433343/7940160
m fitness.m
function FP=Fitness(path,TSPMatrix)
%计算适应度
[row,col]=size(path);
for i=1:row
pathlong(i)=0;
for j=1:(col-1)
pathlong(i)=pathlong(i)+TSPMatrix(path(i,j),path(i,j+1));
end
www.eeworm.com/read/198320/7940297
c 习题4-求最短路径.c
#include "datastru.h"
#include
#include
#define MAX 10000
MGRAPH create_mgraph(){
/*建立有向图的邻接矩阵结构*/
int i, j, k, h;
MGRAPH mg;
mg.kind = 3;
printf("\n\n输入顶点数和边数
www.eeworm.com/read/298747/7940678
c to.c
/*$TITLE=Command to jump 'TO' a specified project*/
/*
*********************************************************************************************************
*
www.eeworm.com/read/298539/7951753
cpp p284.cpp
#include "iostream.h"
#include "assert.h"
const int NumVertices = 6; //图中最大顶点个数
const int MAXINT=32767;
class Graph { //图的类定义
private:
int n;
int Edge[NumVertice
www.eeworm.com/read/298376/7964215
prj project.prj
path=D:\svmdata1
num=15
matrix=matrix.txt
catalog=class.txt
train=train
www.eeworm.com/read/197752/7971859
c restrict.c
/****************************************************************************
Copyright (c) 1999,2000 WU-FTPD Development Group.
All rights reserved.
Portions Copyright (c) 1980, 1985,
www.eeworm.com/read/297965/7983254
c fselect.c
/*----------------------------------------------------------------------
File : fselect.c
Contents: file selector box with Athena widgets
Author : Christian Borgelt
History : 28.10.1997 fi