Logika biner dan Boolean
Diperkenalkan
12:39
GAC024 Matematika Diskrit
Anggota himpunan yang berulang dihitung satu kali, carry biner dapat melebihi lebar tetap, dan rute dengan jumlah sisi terkecil mungkin bukan yang memiliki bobot terkecil. Diskrit…
Narasi bahasa Inggris · takarir bahasa Inggris dan 中文 yang dapat dipilih
In this lesson
| English | Makna |
|---|---|
| Boolean algebra/ˈbuːlɪən ˈældʒɪbrə/ | aljabar Boolean |
| bit/bɪt/ | |
| binary arithmetic/ˈbaɪnəri əˈrɪθmətɪk/ | aritmatika biner |
| byte/baɪt/ | |
| truth table/truːθ ˈteɪbl/ | tabel kebenaran |
| logic gate/ˈlɒdʒɪk ɡeɪt/ | gerbang logika |
| logic circuit/ˈlɒdʒɪk ˈsɜːkɪt/ | sirkuit logika |
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.

Dalam biner, berapakah 1 + 1?
Kesulitan 1/5 · 100 koin + bonus kecil pada penyelesaian pertama hari ini
Tidak ada digit untuk dua, jadi terjadi pengalihan (carry) — aturan yang sama seperti 9 + 1 dalam desimal.
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.
Balik input dan perhatikan outputnya
AND benar hanya jika keduanya benar; OR salah hanya jika keduanya salah.
Berapa banyak baris dalam tabel kebenaran dengan tiga input?
Kesulitan 2/5 · 140 koin + bonus kecil pada penyelesaian pertama hari ini
2³ = 8. Setiap input menggandakan jumlah kombinasi.
Dua ekspresi Boolean memiliki tabel kebenaran yang identik. Apa kesimpulannya?
Kesulitan 1/5 · 100 koin + bonus kecil pada penyelesaian pertama hari ini
Mencocokkan setiap baris atas input Boolean yang sama membuktikan ekuivalensi Boolean abstrak. Hal ini tidak menetapkan pengwaktuan fisik atau keamanan sistem nyata.
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 DAN B" benar pada tepat satu baris tabel kebenarannya.
Kesulitan 1/5 · 100 koin + bonus kecil pada penyelesaian pertama hari ini
Hanya baris di mana kedua input bernilai 1. Baris tunggal inilah definisi utuhnya.
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.
Dalam logika, kapan "A ATAU B" bernilai salah?
Kesulitan 1/5 · 100 koin + bonus kecil pada penyelesaian pertama hari ini
OR inklusif bernilaifalse hanya ketika kedua input bernilai false. Keduanya true menghasilkan true; pertanyaan ini menggunakan OR inklusif secara eksplisit.
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.