-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Exclusive OR and OR | ||
|
||
## 真值表 | ||
|
||
| Input A | Input B | Output(A OR B) | | ||
| :-----: | :-----: | :------------: | | ||
| 0 | 0 | 0 | | ||
| 0 | 1 | 1 | | ||
| 1 | 0 | 1 | | ||
| 1 | 1 | **1** | | ||
|
||
| Input A | Input B | Output(A XOR B) | | ||
| :-----: | :-----: | :-------------: | | ||
| 0 | 0 | 0 | | ||
| 0 | 1 | 1 | | ||
| 1 | 0 | 1 | | ||
| 1 | 1 | **0** | | ||
|
||
区别仅在于1or1=1 1xor1=0 | ||
|
||
## 英语含义 | ||
|
||
![1726472839718](image/ExclusiveOr/1726472839718.png)![1726472844473](image/ExclusiveOr/1726472844473.png) | ||
|
||
## 个人理解 | ||
|
||
OR:要么A要么B,两者之间没关系,只要有一个成立,则A OR B成立 | ||
|
||
XOR:要么A要么B,但是两者之间互斥,即要么A成立要么B成立,但是A和B不能同时成立,否则A XOR B不成立 | ||
|
||
--- | ||
|
||
**one or the other but not both** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters