java 逻辑表达式 布尔

将布尔表达式转换为逻辑电路 (Converting Boolean Expression to Logic Circuit)

The simplest way to convert a Boolean expression into a logical circuit is to follow the reverse approach in which we start from the output of the Boolean expression and reach towards the input.

将布尔表达式转换为逻辑电路的最简单方法是遵循相反的方法,在这种方法中,我们从布尔表达式的输出开始,然后向输入过渡。

Example1: Realize the Boolean Expression BC + A + (A + C) using AOI logic.

示例1:使用AOI逻辑实现布尔表达式BC + A + (A + C) 。

Solution:

解:

To realize this using the AOI logic gates, we will use the reverse approach.

为了使用AOI逻辑门来实现这一点,我们将使用相反的方法。

Step 1:

第1步:

Our expression BC + A + (A+C) is the summation of three terms BC, A and, (A+C), thus a 3-input OR Gate must have been used to obtain the expression as given :0

我们的表达BC + A +(A + C)是三个方面BC,A和(A + C)的总和,从而一个3输入OR门必须被用于获得表达给出:0

Step 2:

第2步:

Now, BC and (A + C) both are inverted in nature, so they must have been inverted using a NOT Gate earlier. BC must have been obtained by inverting the input BC and (A + C) must have been obtained by inverting the input (A + C) both using the NOT Gate.

现在, BC和(A + C)本质上都是反向的,因此它们必须早先使用NOT门进行了反向。 BC必须已经通过反相输入BC获得,并且(A + C)必须已经通过使用NOT门将输入(A + C)反相获得。

Step 3:

第三步:

Moving further, in the reverse direction we see, BC must have been an output of 2-input AND Gate with inputs as B and C. Likewise, (A + C) must have been obtained as the output of 2-input OR gate with A and C as the inputs.

再往相反方向看,BC必须是输入为B和C的2输入与门的输出。同样,必须获得(A + C)作为2输入与门的输出,其中A和C作为输入。

So, Final Logic Diagram for above given Boolean expression can be drawn as,

因此,以上给出的布尔表达式的最终逻辑图可以绘制为:

将逻辑图转换为布尔表达式 (Converting Logic Diagrams into Boolean Expressions)

The easiest way to obtain the Boolean Expression from any logic circuit is to follow the forward propagation approach. In this, we start from the input side and move ahead until the output is reached. While moving from the input side to the output side, we continue evaluating the output of intermediate logic gates.

从任何逻辑电路获得布尔表达式的最简单方法是遵循正向传播方法。 在这种情况下,我们从输入端开始,然后继续前进,直到达到输出为止。 从输入端移至输出端时,我们继续评估中间逻辑门的输出。

Example 1: Find out the Boolean Expression for Logic Diagram given below and simplify the output in the minimal expression, also implement the simplified expression using the AOI logic.

示例1:找出下面给出的逻辑图布尔表达式,并以最小表达式简化输出,还使用AOI逻辑实现简化表达式。

Solution:

解:

Following the forward propagation approach, we see that gate G1 is a 2-input AND Gate having inputs A and B. So, output of G1 will be AB. Similarly, G2 is an OR Gate, so output of G2 will be (B+C). Also, G3 is an AND Gate and its output will be AB.

按照前向传播方法,我们看到门G1是2输入与门,其输入A和B。因此,G1的输出将为AB。 同样,G2是“或”门,因此G2的输出为(B + C)。 同样,G3是与门,其输出将为AB。

Now, gate G4 is a 2-input OR Gate which has one of its inputs as A and the other one is the output of gate G1, thus the output of gate G4 will be (A + AB). Similarly, output for gate G5 and G6 will be (B + BC) and (C + AB) respectively. Now, gate G7 is a 3-input AND Gate, therefore output (Y) of G7 will be equal to (A+AB). (B+BC). (C+AB)

现在,门G4是2输入或门,其输入之一为A,另一个为门G1的输出,因此门G4的输出为(A + AB)。 同样,门G5和G6的输出分别为(B + BC)和(C + AB)。 现在,门G7是3输入与门,因此G7的输出(Y)等于(A + AB)。 (B + BC)。 (C + AB)

Since, we have Y = (A+AB). (B+BC). (C+AB), now we have to minimize it.

因为,我们有Y =(A + AB)。 (B + BC)。 (C + AB) ,现在我们必须将其最小化。

Therefore, (A+AB). (B+BC). (C+AB)

= A (1 + B). B (1 +C). (C+AB)

= A. B. (C+AB)[Since, 1+B =1 and 1+C =1]

= AB (1 + C)

= AB

Therefore, Y=AB is the minimal expression. This can be implemented using a 2-input AND Gate having inputs A and B as:

因此, Y = AB是最小表达式 。 这可以使用具有输入A和B的2输入与门实现:

翻译自: https://www.includehelp.com/basics/realization-of-boolean-expressions-using-basic-logic-gates.aspx

java 逻辑表达式 布尔

