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

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

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

代码说明:

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

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

发表评论

0 个回复

  • This book is Brian W. Kernighan and Rob Pike s important new book co
    本书是Brian W. Kernighan和Rob Pike合著的最新力作。本书从排错、测试、性能、可移植性、设计、界面、风格和记法等方面, 讨论了程序设计中实际的、又是非常深刻和具有广泛意义的思想、技术和方法,它的翻译出版将填补国内目前这方面书籍的空白。 本书值得每个梦想并努力使自己成为优秀程序员的人参考,值得每个计算机专业的学生和计算机工作者阅读,也可作为程序设计高级课程的教材或参考书。 -This book is Brian W. Kernighan and Rob Pike s important new book co-author. This book from the debugging, testing, performance, portability, design, interface, style and notation, etc., discussed the procedures for the design of practical, it is very deep and broad-sense ideas, techniques and methods, and its translated and published to fill the current gaps in this regard books. This book is worth every dream and strive to become good programmers reference, it is worth every computer students and computer workers to read and program design can also be used as advanced courses in materials or reference books.
    2022-03-23 03:21:50下载
    积分:1
  • RSS Subscribe to a realization of the functional process somewhat similar to sma...
    一个实现RSS订阅功能的小程序 有点类似于飞火流星-RSS Subscribe to a realization of the functional process somewhat similar to small ball
    2023-04-04 13:35:03下载
    积分:1
  • 快速傅里叶变换(FFT)算法C++实现代码
    快速傅里叶变换(FFT)算法C++实现代码 -Fast Fourier Transform (FFT) algorithms to achieve C code
    2023-07-25 14:50:03下载
    积分:1
  • ODBC 方式 C++ 操作EXCEL的源代码
    ODBC 方式 C++ 操作EXCEL的源代码-ODBC EXCEL
    2022-09-29 06:25:06下载
    积分:1
  • 媒体播放器源代码
    媒体播放器源代码-Media Player source code
    2022-03-15 21:07:24下载
    积分:1
  • interception windows news for the study.
    拦截windows消息,供大家学习.-interception windows news for the study.
    2022-01-29 02:39:11下载
    积分:1
  • 可以用于穿越火线游戏,一个小东西,很简单的东西
    可以用于穿越火线游戏,一个小东西,很简单的东西-D3D -perspective, can be used to cross the Line of Fire Games, a small thing, very simple things
    2022-07-11 10:30:30下载
    积分:1
  • 检查远端的链路的状态
    检查远端的链路的状态-distal check the state of the link
    2022-05-07 17:47:16下载
    积分:1
  • Presentation about Data Mining I mad for my SQL course at college. Written in...
    Presentation about Data Mining I mad for my SQL course at college. Written in hebrew.
    2022-02-14 18:32:07下载
    积分:1
  • 经典FDTD程序Taflove书随书光盘源代码
    经典FDTD程序Taflove书随书光盘源代码-Classic FDTD procedure Taflove Book CD-ROM with the book source code
    2022-02-24 13:13:48下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载