本算法描述了经典的和声搜索算法,以C语言实现,代码简单易懂,欢迎大家讨论交流,谢谢!!!和声搜索(Harmony Search, HS)算法是2001年Geem Z W 等人提出的一种新颖的智能优化算法。类似于遗传算法对生物进化的模仿、模拟退火算法对物理退火的模拟以及粒子群优化算法对鸟群的模仿等,和声算法模拟了音乐演奏的原理。
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001179s ]
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.081254s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.001249s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.010965s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.020762s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.010752s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.001246s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.011967s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.025030s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001203s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 331081 [ RunTime:0.229920s ]