登录
首页 » 算法 » 离散数学 输出真值表实验

离散数学 输出真值表实验

于 2022-03-01 发布 文件大小:2.91 MB
0 328
下载积分: 2 下载次数: 1

代码说明:

本实验要求大家利用C/C++语言,实现任意输入公式的真值表计算。一般我们将公式中的命题变元放在真值表的左边,将公式的结果放在真值表的右边。命题变元可用数值变量表示,合适公式的表示及求真值表转化为逻辑运算结果;可用一维数表示合式公式中所出现的n个命题变元,同时它也是一个二进制加法器的模拟器,每当在这个模拟器中产生一个二进制数时,就相当于给各个命题变元产生了一组真值指派。算法逻辑如下: (1)将二进制加法模拟器赋初值0 (2)计算模拟器中所对应的一组真值指派下合式公式的真值。 (3)输出真值表中对应于模拟器所给出的一组真值指派及这组真值指派所对应的一行真值。 (4)产生下一个二进制数值,若该数值等于2n-1,则结束,否则转(2)。

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

发表评论

0 个回复

  • 《牛顿差值》
    计算方法《牛顿差值》-calculation method, "Newton margin"
    2022-02-07 00:30:34下载
    积分:1
  • 基于支持向量机的盲均衡,使用的输入信号是QPSK.
    基于支持向量机的盲均衡算法,使用的输入信号是QPSK.-Based on support vector machine blind equalization algorithm, the use of the input signal is QPSK.
    2023-05-15 15:15:03下载
    积分:1
  • 下相当的问题说明:2个可装2个八个玻璃…
    倒酒问题描述: 设有两个能装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.
    2023-06-15 16:35:03下载
    积分:1
  • DCT快速的C语言实现的64,
    DCT快速算法64位的C语言实现,乘法次数目前最少,可嵌入解码器使用-DCT the fast algorithm 64 C language realization, the multiplication number of times at present are least, may insert the decoding use
    2022-12-21 14:10:03下载
    积分:1
  • C++实现离散数学中对称矩阵的判断。6行6列的矩阵,闲来无事,用VC++写一个小程序,判断是否是配对矩阵,很有意思哦!...
    C++实现离散数学中对称矩阵的判断。6行6列的矩阵,闲来无事,用VC++写一个小程序,判断是否是配对矩阵,很有意思哦!-C++ realization of discrete mathematics in the symmetric matrix judgments. 6 row 6 of the matrix, nothing better, using VC++ to write a small program to determine whether the matching matrix, very interesting oh!
    2022-01-25 14:58:01下载
    积分:1
  • A*matlab仿真程序
    A*(A-Star)算法是一种静态路网中求解最短路最有有效的方法: 公式表示为: f(n)=g(n)+h(n), 其中f(n) 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2023-01-17 05:30:03下载
    积分:1
  • c语言耍,对于数学建模有用
    c语言耍法,对于数学建模有用-c language game, useful for mathematical modeling.
    2022-01-22 06:07:50下载
    积分:1
  • Java实现的快速自相关:提供交互界面,可读入外部数据文件...
    Java实现的快速自相关算法:提供交互界面,可读入外部数据文件-Java"s rapid auto-correlation algorithm : to provide interfaces to external data into readable document
    2022-04-28 19:59:53下载
    积分:1
  • Goertzel基本在每次采样后立即进行处理,在每个第N次采样进行一次音调检测。在采用FFT时,我们要对成块的采样进行处理,但这并不意味着必须按块来处理...
    Goertzel基本算法在每次采样后立即进行处理,在每个第N次采样进行一次音调检测。在采用FFT算法时,我们要对成块的采样进行处理,但这并不意味着必须按块来处理数据。数字处理的时间很短,因此如果每次采样都存在一次中断,那么这些数字处理完全可以在中断服务程序(ISR)内完成。或者,如果系统中存在采样缓存,那么可以持续采样,然后进行批处理。-Goertzel basic algorithms in each sample immediately after processing, in each of the first N sub-samples to conduct a tone detection. In the use of FFT algorithms, we would like to be processed into a block of samples, but this does not mean that must block processing the data. Digital processing time is very short, so if an interrupt for each sample are present, then the digital processing is fully able to interrupt service routine (ISR) to complete. Or, if the system exists in sample buffer, you can continue to sample, and then batch.
    2022-05-27 11:46:36下载
    积分:1
  • 缓冲区空间分析
    该文件代码是基于ARCGIS的二次开发,里面实现了缓冲区分析,前提是需要安装ARCGIS二次开发工具包,所以,需要使用的可以从这里下载,试用。c#该源码实现了GIS中点、线、面的缓冲区分析。有距离缓冲区、属性值缓冲区和分级缓冲区三种。
    2023-05-23 20:25:02下载
    积分:1
  • 696516资源总数
  • 106918会员总数
  • 4今日下载