java 邏輯表達式 布爾_使用基本邏輯門實現布爾表達式

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

Realization of Boolean expressions using Basic Logic Gates (1)

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)反相獲得。

Realization of Boolean expressions using Basic Logic Gates (2)

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,

因此,以上給出的布爾表達式的最終邏輯圖可以繪制為:

Realization of Boolean expressions using Basic Logic Gates (3)

將邏輯圖轉換為布爾表達式 (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邏輯實現簡化表達式。

Realization of Boolean expressions using Basic Logic Gates (4)

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)

Realization of Boolean expressions using Basic Logic Gates (5)

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輸入與門實現:

Realization of Boolean expressions using Basic Logic Gates (6)

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

java 邏輯表達式 布爾

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/542542.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/542542.shtml
英文地址,請注明出處:http://en.pswp.cn/news/542542.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

python自然語言處理書籍_精通Python自然語言處理pdf

自然語言處理(NLP)是有關計算語言學與人工智能的研究領域之一。NLP主要關注人機交互,它提供了計算機和人類之間的無縫交互,使得計算機在機器學習的幫助下理解人類語言。 本書詳細介紹如何使用Python執行各種自然語言處理&#xff…

通達oa 2013 php解密,通達OA漏洞學習 - 安全先師的個人空間 - OSCHINA - 中文開源技術交流社區...

說明通達OA漏洞在去年上半年已爆出,這不趁著周末沒事做,將源碼下載下來進行復現學習。文件包含測試文件包含檢測,payload1:ip/ispirit/interface/gateway.php?json{"url":"/general/../../mysql5/my.ini"}利用文件包含訪…

溫趙輪 訪談

“溫趙輪”三大軟狗,你聽說過嗎?今天的1024訪談錄給大家介紹的就是程序員中當之無愧的偶像組合——溫趙輪。 Winter寒冬。阿里P8,正在向P9的道路上奔跑。傳說中的他有錢、出身好,可不是搞互聯網的屌絲程序員。 老趙,…

linux開源文檔管理系統_Linux中的系統管理員問題 免費和開源軟件

linux開源文檔管理系統根帳號 (Root Account) The "root" account is the most unrestrictive account on a Linux Operating system. This account enables you to complete all features of System admin, including accounts, changing client passwords, looking…

matlab上機實驗1,上機實驗1:熟悉matlab基本操作

其中 x 在 [-2, 2] 間共等切分為 21 點,y 在 [-1, 1] 間共等切分為 21 點,所以此曲面共有 21*21441 個點。a. 請用預設的顏色對應表(Colormap)來畫出此曲面。 b. 請以曲面的斜率來設定曲面的顏色。 c. 請以曲面的曲率來設定曲面的顏色。2. 請用 meshc 指…

公眾號 -「前端攻略 開光篇」

作為一枚程序員,每件重要項目的開始都忍不住使用"Hello World"。 這個公眾號是不是來晚了?如果你有這個疑問,那么我想說:對于寫作和思考,任何時候都不晚。我用四個簡單的自問自答,來講講這個前端…

python 桌面應用 啟動緩慢_如何加快Python 應用的啟動時間

我聽說pipenv9.0.2已經發布,啟動時間有了很大的改進。 我很快就試了一下,但我覺得并不快。所以我用Python3.7的新特性來研究它。 在本文中,我將介紹該特性以及如何使用它。 啟動時間≒導入時間 例如,pipenv -h 的執行時間比顯示幫…

python單詞首字母大寫_在Python中將每個單詞的首字母大寫

python單詞首字母大寫Here, we are implementing a python program to capitalizes the first letter of each word in a string. 在這里,我們正在實現一個python程序來大寫字符串中每個單詞的首字母。 Example: 例: Input: "HELLO WORLD!"O…

matlab中求模最大,matlab求取模極大值時出錯

本帖最后由 Nate_ 于 2016-4-17 15:57 編輯points1024 時,有波形輸出,但信號有5438個點。改為5438就不行。主程序:%小波模極大值重構是采用的交替投影法close all;points5438; level4; sr360; num_inter6; wfdb4;%所處理數據的…

