-
设Internet上有N个站点,通常从一个站点发送消息给其他N-1个站点,需依次发送N-1次。
这样从一个站点发布消息传遍N个站点时,可能要较长时间。...
设Internet上有N个站点,通常从一个站点发送消息给其他N-1个站点,需依次发送N-1次。
这样从一个站点发布消息传遍N个站点时,可能要较长时间。
设从每一个站点都可以向其他N-1个站点同时发送消息.
当一个站点发布消息给若干个站点后, 设为k个, 已获得消息的这1+k个站点就可以同时发布消息给另外若干个站点, 设为t个, 此后就有 1+k+t 个站点可以同时发布消息,这种发布消息方法应该会缩短消息传遍N个站点的时间。
请您编一个程序, 编程求出从第一个站点开始发布消息传遍N个站点的最短时间。
- 2022-01-27 09:55:19下载
- 积分:1
-
把C写的源程序转换为Delphi源程序
把C写的源程序转换为Delphi源程序-C was converted to the source Delphi source
- 2023-01-28 10:40:04下载
- 积分:1
-
手机通讯录管理系统
查找 删除 插入 浏览
手机通讯录管理系统
查找 删除 插入 浏览-phone
- 2022-03-29 16:16:55下载
- 积分:1
-
u_reg H”。
u_reg.h"
void Delay_MS(unsigned int ms)
void main()
{
asm(" STM #0000h,CLKMD ")
while(*CLKMD & 0x01 )
asm(" STM #40C7h,CLKMD ") //设置CPU运行频率=100M
/* 40C7h:5*clkin =100M
30c7h:4*clkin =80M
20c7h:3*clkin =60M
10C7h:2*clkin =40M
*/
asm(" stm #4240h, SWWSR ")
//2 wait except for on-chip program 1
asm(" stm #00a0h, PMST ") //MP/MC = 0, IPTR = 001,ovly=0
asm(" stm #0802h, BSCR ")
asm(" STM #0h,IMR ")
while(1)
{
Delay_MS(500)
asm(" RSBX XF ")
Delay_MS(500)
asm(" SSBX XF ")
}
-sdqwd
- 2022-02-04 22:56:44下载
- 积分:1
-
Some of you may have already come to realize I have previously written and relea...
Some of you may have already come to realize I have previously written and released a similar control via CodeProject. Even though the last control was written using C++ along with MFC, some readers may wonder why I would recreate the same control without branching out into uncharted territory. But the fact of the matter is: I am indeed branching out, and this isn t simply a recreation. I ve never ventured into C# before. So rather than jump the gun and start out with an ambitious project that is nothing but of a stranger to me, I have decided to stick with something I am both familiar and comfortable with: porting my C2DPushGraph control to C#. After porting the control and discovering C# wasn t much different than C++ in ideology, I quickly shifted my focus to improving the feature set and overall design of the control, all while conforming to general C# standards and ethics. -Some of you may have already come to realize I have previously written and released a similar control via Co
- 2022-02-25 07:04:04下载
- 积分:1
-
C++、MFC源代码parser_src
C++、MFC源代码parser_src-C, MFC source code parser_src
- 2022-06-28 04:44:33下载
- 积分:1
-
鼠标定位器
本程序由vc2012基于win32框架编写,基本原理是设计定时器按时刷新界面显示鼠标位置及所指窗口信息。
- 2023-09-05 01:05:02下载
- 积分:1
-
MP4 to AVI 转码工具
MP4 to AVI 转码工具-tool of MP4 code to AVI code
- 2022-05-21 23:16:39下载
- 积分:1
-
一部很好的c++学习视频,讲得非常详细,透彻!适合c++初学者使用,学习!...
一部很好的c++学习视频,讲得非常详细,透彻!适合c++初学者使用,学习!
-A very good c++ Learning video, was very detailed and thorough! Suitable for c++ Beginners use to learn!
- 2022-12-14 05:35:10下载
- 积分:1
-
动态程序框架例子,一个主程序,将动态库中的界面调到主程序中,有多少个动态库由主程序自动识别。相当于插件功能:)...
动态程序框架例子,一个主程序,将动态库中的界面调到主程序中,有多少个动态库由主程序自动识别。相当于插件功能:)-dynamic procedural framework example, a main program, the dynamic repository transferred to the main program interface, the number of DLL by the main program automatic identification. The equivalent plug-in function :)
- 2022-02-03 06:45:50下载
- 积分:1