登录
首页 » 算法 » 下相当的问题说明:2个可装2个八个玻璃…

下相当的问题说明:2个可装2个八个玻璃…

于 2023-06-15 发布 文件大小:9.08 kB
0 143
下载积分: 2 下载次数: 1

代码说明:

倒酒问题描述: 设有两个能装8两的酒杯(称为1号,2号)装满了酒, 和1个能装3两的空酒杯(称为3号), 问怎样用这3个酒杯向4个人 敬酒, 使得每个人都喝4两酒. 要求: 用程序计算出可行方案。 输入: 无 输出: 每一步决策.-down quite Problem description : two can be loaded with two of the eight glasses (known as 1, 2) filled with the wine, and one can hold three two empty glasses (known as the 3rd) and asked how to use it three to four glasses and toast the individual, so that each person maximum servings of both types 4 2 liquor. Request : procedures calculated options. Input : None output : each step of the decision-making.

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

发表评论

0 个回复

  • Hough变换的matlab代码
    Hough变换的matlab代码-Hough Transform Matlab code
    2022-01-25 18:18:59下载
    积分:1
  • 设计了矩阵类,该类实现了矩阵的数学运,包括矩阵乘除/求逆/求特征向量的!...
    设计了矩阵类,该类实现了矩阵的数学运算,包括矩阵乘除/求逆/求特征向量的!-Design a matrix type, such realization of the matrix arithmetic, including matrix multiplication and division/inversion/demand eigenvector!
    2022-03-17 23:19:38下载
    积分:1
  • 对数回归方程logarithmregress.cs方程模型y = * LN…
    对数回归方程 LogarithmRegress.cs 方程模型为 Y=a*LnX+b public override double[] buildFormula() 得到系数数组,存放顺序与模型系数相反,即该数组中系数的值依次是b,a。 public override double forecast(double x) 预测函数,根据模型得到预测结果。 public override double computeR2() 计算相关系数(决定系数),系数越接近1,数据越满足该模型。 -Logarithmic regression equation LogarithmRegress.cs equation model for Y = a* LnX+ Bpublic override double [] buildFormula () get coefficient array, the storage order and model coefficients contrary, that is, the array is followed by the value of coefficient b, a. public override double forecast (double x) prediction function, according to the results of model prediction. public override double computeR2 () calculated the correlation coefficient (determination coefficient), coefficient of the closer one, the data satisfy the model more.
    2022-08-31 23:15:03下载
    积分:1
  • 长整形相加的程序,客队任意长度的数据进行相加,很值得学习...
    长整形相加的程序,客队任意长度的数据进行相加,很值得学习-long plastic procedures combined scoring arbitrary length of the data together, is worth learning.
    2023-05-11 11:25:03下载
    积分:1
  • 是一本讲序_数据结构与综合。里面讲了很多经典的。值得一看。...
    是一本讲序_数据结构与算法综合。里面讲了很多经典的算法。值得一看。-Is a sequence stresses _ integrated data structure and algorithm. Which stresses a lot of the classic algorithms. Worth a visit.
    2022-01-25 22:47:01下载
    积分:1
  • Robot vacuum cleaners cover the whole source simulation algorithm, in the hope t...
    吸尘机器人全覆盖算法仿真源码,希望对大家有用-Robot vacuum cleaners cover the whole source simulation algorithm, in the hope that useful to everybody
    2022-02-02 05:11:16下载
    积分:1
  • 2013年电子设计大赛倒立摆
    应用背景设计并制作一 套简易 旋转倒立摆 及其控制装置 。旋转倒立摆 的结构如图 1所 示。 电动机 A固定在支架 B上, 通过转轴 F驱动旋转臂 驱动旋转臂 C旋转。摆杆 旋转。摆杆 E通过转 轴 D固定 在旋转臂 C的一端 ,当旋转臂 C在电动机 A驱动 下作往复旋转运动时, 带动摆杆 E在垂直于旋转臂 C的自由摆臂旋转。关键技术基本要求 基本要求 (1)摆杆 从处于自然下垂 处于自然下垂 处于自然下垂 状态 (摆角 0°)开始, 驱动 电机带驱动 电机带驱动 电机带旋转臂 旋转臂 作 往复旋转使摆杆动, 并尽快 使摆角 达到或超过 -60°~ +60 ~ +60 °; (2)从摆杆处于自然下垂 摆杆处于自然下垂 摆杆处于自然下垂 状态 开始, 尽快 增大摆杆的动幅度, 增大摆杆的动幅度, 增大摆杆的动幅度, 增大摆杆的动幅度, 直至 完成 圆周运动 ; (3)在摆杆 处于 自然下垂 自然下垂 状态下, 状态下, 外力拉 外力拉 起摆杆至 接近 165°位置 °位置 ,外力 撤除 同时 ,启动 控制 旋转臂 使摆杆保持倒立状态 时间 不少于 5s;期间 旋转臂的动角度不大于 90 °。 2.发挥部分 发挥部分 (1)从摆杆处于自然下垂 摆杆处于自然下垂 摆杆处于自然下垂 状态开始, 状态开始, 控制 旋转臂 旋转臂 作往复旋转 作往复旋转 运动, 尽快 使 摆杆 摆起 倒立, 保持倒立状态 时间 不少于 10 s; (2)在摆杆保持倒立 )在摆杆保持倒立 状态 下,施加干扰后 ,施加干扰后 摆杆 能继续保持 倒立 或 2s 内恢复 倒立 状态; (3)在摆杆 在摆杆 保持 倒立状态 倒立状态 的前提下 的前提下 ,旋转臂 作圆周运动 作圆周运动 ,并尽快 并尽快 使单方向 转过角度达到或超过 360 °; (4)其
    2022-03-07 11:30:41下载
    积分:1
  • 黑洞的,和二分,我写的,嗲给知道一些,自己感觉还可以。...
    黑洞的算法,和二分法,我写的,嗲给知道一些,自己感觉还可以。-Black hole of algorithms, and the dichotomy, I wrote some satay to know that they feel can also.
    2022-03-13 17:17:56下载
    积分:1
  • RM编码DSP代码
    应用背景里德-穆勒码(Reed-Muller,RM)是一类纠正多个差错的编码。这类码构造简单,结构特性丰富,可以简单地通过采用软判决或硬判决算法的好几种方式来进行译码。本论文采用的RM编译码算法是:长度为(n, k)的Reed-Muller 码的编码方法是将生成矩阵×knM与输入数据向量×1kx按矩阵相乘,对每个元素对2 取模,即可以得到编码数据向量。而译码算法则是采用大数逻辑译码。关键技术本程序用C语言实现RM的编码和译码
    2023-04-30 00:50:02下载
    积分:1
  • 北京合众大公司的dsp开发板例子程序(关于矩阵运)
    北京合众大公司的dsp开发板例子程序(关于矩阵运算)-Beijing UCO big companies example dsp development board (on the matrix)
    2022-03-05 17:11:47下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载