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

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

于 2023-05-25 发布 文件大小:1.42 kB
0 210
下载积分: 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 个回复

  • 参加运动会有n个学校,学校编号为1……n。比赛分成m个男子,和w个女子编号为男子1……m,女子m+1……m+w。不同的取前五名或前三名积分;取...
    参加运动会有n个学校,学校编号为1……n。比赛分成m个男子项目,和w个女子项目。项目编号为男子1……m,女子m+1……m+w。不同的项目取前五名或前三名积分;取前五名的积分分别为:7、5、3、2、1,前三名的积分分别为:5、3、2;哪些取前五名或前三名由学生自己设定。(m
    2022-03-20 21:45:50下载
    积分:1
  • 这个是有关于随即信号的文章,里面具体介绍了这个信号的概念,应用等...
    这个是有关于随即信号的文章,里面具体介绍了这个信号的概念,应用等-this is a signal immediately on the articles, which introduced the specific signal to the concept and application
    2022-01-31 13:42:14下载
    积分:1
  • RFID读写例程
    提供了RFID的开发源码,用VC编的,展示RFID卡如何加密,如何自毁。串口通讯支持RS-232(RS232),RS-485(RS485),波特率可选,RFID的天线可选,读卡频率可调。提供了控制RFID读卡功率的方法,功率从0至29可调,距离最大10米以上,该源码可用于交通、物流、运输、仓库管理、比条码技术强大。用于毕业论文答辩中,可以演示,程序看懂后,就对RFID整个工作原理较为了解。支持ISO18000和EPC_GEN2等类型的RFID卡。
    2022-05-08 06:14:53下载
    积分:1
  • 一个完整经典的拼图游戏。(随书光盘上的)
    一个完整经典的拼图游戏。(随书光盘上的) -a complete classic pieces of the jigsaw. (On the CD with the book)
    2022-03-25 23:30:18下载
    积分:1
  • 计算机操作系统实验――动态分区分配方式的模拟:采用首次适应算法和最佳适应算法。...
    计算机操作系统实验――动态分区分配方式的模拟:采用首次适应算法和最佳适应算法。-Computer Operating System Experiment- Simulation of dynamic partitioning distribution: The first-fit algorithm and the best-fit algorithm.
    2022-11-14 05:05:03下载
    积分:1
  • 约瑟夫环 1. 本演示程序利用一循环链表,每个结点为一人,类似将人按顺时针方向围坐一圈,每个结点包括,号码,密码.号码是作为排的顺序.密码用来作为下一次报数...
    约瑟夫环 1. 本演示程序利用一循环链表,每个结点为一人,类似将人按顺时针方向围坐一圈,每个结点包括,号码,密码.号码是作为排的顺序.密码用来作为下一次报数的数字.当走到结尾时,再下个结点便循环回去,依此类推. 2. 演示程序以用户与计算机的对话方式执行,用户输入相应的数据,输出结果显示在其后。,即总结点数,和密码. 3. 程序执行的命令包括:1)创建链表 2)寻找结点 3)删除结点 4. 测试数据测试数据:m初始值20,n=7,7个人密码依次为:3,1,7,2,4,8,4。首先m值为6,正确出列顺序为6,1,4,7,2,3,5。 -Josephus 1. The demonstration program using a chain cycle, each node to a person, similar to a clockwise direction by people sitting circle, and each node include numbers, Password. As the number is the sequence. used as a password the next few reported figures. When reached at the end, the next nodes will cycle back, and so forth. 2. Demonstration Program to computer users with implementation of the dialogue, the corresponding user input data and output results in later. , Summed up the quota, and password. 3. Procedures for the implementation of the order include : 1) Create List 2) Find node 3) delete nodes 4. test data test data : the initial value of 20 m, n = 7, 7 PIN followed : 3,1,7,2,4,8,4. M value fo
    2022-07-24 02:51:37下载
    积分:1
  • turbo c++ for windows
    turbo c++ for windows-c language study procedure
    2023-07-14 01:35:06下载
    积分:1
  • 数据结构与算法,,~~清华大学c语言版~~~~~ 很不错的哦!
    数据结构与算法,,~~清华大学c语言版~~~~~ 很不错的哦!-data structures and algorithms, Qinghua University, c ~ ~ language version titled very good oh!
    2022-07-03 05:56:18下载
    积分:1
  • 手机益智游戏
    手机益智游戏-贴方块,索爱K700版本,J2ME开发,160关,好玩-mobile puzzle games- posted cubes, Sony Ericsson K700 version of J2ME development, 160 customs and fun
    2022-07-08 17:23:44下载
    积分:1
  • Windows API
    a windows api it is very usefull to you welcome to my home page www.beihuazy.com to down more useful information
    2022-03-26 18:41:01下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载