Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
中崙資研 - 布林代數
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
atitan
May 03, 2013
Programming
350
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
中崙資研 - 布林代數
atitan
May 03, 2013
Other Decks in Programming
See All in Programming
Railsのためのパスキー実践入門 〜マルチテナントSaaSでの意思決定〜
utakaha
2
660
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
2
780
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
380
Web Framework Benchmark Battle 2026, Any%
a_matsuda
2
2.3k
Jetpack Compose Mechanisms
skydoves
3
820
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Kaigi on Rails 2026, Tokyo, Japan
marcoroth
2
270
Kotlinの15年とServer-Side Kotlin
n_takehata
1
150
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Rails World 2026, Austin, Texas
marcoroth
0
220
SalesForceを内製化!? ~ HR事業を支える顧客管理基盤のインフラを大公開 ~
oku053
0
180
なぜCTOを降りてFDEを選んだのか?〜なぜプロダクト企業がFDEで顧客の現場に踏み込むのか〜
gonta
1
220
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
5
5.2k
R8 の設定見直しでアプリサイズ削減
andpad
0
220
Featured
See All Featured
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
8.1k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
360
Making the Leap to Tech Lead
cromwellryan
135
10k
The agentic SEO stack - context over prompts
schlessera
0
970
Speed Design
sergeychernyshev
33
2.2k
How to Talk to Developers About Accessibility
jct
2
580
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
450
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
360
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
530
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
Transcript
資訊研究社 中崙高中 洪顥恆
小明要洗完澡而且寫完功課才可以吃晚餐 洗澡 寫功課 吃晚餐 O O O O X X
X O X X X X
小明要洗完澡或是寫完功課才可以吃晚餐 洗澡 寫功課 吃晚餐 O O O O X O
X O O X X X
紅色 : 洗完澡 藍色 : 寫完功課 哪裡才代表可以吃飯?? 文氏圖
小練習 • 紅色 : 女生 藍色 : 戴眼鏡 哪裡是沒戴眼鏡的女生??
小心 ! 我們一般講話的 “或” 可能不一樣 !! • Ex: 服務生問你說 :
你想吃麵或是吃飯 ? • 一般來說 , 不會都不吃 , 也不會都吃 , 而是選一樣吃 !!! 吃飯 吃麵 X X X X V V V X V V V X 這一頁講的 “或” 叫做 exclusive-or 但是在討論邏輯的時候用的 “或” 一律是inclusive-or , 簡寫成 or
布林變數 ( Boolean variable) • x2 + x + 1
x 就是一般我們大家比較熟悉的變數 , 代表一 個數字 , x 可以等於 2 , 1.1 , - 2 等等 • 布林變數通常用大寫英文字母代表 (ex : A , B , C …) • 一個變數可以代表一件事 ex : A表示今天下雨 , A 就表示今天沒下雨 • 簡單來說 就是一個布林變數只會有兩個值 : True / False
真值表 (truth table) A B A B F F F
T F F F T F T T T 表示”且” 表示”或”
布林方程式 (Boolean function) • f(x) = x2 + x +
1 這就是大家很熟悉的方程式~ • F(A,B,C,D) = AB + AC • A : 丟銅板丟到正面 • B : 抽到綠色球 • C : 抽到黑色球 • D : 抽到紅色球 ‧表示”且”(通常省略) + 表示”或”
方程式的簡化方法 1 and X = X 0 and X =
0 1 or X = 1 0 or X = X
方程式的簡化方法 A ‧ A = A A ‧ A =
0 A + A = A A + A = 1
方程式的簡化方法 X(Y+Z) = XY + XZ A = A(1+X)
練習一下 如何利用前面所學推出 (X+Y)(X+Z) = X+YZ ?