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

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

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

代码说明:

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

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

发表评论

0 个回复

  • funambol window mobile client source code, is a relatively good reference progra...
    funambol window mobile客户端源代码,是一个比较好的参考方案-funambol window mobile client source code, is a relatively good reference program
    2022-02-14 18:59:31下载
    积分:1
  • 2022-04-28 10:51:06下载
    积分:1
  • 动态链接库程序的编写。静态库与动态库的区别,以及调用程序在链接静态库和动态库时的区别。如何利用工具查看动态链接库输出的函数,Depends工具的使用,C++编译
    动态链接库程序的编写。静态库与动态库的区别,以及调用程序在链接静态库和动态库时的区别。如何利用工具查看动态链接库输出的函数,Depends工具的使用,C++编译器名字改编技术对动态链接库输出函数的影响,extern "C"的用法,利用模块定义文件来解决C++名字改编的问题。用typedef定义指向函数的指针类型,如何获得动态连接库里的函数的指针。-Dynamic link library preparation process. Static library and dynamic library distinction, and call procedures in the static library and dynamic link library when the distinction. How to use tool to view a dynamic link library function of the output, Depends tools, C++ Compiler technology to adapt the name of a dynamic link library function of the impact of the output, extern C usage, use module definition files to resolve the C++ Name adaptation problems. Typedef point to use the definition of function pointer type, how to obtain the dynamic link library function pointer.
    2022-03-24 10:37:39下载
    积分:1
  • 获取word每页缩略图
     private void ConvertToImage(string wordInputPath, int resolution)         {             try             {                 Aspose.Words.Document doc = new Aspose.Words.Document(wordInputPath);                 if (doc == null)                 {                     return;                 }               
    2022-07-13 14:38:36下载
    积分:1
  • c语言实现WP8磁贴动态翻转功能
    到现在,用了大概有大半年时间了,一直很好奇WP8中磁贴动态翻转的实现算法——使用过WP8手机的朋友都知道,这个功能很有3D的效果,看起来感觉很不错 但是,它到底是如何实现的呢?
    2022-02-11 20:12:17下载
    积分:1
  • MRV弹出日历程序
    资源描述 详细介绍: 非常好的日历程序,想必您一定碰到过这样的情况:提供这样一种服务,用户输入某天的日期,然后弹出这个月的日历供你参考。怎么样,想要这个功能吗?那就下载它吧,不过你得懂组件技术,它可是采用组件做的呀! 
    2022-06-26 22:30:36下载
    积分:1
  • 星号三角形的设计
    星号三角形的设计-asterisk triangular design
    2022-01-21 05:07:16下载
    积分:1
  • 你的银行贷款的计算
    你的银行贷款的计算小软件 计算按月...好的软文来准备你的面试和管理您的帐户
    2022-07-25 08:48:02下载
    积分:1
  • Complete <<times Cheng master>> source code,, copy the compiler can...
    完整的源代码,,copy直接编译就可以运行(验证过)-Complete source code,, copy the compiler can be run directly (verified)
    2022-05-10 22:41:35下载
    积分:1
  • c语言编的运动会分数统计系统,很多数据结构课程设计里都会与道德一些题,注释很多,容易看懂。...
    c语言编的运动会分数统计系统,很多数据结构课程设计里都会与道德一些题,注释很多,容易看懂。-c language made the Games Score statistical systems, many data structures in curriculum design and morality will be a number of questions, comments, a lot easier to understand.
    2022-07-22 06:00:37下载
    积分:1
  • 696518资源总数
  • 106155会员总数
  • 8今日下载