搜索资源列表
复件 轮渡问题
- 1. 汽车轮渡口,过江渡船每次能载10辆车过江,过江车辆分为客车类和货车类,上渡船有如下规定:同类车先到先上船,客车先于货车上渡船,且每上4辆客车,才允许上一辆货车。若等待客车不足4辆,则从货车代替,若无货车等待允许客车上船。试写一个算法模拟渡口管理。 算法设计: 1客车和货车均建立一个链式队列,初始均为空。以后来一辆车不是货车就是客车,因此可以说整个程序的事件驱动event就是这两个,客车表示1,货车表示0. 2轮船还没有到达时客车和货车均按次序排在
ferry
- 该算法模拟渡口管理。过江渡船每次能载10辆车过江,过江车辆分为客车类和货车类,上渡船有如下规定:同类车先到先上船,客车先于货车上渡船,且每上4辆客车,才允许上一辆货车。若等待客车不足4辆,则从货车代替,若无货车等待允许客车上船。-the algorithm simulation ferry management. Jiang Ferry each can carry 10 cars crossing the river, crossing the river into passenger veh
ferry
- 人工智能当中经典的传教士与野人渡河问题,C++实现
lunduguanli
- 数据结构:轮渡管理-data structure : the ferry management
code
- 利用C解决传教士与野人问题。有N个传教士和N个野人来到河边准备渡河,河岸有一条船,每次之多可供k个人乘渡。传教士为了安全起见,任何时刻,河两岸以及船上的野人数目总是不能超过传教士的数目(传教士数目为0除外)。求解一个可以令传教士和野人安全从左岸全部摆渡到右岸的过程。-Missionaries and savages in C to solve the problem. There are N and N Savage missionaries came to the river ready to
3377
- Ferry lanes 计算在河的两岸运送包裹的最优路径 -Ferry lanes in the river cross-strait transportation of parcels of optimal path
b
- 【问题描述】: 有一个渡口,每条渡轮一次能装载10辆汽车过江,过江车辆分为客车和货车两类,上渡轮有如下规定: ⑴同类汽车先到先上船; ⑵客车先于货车上船; ⑶每上4辆客车才允许上一辆货车,但若等待的客车不足4辆则用货车填补,反过来,若没有货车等待则用客车填补; ⑷装满10辆后则自动开船,当等待时间较长时车辆不足10辆也应人为控制发船。 【实现提示】: 此题可建立和使用两个链式队列,一个为客车队列,另一个为货车队列,到渡口需过江的汽车分别进入到相应队列中。当渡口有渡轮
car_cross_the_river
- 客车和货车渡船问题:过10俩汽车才能够过4俩货车,模拟整个轮渡过程-Passenger and freight ferry problems: over 10, two cars had 4 two trucks to be able to simulate the process of the ferry
ferry
- 野人与传教士(渡河)问题,输入参数n和k,从文件中读入,答案输出到文件。-Savage and missionaries (crossing) problem, the input parameters n and k, read from the file, the answer is output to a file.
xiao_r_l
- 螺旋锥齿轮小轮右旋左侧齿面数控加工关键点计算,包括对刀点、回转工作台旋转角度等-Spiral bevel gears Ferry right hand the left side of the tooth surface CNC machining critical point calculations, including the knife point , the rotary table rotation angle
maze_couples_ferry
- 数据结构中关于队列、堆栈、搜索的迷宫问题,couples问题和轮渡问题-Data structure on the queue, stack, search maze Couples problem and ferry problem
sim_dukou
- 渡口模型,系统模拟仿真,排队论,任意输入船道数和模拟次数,输出平均车辆数和各车辆类型数量-Ferry model, system simulation, queuing theory, any input channel number and the number of simulations ship, the output of the average number of vehicles and the number of vehicle types
work
- 采用蒙特卡洛打靶试验解决渡口问题,是遵循”先到先服务”的随机排队问题。-The Monte Carlo simulation test to solve the problem is the ferry, stochastic queuing problems follow the "first come first serve".