登录
首页 » 其他项目 » 我们将用程序来模拟传统的龟兔赛跑问题。我们将采用随机数生成的方法开发这一问题的仿真程序。 再比赛中共设了70个点,每个点代表比赛跑道可能的一个位置。乌龟和兔从第...

我们将用程序来模拟传统的龟兔赛跑问题。我们将采用随机数生成的方法开发这一问题的仿真程序。 再比赛中共设了70个点,每个点代表比赛跑道可能的一个位置。乌龟和兔从第...

于 2023-05-25 发布 文件大小:1.42 kB
0 208
下载积分: 2 下载次数: 1

代码说明:

我们将用程序来模拟传统的龟兔赛跑问题。我们将采用随机数生成的方法开发这一问题的仿真程序。 再比赛中共设了70个点,每个点代表比赛跑道可能的一个位置。乌龟和兔从第一个点出发,终点是在第70个点上。 时钟按秒来数计。随着时钟的转动,程序能够根据下述规则来调节乌龟和兔子的位置。动物 跑动类型 占用时间 跑动量乌龟 快走 50% 向右3个点 后滑 20% 向左6个点 慢走 30% 向右1个点兔子 睡觉 20% 不动 大后滑 20% 向右9 个点 快走 10% 向左12个点 小步跳 30% 向右1个点 慢后滑 20% 向左两个点 -procedures we will use to simulate the traditional hand problems. We will adopt the random number generator of the development of the simulation program. Another winner set up 70 points, each point represents the runway competition of a possible location. The turtle and a rabbit from the starting point and finish in the first 70 points. According to the clock to a few seconds of dollars. As the clock turned to procedures under the following rules to regulate turtle and the rabbit"s location. Running types of animals occupying volume running time 50% of turtles to leave three points right after sliding 20% six points left walking 30% a point right rabbits sleep 20% Fixed After a 20% slide right nine points to leave 10% left

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

发表评论

0 个回复

  • 这个脚本的的是作为一个单独的脚本,可以很容易地集成…
    This script was designed as a stand alone script which can be easily intergrate into any existing website as it is,but if you want to intergrate it into a site which uses a content management format, then some alterations will have to be done for it to work properly. Remember this is a project and I am constantly working to improve it, so I can t guarantee that it will work for everyones needs, but dammmmd close. -This script was designed as a stand alone script which can be easily intergrate into any existing website as it is, but if you want to intergrate it into a site which uses a content management format, then some alterations will have to be done forit to work properly. Remember this is a project and I am constantly working to improve it, so I can t guarantee thatit will work for everyones needs, but dammmmd close.
    2023-06-13 06:40:03下载
    积分:1
  • 最大匹配分词系统,分词中最见大的,效果也是很好的系统。...
    最大匹配分词系统,分词中最见大的,效果也是很好的系统。-maximum matching segmentation
    2022-06-18 21:09:53下载
    积分:1
  • serial debugging process can be used to debug all their serial Kazakhstan
    串口调试程序大家可以用来调试自己的串口哈 -serial debugging process can be used to debug all their serial Kazakhstan
    2023-08-06 14:20:03下载
    积分:1
  • NAT打洞,原理和源代码 P2P之UDP穿透NAT的原理与实现(附源代码)...
    NAT打洞,原理和源代码 P2P之UDP穿透NAT的原理与实现(附源代码)-NAT burrows, and the principle and source code P2P UDP penetrate NAT"s Theory and Implementation (source code)
    2022-10-20 12:55:03下载
    积分:1
  • 该程序描写c++中变量的所占字节数,适合于初级人员学习
    该程序描写c++中变量的所占字节数,适合于初级人员学习-The program description c++ in the proportion of variable number of bytes suitable for junior officers to learn
    2022-02-05 07:07:47下载
    积分:1
  • 这是一个RPG游戏的源码,希望有兴趣的可以看看,或许有帮助...
    这是一个RPG游戏的源码,希望有兴趣的可以看看,或许有帮助-This is a RPG game source code, I hope interested can look at, perhaps have helped
    2022-07-10 02:46:21下载
    积分:1
  • 2023-03-10 06:00:03下载
    积分:1
  • 质心的凸包
    1.本程序获取一些点坐标作为输入。 输入的文件的格式: 第 1 行: 点数目 其他线路: x y 2.然后它计算凸格雷厄姆扫描算法。 3。 最后它计算的质心凸包使用下面的公式:
    2022-05-24 23:53:02下载
    积分:1
  • fonts tool for lcd 2007
    fonts tool for lcd 2007
    2023-04-09 07:45:03下载
    积分:1
  • 用罗盘模块3轴磁力计HMC5883L整合
    Arduino的草图与罗盘模块三轴磁力计HMC5883L整合。它能做什么:测量地球磁场在三个轴,具有1-2度的精度为每个轴,其可单独或一起使用的三维计算个别读数附近的磁源的措施,原强度(高斯)在三个方向上的3轴罗盘模块测量磁场 - 或轴,标记为X,Y和Z在其最简单的形式中,模块可以作为一个基本的罗盘找到地球磁北极。罗盘模块还可以感测附近的磁源,例如那些引起磁铁或电场的相对强度。作为传感器检测在三维磁性,它可以决定向这些源的相对距离和方向。
    2023-01-29 09:25:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载