蚁群算法程序
Ø 出动m只蚂蚁,每只蚂蚁各随机选择一条路径,记为I=[1 2 3···m],长度记为long(I); Ø 计算出每条路径的信息素浓度,记为P(I)=...
Ø 出动m只蚂蚁,每只蚂蚁各随机选择一条路径,记为I=[1 2 3···m],长度记为long(I); Ø 计算出每条路径的信息素浓度,记为P(I)=...
#include <iostream> using namespace std; int main(){ int t; cin>>t; while(t--){ lo...
第一章关键字.................................................................................................
求a^b的后四位,a,b可为long long 型整数 ...
/* * _168ZHONGDUAN2.c * * Created: 2014/11/2 15:12:45 * Author: lenovo...
#include "STC90.h" #include < intrins.h > #define uchar unsigned char #define uint unsigned i...
// 学生管理.cpp : Defines the entry point for the application. // #include "stdafx.h" #include "resourc...
// 学生管理.cpp : Defines the entry point for the application. // #include "stdafx.h" #include "resourc...
/****************temic*********t5557***********************************/ #include &nb...
在本课中,我们要用一个按键来实现跑马灯的 10 级调速。这又会涉及到键的去抖的问 题。 本课的试验结果是,每按一次按键,跑马速度就降低一级,共 10 级。 这里我们又增加了...