本算法描述了经典的和声搜索算法,以C语言实现,代码简单易懂,欢迎大家讨论交流,谢谢!!!和声搜索(Harmony Search, HS)算法是2001年Geem Z W 等人提出的一种新颖的智能优化算法。类似于遗传算法对生物进化的模仿、模拟退火算法对物理退火的模拟以及粒子群优化算法对鸟群的模仿等,和声算法模拟了音乐演奏的原理。
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001059s ]
SELECT `a`.`aid`,`a`.`title`,`a`.`create_time`,`m`.`username` FROM `jrk_downrecords` `a` INNER JOIN `jrk_member` `m` ON `a`.`uid`=`m`.`id` WHERE `a`.`status` = 1 GROUP BY `a`.`aid` ORDER BY `a`.`create_time` DESC LIMIT 10 [ RunTime:0.070712s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.000986s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001099s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.000886s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003138s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000776s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003600s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.049711s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.027659s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 331081 [ RunTime:0.022643s ]