代码搜索:Best 有哪些应用?
找到约 10,000 项符合「Best 有哪些应用?」的源代码
代码结果 10,000
www.eeworm.com/read/464590/7065952
c acotsp.c
/*
AAAA CCCC OOOO TTTTTT SSSSS PPPPP
AA AA CC OO OO TT SS PP PP
AAAAAA CC OO OO TT SSSS PPPPP
AA AA CC OO OO TT S
www.eeworm.com/read/454069/7401715
muse p11.muse
#title P11: 背包问题的搜索解法
《背包问题九讲》的本意是将背包问题作为动态规划问题中的一类进行讲解。但鉴于的确有一些背包问题只能用搜索来解,所以这里也对用搜索解背包问题做简单介绍。大部分以01背包为例,其它的应该可以触类旁通。
* 简单的深搜
对于01背包问题,简单的深搜的复杂度是O(2^N)。就是枚举出所有2^N种将物品放入背包的方案,然后找最优解。基本框架如下:
...
www.eeworm.com/read/449374/7507684
c display.c
/*------------------------------------------------------------------- DISPLAY_DISTANCES */
void display_distances(struct swarm sw)
{
/* Display all distances between particles of a swarm
*/
int i
www.eeworm.com/read/449374/7507689
c swarm_tools.c
/*------------------------------------------------------------------- INIT_PARTICLE */
struct particle init_particle(struct graph G)
{
int i;
struct particle init;
init.rank=-1;
init.x.s
www.eeworm.com/read/448932/7521728
cpp 4581674_wa.cpp
#include
#include
using namespace std;
int H;
int N;
int T;
int fi[27];
int di[27];
int ti[27];
int fish[27];
int t[27];
int best[27];
int best_sum;
int output_number
www.eeworm.com/read/448932/7521729
cpp 4581671_wa.cpp
#include
#include
using namespace std;
int H;
int N;
int T;
int fi[27];
int di[27];
int ti[27];
int fish[27];
int t[27];
int best[27];
int best_sum;
int output_number
www.eeworm.com/read/448932/7521730
cpp 4581684_wa.cpp
#include
#include
using namespace std;
int H;
int N;
int T;
int fi[27];
int di[27];
int ti[27];
int fish[27];
int t[27];
int best[27];
int best_sum;
int output_number
www.eeworm.com/read/448932/7521731
cpp 4581662_wa.cpp
#include
#include
using namespace std;
int H;
int N;
int T;
int fi[27];
int di[27];
int ti[27];
int fish[27];
int t[27];
int best[27];
int best_sum;
int output_number
www.eeworm.com/read/442827/7644286
m outputdata_2dim.m
%实时输出结果
global flag1;
%输出当前种群中粒子位置
subplot(1,2,1); %子图1
for i=1:popsize %画粒子群中所有粒子(用蓝色星号标记)
plot(pop(i,1),pop(i,2),'b*');
hold on;
end
plot(gbest_x1,gbest_x2,'r.','markersize',15);a
www.eeworm.com/read/436446/7769705
m jcbb.m
%-------------------------------------------------------
function H = JCBB (prediction, observations, compatibility)
%
%-------------------------------------------------------
global Best;
globa