เลขฐานสองและตรรกะบูลีน
แนะนำใหม่
12:39
GAC024 คณิตศาสตร์แบบไม่ต่อเนื่อง
สมาชิกซ้ำในเซตถูกนับเพียงครั้งเดียว การถ่วงบิ้นอาจเกินความกว้างที่กำหนด และเส้นทางที่ใช้ขอบน้อยที่สุดอาจไม่ใช่เส้นที่มีน้ำหนักน้อยที่สุดที่สุด discrete…
บรรยายภาษาอังกฤษ · สลับคำบรรยายภาษาอังกฤษและภาษาจีนได้
ในบทเรียนนี้
| English | ความหมาย |
|---|---|
| Boolean algebra/ˈbuːlɪən ˈældʒɪbrə/ | พีชคณิตบูลีน |
| bit/bɪt/ | บิต |
| binary arithmetic/ˈbaɪnəri əˈrɪθmətɪk/ | การคำนวณแบบฐานสอง |
| byte/baɪt/ | ไบต์ |
| truth table/truːθ ˈteɪbl/ | ตารางความจริง |
| logic gate/ˈlɒdʒɪk ɡeɪt/ | เกตตรรกะ |
| logic circuit/ˈlɒdʒɪk ˈsɜːkɪt/ | วงจรตรรกะ |
A two-value rule can still have several inputs
- Boolean algebra 布尔代数 uses true and false with operations such as AND, inclusive OR and NOT.
- A processor can implement arithmetic using digital logic. Abstract Boolean reasoning examines a stated input/output rule, rather than proving every detail of a real computer.
Keep bit arithmetic and truth values distinct
- Binary arithmetic 二进制运算 carries at 2: binary $1+1=10$. A bit 位 is one binary digit and a byte 字节 is eight bits.
- A bit pattern can encode an unsigned value, a signed value or other information. Specify its width and interpretation before calling its value 255 or inverting it.

ในเลขฐานสอง 1 + 1 เท่ากับเท่าไหร่?
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
ไม่มีตัวเลขสำหรับสอง จึงต้องยกหลัก — กฎเดียวกับ 9 + 1 ในเลขฐานสิบ
Evaluate every Boolean combination
- A truth table 真值表 for n unrestricted Boolean inputs has $2^n$ rows. Include intermediate expressions to make grouping visible.
- Identical outputs in every row prove two expressions equivalent for those Boolean inputs. That does not establish circuit timing, authentication security or physical reliability.
พลิกอินพุตและดูผลลัพธ์
AND เป็นจริงก็ต่อเมื่อทั้งสองเป็นจริง; OR เป็นเท็จก็ต่อเมื่อทั้งคู่ไม่เป็นจริง
ตารางความจริงที่มีอินพุตสามตัวมีกี่แถว?
ความยาก 2/5 · 140 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
2³ = 8 ทุกอินพุตเพิ่มจำนวนชุดข้อมูลเป็นสองเท่า
-expression บูลีนสองตัวมีตารางความจริงเหมือนกัน สมมติฐานใดตามมา?
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
การจับคู่ทุกแถวบนอินพุต Boolean เดียวกันพิสูจน์ความเทียบเท่าของ Boolean แบบนามธรรม ไม่ได้ยืนยันเวลาทางกายภาพหรือความปลอดภัยในระบบจริง
A complete two-input table. In row order 00, 01, 10, 11, AND outputs 0, 0, 0, 1; inclusive OR outputs 0, 1, 1, 1; NOT A outputs 1, 1, 0, 0. A single matching row is not enough to prove two expressions equivalent.
"A AND B" เป็นจริงเฉพาะบนแถวเดียวของตารางความจริง
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
เฉพาะแถวที่อินพุตทั้งสองเป็น 1 แถวเดียวนี้คือนิยามทั้งหมด
Follow connections through the circuit
- A logic gate 逻辑门 implements a specified operation. A logic circuit 逻辑电路 connects those operations, with outputs feeding later inputs.
- Build intermediate columns according to that dependency order. De Morgan can rewrite NOT of an AND as OR of the negated inputs, but must negate both inputs.
Simplify and verify separately. $(A\land B)\lor(A\land\neg B)=A$ by distributivity and $B\lor\neg B$ being true. Sheet 4.3 checks all four rows and separately tests fixed-width bitwise operations.
ในตรรกะ เมื่อไหร่ที่ "A OR B" จะเป็นเท็จ?
ความยาก 1/5 · 100 เหรียญ + บอนัสน้อยๆ เมื่อทำสำเร็จครั้งแรกในวันนี้
Inclusive OR เป็นเท็จเมื่ออินพุตทั้งสองเป็นเท็จ ทั้งจริงให้เป็นจริง ข้อนี้ใช้ Inclusive OR อย่างชัดเจน
Inclusive OR is true when both inputs are true. Bitwise NOT inverts only the stated positions: four-bit NOT of 1100 is 0011, unsigned 3, rather than an unspecified signed or infinite-width value.