登录
首页 » Windows开发 » 设Internet上有N个站点,通常从一个站点发送消息给其他N-1个站点,需依次发送N-1次。 这样从一个站点发布消息传遍N个站点时,可能要较长时间。...

设Internet上有N个站点,通常从一个站点发送消息给其他N-1个站点,需依次发送N-1次。 这样从一个站点发布消息传遍N个站点时,可能要较长时间。...

于 2022-01-27 发布 文件大小:5.80 kB
0 113
下载积分: 2 下载次数: 1

代码说明:

设Internet上有N个站点,通常从一个站点发送消息给其他N-1个站点,需依次发送N-1次。 这样从一个站点发布消息传遍N个站点时,可能要较长时间。 设从每一个站点都可以向其他N-1个站点同时发送消息. 当一个站点发布消息给若干个站点后, 设为k个, 已获得消息的这1+k个站点就可以同时发布消息给另外若干个站点, 设为t个, 此后就有 1+k+t 个站点可以同时发布消息,这种发布消息方法应该会缩短消息传遍N个站点的时间。 请您编一个程序, 编程求出从第一个站点开始发布消息传遍N个站点的最短时间。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论


0 个回复

  • 一个好用的增强型文件搜索工具,可以指定目录搜索,搜索…
    一个很好用的增强型文件搜索工具,可以指定搜索目录,搜索关键字(包含/排除)。支持二次(多次)搜索。 尤其适用于源代码查找、修改。-a good use of enhanced document search tools, can specify search directory, search keyword (inclusion/exclusion). Support II (times) search. Particularly applicable to the search for the source code, modify.
    2022-05-17 21:09:15下载
    积分:1
  • vb多线程,vb操作调用office,word,excel等.全部完整源代码!
    vb多线程,vb操作调用office,word,excel等.全部完整源代码!-vb multi-threaded, vb operation call office, word, excel, etc.. all the integrity of the source code!
    2023-03-02 22:15:03下载
    积分:1
  • 测试源码,驱动测试,windows mobile
    测试源码,驱动测试,windows mobile-code for test design for windows mobile
    2022-02-04 21:12:35下载
    积分:1
  • 计算RS分析的小程序,很好用。this program is used to calculateRS
    计算RS分析的小程序,很好用。this program is used to calculateRS-Calculation of RS analysis of small procedures, a very good use. this program is used to calculateRS
    2022-04-28 23:56:37下载
    积分:1
  • Think the contest score boards are wrong? Here s your chance to come up with the...
    Think the contest score boards are wrong? Here s your chance to come up with the right rankings. Contestants are ranked first by the number of problems solved (the more the better), then by decreasing amounts of penalty time. If two or more contestants are tied in both problems solved and penalty time, they are displayed in order of increasing team numbers. A problem is considered solved by a contestant if any of the submissions for that problem was judged correct. Penalty time is computed as the number of minutes it took for the first correct submission for a problem to be received plus 20 minutes for each incorrect submission received prior to the correct solution. Unsolved problems incur no time penalties.
    2023-03-01 06:25:03下载
    积分:1
  • 一个很简单的设备管理程序
    一个很简单的设备管理程序-a very simple device management procedures
    2022-01-25 19:47:55下载
    积分:1
  • 利用加速度计定位算法
    positioning algorithm using accelerometer
    2022-01-28 03:56:39下载
    积分:1
  • A simple vector operation class and header
    A simple vector operation class and header
    2022-06-27 13:42:40下载
    积分:1
  • 这本书很高
    这本书在高端技术(尤其是相关操作系统核心)中排名最高,很多人经常推荐这本书来填补这一空白。本书以操作系统的概念为基础,辅以实例验证。具有32位Windows编程经验的读卡器集。
    2022-02-28 11:11:26下载
    积分:1
  • 可测RSSI的源代码
    两块 Zigbee模块通信,分别下载到一个模块作发射,另外一个模块接收,接收模块通过串口在 PC 机上显示当前的误包率、RSSI 值和接收到数据包的个数。
    2022-06-15 01:43:05下载
    积分:1
  • 696518资源总数
  • 105460会员总数
  • 13今日下载