stl向量_如何檢查C ++ STL中向量中是否存在元素?

stl向量Given a vector and an element to be searched in the vector. 給定一個向量和要在向量中搜索的元素。 To check whether an elements exists in a vector or not – we use find() function. find() function takes 3 arguments. 要檢查向量中是否存在元素 –我們使用…

java socket如何請求485協議_javaSE第十五部分 網絡編程(1)Socket和ServerSocket

網絡編程基礎知識C/S結構:全稱為Client/Server結構,是指客戶端和服務器結構。常見程序有QQ、迅雷等軟件。B/S結構:全稱為Browser/Server結構,是指瀏覽器和服務器結構。常見瀏覽器有谷歌、火狐等。兩種架構各…

【分享】linux下u盤使用

2019獨角獸企業重金招聘Python工程師標準>>> linux下u盤使用 方案一: Linux不像Windows一樣,接上新硬件后可以自動識別,在Linux下無法自動識別新硬件的,需要手動去識別。USB移動存儲設備通常被識別為sda1,…

kotlin中判斷字符串_Kotlin程序刪除字符串中所有出現的字符

kotlin中判斷字符串Given a string and a character, we have to remove all occurrences of the character in given string. 給定一個字符串和一個字符,我們必須刪除給定字符串中所有出現的字符。 Example: 例: Input:string "includeHelp Del…

Java9中使用jpa,jpa – eclipselink在Java 9上使用final字段進行靜態編織

我有一些JPA注釋字段,如下所示:Column(name "SOME_FIELD", updatable false, nullable false)private final String someField;當實體插入數據庫時??,這些字段存儲在數據庫中.它們無法進一步更新.對于Java編程語言,可以將這些字段視為final.使用Ecli…

python語言程序設計及醫學應用_Python語言程序設計(高等學校計算機專業規劃教材)...

第1章Python語言概述/1 1.1Python語言的發展1 1.1.1Python的起源1 1.1.2Python的發展2 1.2Python語言的特點2 1.2.1Python的特性2 1.2.2Python的缺點4 1.2.3Python與其他語言的比較5 1.3簡單的Python程序介紹5 1.4Python的程序開發工具8 1.4.1Python的版本選擇8 1.4.2Python的安…

swift 3.0 中使用 xib

文章寫于2016年9月底,Xcode 8,swift 3.0真是蛋疼,折騰了很長時間,試了網上很多教程,結果又莫名的可以了! 1.方法和OC中一樣 將一個xib文件和一個ViewController類進行關聯的幾步操作: command &…

數字圖像處理圖像反轉的實現_使用8086微處理器反轉16位數字

數字圖像處理圖像反轉的實現Problem statement: 問題陳述: Write an assembly language program in 8086 microprocessor to reverse 16 bit number using 8 bits operation. 在8086微處理器中編寫匯編語言程序,以使用8位操作反轉16位數字。 Example: …

php猴子找大王算法,教程方法;php實現猴子選大王問題算法實例電腦技巧-琪琪詞資源網...

琪琪詞資源網-教程方法;php實現猴子選大王問題算法實例電腦技巧,以下是給大家帶來的教程方法;php實現猴子選大王問題算法實例,大家可以了解一下哦!下面為你介紹php實現猴子選大王問題算法實例。本文實例講述了php實現猴子選大王問題算法。分享給大家供大…

numpy 歸一化_NumPy 數據歸一化、可視化

僅使用 NumPy,下載數據,歸一化,使用 seaborn 展示數據分布。下載數據import numpy as npurl https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.datawid np.genfromtxt(url, delimiter,, dtypefloat, usecols[1])僅提取…

java虛擬機規范閱讀(三)異常

Java虛擬機里面的異常使用Throwable或其子類的實例來表示,拋異常的本質實際上是程序控制權的一種即時的、非局部(Nonlocal)的轉換——從異常拋出的地方轉換至處理異常的地方。絕大多數的異常的產生都是由于當前線程執行的某個操作所導致的&am…