您现在的位置是:虫虫源码 > 其他 >
邻接矩阵类的根是A d j a c e n c y W D i g r a p h
邻接矩阵类的根是A d j a c e n c y W D i g r a p h
资源大小:2 K
上传时间:2022-07-24
下载次数:0次
浏览次数:1次
资源积分:1积分
标 签:
资 源 简 介
邻接矩阵类的根是A d j a c e n c y W D i g r a p h,因此从这个类开始。程序1 2 - 1给出了类的描述。程
序中,先用程序1 - 1 3中函数Make2DArray 为二组数组a 分配空间,然后对数组a 初始化,以描述
一个n 顶点、没有边的图的邻接矩阵,其复杂性为( n2 )。该代码没有捕获可能由M a k e 2 D A r r a y
引发的异常。在析构函数中调用了程序1 - 1 4中的二维数组释放函数D e l e t e 2 D
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001486s ]
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.088583s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.001005s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001158s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.000965s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.003193s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000710s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.004021s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.019154s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001259s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 418991 [ RunTime:0.014593s ]