怎样计算朋友的敌人敌人的敌人 etc


所有跟贴·加跟贴·新语丝读书论坛

送交者: HunHunSheng 于 2008-11-04, 11:23:36:

回答: Amsel你可不可以整一个XYS ID的冤家对头联络图-这样新来的看得比较明白 由 meiyou 于 2008-11-04, 11:16:56:

怎样计算
(1)朋友的敌人
(2)敌人的敌人
(3)敌人的敌人的朋友
(4)敌人的朋友的敌人的朋友的敌人
etc?

Is this aglgoritnm works. Along the link, counts nodes of enemies, then number is odd, then the fianl node is the enemy, if it is even, then itis a friend




所有跟贴:


加跟贴

笔名: 密码: 注册笔名请按这里

标题:

内容: (BBCode使用说明