java布尔表达式例子举例_java 逻辑表达式 布尔_使用基本逻辑门实现布尔表达式...相关推荐

  1. java 逻辑表达式 布尔_使用基本逻辑门实现布尔表达式

    java 逻辑表达式 布尔 将布尔表达式转换为逻辑电路 (Converting Boolean Expression to Logic Circuit) The simplest way to con ...

  2. java通讯录课程设计_java课程设计_通讯录_通讯簿.doc

    java课程设计_通讯录_通讯簿.doc 还剩 45页未读, 继续阅读 下载文档到电脑,马上远离加班熬夜! 亲,很抱歉,此页已超出免费预览范围啦! 如果喜欢就下载吧,价低环保! 内容要点: impor ...

  3. java继承的举例_java继承实例

    实例需求:实现一个名为Person的类和它的子类Employee,Manager是Employee的子类,设计一 个类Add()用于涨工资,普通员工一次能涨10%,经理能涨20%. 具体要求如下: ( ...

  4. java 数组排序面试题_Java面试宝典_基础编程练习题_数组排序插值(一)

    题目 题目:有一个已经排好序的数组.现输入一个数,要求按原来的规律将它插入数组中. 程序分析:首先判断此数是否大于最后一个数,然后再考虑插入中间的数的情况,插入后此元素之后的数,依次后移一个位置. 代 ...

  5. java大括号定义数组_Java基础语法_数组

    数组的概念 数组的概念:是一种容器,可以同时存放多个数据值 数组的特点: 1.数组是一种引用数据类型 2.数组当中的多个数据,类型必须统一 3.数组的长幅在程序运行期间不可改变 数组的定义格式 数组的 ...

  6. 【源码+教程】Java课设项目_12款最热最新Java游戏项目_Java游戏开发_Java小游戏_飞翔的小鸟_王者荣耀_超级玛丽_推箱子_黄金矿工_贪吃蛇

    马上就要期末了,同学们课设做的如何了呢?本篇为大家带来了12款热门Java小游戏项目的源码和教程,助力大家顺利迎接暑假![源码+教程]Java课设项目_12款最热最新Java游戏项目_Java游戏开发 ...

  7. 黑马程序员全套Java教程_Java基础教程_异常(含扩展)(二十三)

    黑马程序员全套Java教程_Java基础教程_异常(含扩展)(二十三) 1.1 异常概述与异常体系结构 1.2 JVM遇到异常时的默认处理方案 1.3 异常处理 1.4 异常处理之try--catch ...

  8. java 类继承实例_java继承例子代码,java类的继承示例

    下面要给大家带来的是一个java类的继承的例子,一起来看看详细的代码吧! 一.题目 1.定义一个Person类,这个类的属性有三个,分别是name.age.color. 类有构造方法给三个属性赋值. ...

  9. java 异或 排序_Java的位运算符详解实例——与()、非(~)、或(|)、异或(^)...

    位运算符主要针对二进制,它包括了:"与"."非"."或"."异或".从表面上看似乎有点像逻辑运算符,但逻辑运算符是针对两 ...

最新文章

  1. php 时间函数详解,PHP时间函数date()详解
  2. 统计学:回归分析(2)
  3. FFmpeg再学习 -- FFmpeg+SDL+MFC实现图形界面视频播放器
  4. debian vbox设置_在Debian 9 Stretch系统上安装VirtualBox的两种方法
  5. USB存储、光驱等外设被禁用了,网络共享被禁用了,还要共享文件怎么办?
  6. 基于51单片机的温度检测监测报警系统设计
  7. Openxml 笔记
  8. 那些出其不意给你惊喜的点,重新感受for循环的爱,来自C#
  9. 流媒体服务器+终端(android,ios,web)来实现实时监控或着说是直播
  10. 关于KEIL5最新版没有ATMEL(含89C51芯片)的情况
  11. esp8266,esp32中的SPI FLASH 访问模式(QIO QOUT DIO DOUT)
  12. RIP路由项欺骗攻击实验
  13. 风险投资(VC)与私募股权投资(PE)的区别
  14. 离散数学复习重点(1)
  15. 10亿美元“戒指”,亚马逊买来送给Alexa
  16. 深度优先搜索解决八数码问题
  17. linux一级考试价格,一级Linux基础考试大纲
  18. 卡方检验计算公式-医学统计助手★卡方检验,t检验,F检验,秩和检验,方差分析
  19. 流水灯实验报告c语言,PLC流水灯实验报告.pdf
  20. B站发布《毕业季大数据报告》,最让年轻人头秃的原来是?

热门文章

  1. 防护服EN14126标准对防护新冠病毒起到的重要性。
  2. eruda.js 移动端调试神器使用教程(eruda)
  3. linux安装oracle jdk
  4. SqlServer 事务回滚
  5. CentOS更换系统软件源(yum软件仓库)
  6. Oracle的wm_concat()函数与Mysql的group_concat()函数
  7. UWPWP8.1 基础控件—Button
  8. 如何穿婚纱才能显得更高贵优雅
  9. mysql注入啥意思_什么是mysql注入
  10. 微信流媒体直播java_微信小程序直播带货教程