accessibility.skipToMainContent
Back to blog
Basics

How computers make decisions: the binary truth nobody tells you

Your computer is making billions of decisions per second using just two numbers: 0 and 1. Here's how that actually works, and why it matters more than you think.

by Marc Filipan
September 2, 2025
25 min read
8 views
0

The Light Switch in Your Hallway

Let me tell you a story about your hallway light switch. You've probably flipped it thousands of times without thinking twice about it. Up, the light comes on. Down, the light goes off. Simple, right?

That humble light switch, the one you barely notice, holds the secret to how every computer in the world works. Not sort of. Not metaphorically. Actually, literally, completely.

You see, that switch can only be in two positions: on or off. Never halfway. Never "sort of on." Either electricity flows and the bulb lights up, or it doesn't flow and your hallway stays dark. Two choices. That's it.

Here's the wild part: Your smartphone has about 15 billion tiny switches inside it. Each one smaller than a grain of sand. Each one doing exactly what your hallway light switch does, just flipping on and off. That's all. Nothing fancier.

And from these billions of simple yes-or-no, on-or-off switches, we get everything:

  • πŸ“± Your photos and text messages
  • πŸ—ΊοΈ Maps that tell you where to go
  • πŸŽ₯ Videos of your grandkids
  • πŸ” Apps that recognize your face to unlock your phone

All of it comes from switches turning on and off really, really fast.

Sound too simple to be true? Stay with me. I'm going to show you how something as basic as a light switch creates what looks like magic.

The Restaurant Problem

Imagine you're calling your favorite restaurant to make a dinner reservation. The person who answers starts asking you questions:

"Good evening! Do you have a reservation with us already?"
"Yes," you say.

"Wonderful! Are you one of our loyalty members?"
"Yes, I am."

"Perfect! We'll seat you at your favorite table by the window. See you at 7!"

Now imagine a different call:

"Do you have a reservation?"
"No, I don't."

"Is your party larger than six people?"
"Yes, we're eight."

"I'm so sorry, we're fully booked for large parties tonight. Could I suggest tomorrow instead?"

Notice what just happened? The restaurant staff made a decision about where to seat you, or whether they could seat you at all, by asking simple yes-or-no questions. Each answer was binary: yes or no. And based on those answers, they made what seems like a complicated decision.

That's exactly, and I mean exactly, how your computer makes every single decision. It asks millions of yes-or-no questions, incredibly fast, and uses the answers to decide what to do.

Should this email go to your inbox or your spam folder?

The computer asks: Does it have words like "urgent"? Yes or no. Does it come from someone you know? Yes or no. Does it have weird links? Yes or no. Add up all those yes-or-no answers, and boom, it decides: spam folder.

Should your phone unlock when you look at it?

Does this face match the stored pattern? Yes or no, repeated millions of times across every detail of your face, and the phone decides: unlock or stay locked.

Complex decisions, made from piles and piles of simple yes-or-no questions, answered faster than you can blink.

Why Only Two? The Three-Way Light Switch That Ruined Everything

You might be wondering: why only yes and no? Why not have three options? Or ten? Wouldn't that make computers smarter?

Here's a story that explains why that doesn't work.

Back in the 1940s and 50s, when people were first building computers, some engineers thought, "Hey, why limit ourselves to on and off? Let's make switches with three positions: off, medium, and on!"

Seemed clever. More options, more power, right?

Wrong. Those computers were disasters.

They crashed constantly. Why? Because with three positions, the switch could get stuck between settings. Electrical noise could make "medium" look like "on." Dust could make "off" look like "medium." The machines were unreliable nightmares.

But two-position switches? Rock solid.

Either the electricity flows or it doesn't. Even if there's interference, even if the switch is a bit worn, you can still tell: is the current flowing? Yes or no. Clear as day.

It's like asking someone "Are you home?" versus asking "On a scale of 1 to 10, how home are you?" The first question has a clear answer. The second is just confusing.

So computers use two positions, on and off, because it's the only way to make something reliable. And we call those two positions "1" and "0" or "yes" and "no" or "true" and "false." Different words, same idea: binary. Two choices.

The Secret Patterns: How Yes and No Build Everything

Okay, so we have billions of switches that can be on or off. How do we get from there to, say, recognizing your voice when you ask your phone for tomorrow's weather?

The secret is in combining switches into patterns that answer specific kinds of questions. Let me show you a few, using things you already know.

The Bank Vault: Both Keys Required

You know how in movies, the bank vault needs two people with two different keys, and both have to turn their keys at the exact same time for the vault opens?

  • βœ— One person alone with their key? Vault stays locked.
  • βœ— Other person alone? Still locked.
  • βœ“ Both together? Click, the vault opens.

That's one pattern computers use constantly. They check: is condition A true AND is condition B true? Only if BOTH are yes does the computer say yes.

Example: Logging into your bank account online

The computer checks: Is the username right? AND is the password right? Both have to be yes. Just one? No access for you.

The House With Two Doors: Either One Works

Now imagine your house has a front door and a back door. You can get in if the front door is unlocked OR if the back door is unlocked OR if both are unlocked. You just need at least one way in.

  • βœ— Both locked? You're stuck outside.
  • βœ“ Front unlocked but back locked? Come on in through the front.
  • βœ“ Front locked but back unlocked? Come in through the back.
  • βœ“ Both unlocked? Pick whichever door you like.

That's another pattern. The computer checks: is condition A true OR is condition B true? If at least one is yes, the computer says yes.

Example: Viewing a document on your phone

Are you the owner? OR did someone share it with you? OR are you an admin? Any one of those being yes gets you in.

The Opposite Day: Flip It Around

Remember playing opposite day as a kid? Everything means the reverse of what it normally means.

The NOT pattern flips everything

Take an answer and flip it. Yes becomes no. No becomes yes. True becomes false. On becomes off.

Like checking: are you NOT logged in? Is the file NOT found? Is this box NOT checked? The computer takes the answer and reverses it.

The Staircase Lights: The Switcharoo

Here's my favorite because I bet you've used it without realizing what it teaches us about computers.

You know staircases with light switches at both the bottom and the top? You can flip either switch to turn the light on or off. Walk upstairs in the dark, flip the top switch, light comes on. Walk back down, flip the bottom switch, light goes off.

The XOR pattern checks if things are different

The light is on when the two switches are in DIFFERENT positions. When they're in the SAME position, the light is off.

Computers use this pattern to check: are these two things different? Did something change? Is this the opposite of that?

And there's a flip side to this: checking if two things are the SAME. Like matching passwords, or checking if your face today looks like your face yesterday. Same? Yes. Different? No.

These simple patterns, these simple ways of combining yes-or-no answers, are the building blocks of everything your computer does. Everything.

The Five Simple Patterns

🏦 The Bank Vault BOTH keys needed Key 1 βœ“ AND Key 2 βœ“ = Vault Opens 🏠 Two Doors EITHER door works Front βœ“ OR Back βœ“ = You Get In πŸ”„ Opposite Day Flip everything around Yes β†’ No, On β†’ Off, True β†’ False πŸ’‘ Staircase Lights Different = Light On Same position? Light Off 🎴 Matching Game Same = You Win! Cards match? Password correct? Face the same? Real Example: Logging Into Your Bank Question 1: Is the username right? Question 2: Is the password right? BOTH Required! βœ“ Both Yes β†’ Welcome! βœ— Either No β†’ Access Denied

Your Morning Coffee Machine (And How It's Smarter Than You Think)

Let's talk about something you probably use every morning: a coffee machine. The simple kind with a timer.

You fill it with water and coffee grounds before bed. You set the timer for 7 AM. You go to sleep. And like magic, you wake up to fresh coffee.

How does the machine know when to start brewing?

It's asking yes-or-no questions, constantly, all night long:

Is it 7 AM yet? No. Keep waiting...
Is it 7 AM yet? No. Keep waiting...
Is it 7 AM yet? No. Keep waiting...
Is it 7 AM yet? Yes! β˜• Start brewing!

Thousands of times per second, the same question. And the instant the answer changes from no to yes, the machine acts.

Your computer does the same thing, but with millions of questions happening simultaneously:

  • β†’ Is the mouse moving?
  • β†’ Did someone type a key?
  • β†’ Is a new email arriving?
  • β†’ Is the battery getting low?
  • β†’ Should the screen brightness change?
  • β†’ Is there a text message?
  • β†’ Did someone touch the screen?

Millions of yes-or-no questions, asked billions of times per second, and the computer reacts the instant any answer changes.

That's why your phone seems so responsive. It's not actually smart. It's just asking questions really, really, really fast.

The Difference Between Expensive and Cheap (That Nobody Tells You)

Here's something that might surprise you: not all ways of asking yes-or-no questions cost the same.

Imagine you're trying to figure out if you have enough money to buy something. You could:

  • A Slow way: Pull out your wallet, count every single coin and bill, add them up precisely to the penny, compare to the price tag.
  • B Fast way: Glance at your wallet and say, "Yeah, I've got enough" or "Nope, I'm short."

Both get you an answer. But Option A takes way more time and effort, right?

Computers face the same choice. For some tasks, they can take the quick glance approach: fast, simple, uses barely any battery. For other tasks, they do the slow, precise, count-every-penny approach: accurate, but uses lots of battery and takes longer.

Here's the thing that's changing: for years, computers did almost everything the slow, precise way. Even when the quick glance would work fine.

Checking if an email is spam

Does the computer really need to calculate probabilities to 16 decimal places? Or can it just quickly check: does this look like spam? Yes or no?

Unlocking your phone with your face

Does it need to measure every microscopic detail with perfect precision? Or can it quickly match patterns and say: same face or different face?

The quick way uses about 100 times less battery. One hundred times! And for many tasks, it works just as well.

Some companies (like Dweve and a few others) are building systems that use the quick way whenever it makes sense. The result? Your phone battery lasts days instead of hours. Your apps respond instantly instead of lagging. And your personal data can stay on your phone instead of being sent to some company's servers.

Same results, way more efficient. All because they're using simple yes-or-no questions instead of complicated calculations.

When Your Phone Recognizes Your Face (The Everyday Miracle)

Let's talk about something that seems like magic: unlocking your phone by looking at it.

When you first set this up, your phone takes a few photos of your face. But here's what it doesn't do: it doesn't store those photos. Instead, it looks at your face like a friend who's trying to remember you.

What your phone notices about your face:

  • β€’ How far apart are your eyes?
  • β€’ What shape is your nose?
  • β€’ Where are your cheekbones?
  • β€’ Are your ears high or low?

Dozens of little details, the kind of things you'd notice if you were really studying someone's face.

Then it turns all those observations into a pattern. A fingerprint, but for your face.

Later, when you want to unlock your phone, the camera looks at you again. It measures the same things. And then it plays the matching game we talked about earlier:

  • ? Eyes in the same place? Yes or no.
  • ? Nose the same shape? Yes or no.
  • ? Cheekbones in the right spot? Yes or no.

Thousands of these checks, incredibly fast. And if enough answers are yes, the phone says, "That's the same person!" and unlocks.

Not enough matches? "That's someone different," and it stays locked.

The crazy part?

This all happens in less than a second. Thousands of comparisons, thousands of yes-or-no checks, and a final decision: unlock or don't unlock.

And because it's all yes-or-no questions (is this feature the same as the stored one?), it can happen right on your phone. Fast. Private. No internet needed. Your face pattern never leaves your device.

That's the power of simple yes-or-no questions, done really, really fast.

What This Means for Your Daily Life (The Practical Stuff)

Okay, so computers use yes-or-no questions to make decisions. Neat. But why should you care?

Because it affects things you deal with every single day.

πŸ”‹ Your Phone's Battery

You know how frustrating it is when your phone dies halfway through the day? A big reason is inefficient computing. Apps doing complicated calculations when simple yes-or-no checks would work fine. Better software that uses simple yes-or-no questions where possible? Your battery lasts way longer. We're talking days instead of hours for some tasks.

πŸ”’ Your Privacy

Ever wonder why some apps need an internet connection to work? Often it's because they're sending your data to powerful computers in data centers because your phone "isn't strong enough" to do the work. But with efficient yes-or-no computing, your phone IS strong enough. Your photos, your voice recordings, your personal stuff can all be processed right on your device. Nothing needs to leave your phone. Privacy by design.

⚑ Your Time

Sending data to the internet, waiting for a response, getting the answer back? That takes time. Sometimes just milliseconds, but you feel the lag. Processing everything locally with efficient yes-or-no questions? Instant. No lag. No waiting.

🌍 Your Planet

Those massive data centers that process everyone's data? They use as much electricity as entire cities. The environmental cost is huge and growing. Efficient computing on your device uses a tiny fraction of that power. Not 10% less. More like 96% less for the same task. Multiply that across billions of phones, and it makes a real difference for the planet.

πŸ’° Your Wallet

Running those big data centers costs companies a fortune. And they pass those costs to you through subscription fees, higher prices, or by showing you ads. Efficient computing on your device costs them way less. Which should mean better prices for you.

These aren't future benefits. This is happening now. Better software is being built that respects how yes-or-no questions actually work.

How Yes/No Questions Change Your Day

πŸ”‹ Battery Life Simple yes/no questions use way less power Your phone lasts days instead of hours πŸ”’ Privacy Everything happens on your device Your photos, voice, and data never leave your phone ⚑ Speed No waiting for internet. Instant responses. Everything feels faster and more responsive 🌍 Better for Everyone 96% less energy for the same results Lower electricity bills. Smaller environmental footprint. Companies save money. You save money. Everyone wins.

The 100 Billion Decisions You Didn't Notice

Want to hear something wild? While you've been reading this article, your computer has made about 100 billion decisions.

Not an exaggeration. Your device is checking things billions of times per second. Is the screen being touched? Is there new data arriving? Should this letter appear in this color? Is the user scrolling? Should we load more text? Is it time to check for new emails? Is the battery okay?

Every letter you see requires thousands of decisions

  • β†’ What color?
  • β†’ What size?
  • β†’ Where exactly on the screen?
  • β†’ Should it have a curve on top?
  • β†’ Is the user zooming?

All happening so fast you don't notice. All yes-or-no questions, billions of them, working together to create what you see.

And here's what gets me: your computer has no idea what it's doing. It doesn't know what this article says. It doesn't understand what a phone is or why you'd want to unlock one. It can't feel happy about doing a good job or annoyed about doing work.

It's just billions of tiny switches, asking yes-or-no questions, following rules we humans designed. Simple questions, answered incredibly fast, creating the illusion of something smart.

Which, when you think about it, is more impressive than if it were actually smart. Because we built this. Regular people, using ideas and engineering, created machines that make billions of perfect decisions per second using nothing more complicated than light switches.

Why This Started With a Light Switch

Remember when I told you about your hallway light switch at the beginning? Now you know why I started there.

That switch can only be in two positions. On or off. And that limitation, that simplicity, is exactly why it works reliably every single time you flip it.

Why computers use binary

Same with computers. They could try to use complicated switches with lots of positions, but those would be unreliable. They'd make mistakes. They'd wear out. They'd get confused.

Simple yes-or-no switches? They just work.

Flip billions of them really fast, organize them cleverly, and you get everything computers do.

Your photos. Your messages. Your maps. Your banking. Your video calls with family. All of it, at the deepest level, is just switches flipping on and off, asking yes-or-no questions, billions of times per second.

It's not magic. It's something better than magic. It's human ingenuity taking something as simple as a light switch and building the modern world with it.

What You Need to Remember

If this feels like a lot, here's what matters:

  1. 1 Computers use yes-or-no questions for everything. Every decision, no matter how complex it seems, is built from millions of simple yes-or-no answers. Like that restaurant reservation, but millions of times faster.
  2. 2 Simple is reliable. Two positions (on/off, yes/no) work perfectly every time. Three or more positions would be unreliable and cause mistakes. That's why every computer ever built uses binary.
  3. 3 Patterns combine to make complexity. Those five patterns we talked about (bank vault, two doors, opposite day, staircase, matching game) combine in billions of ways to make everything your computer does.
  4. 4 Not all approaches cost the same. Some ways of computing use way more battery and time than others. The most efficient way is often the simplest: quick yes-or-no checks instead of complicated calculations.
  5. 5 This affects your daily life. Battery life, privacy, speed, environmental impact, cost. All of these are directly influenced by whether your apps use efficient yes-or-no computing or wasteful complicated calculations.
  6. 6 Simple yes-or-no computing enables privacy. When things are efficient enough to run on your phone, your data never needs to leave your device. No cloud. No sending your photos or voice to company servers.
  7. 7 The future is going back to basics. After years of doing everything the complicated way, smart engineers are realizing: for many tasks, simple yes-or-no questions work better, faster, and more efficiently.

The Bottom Line

Your computer, whether it's your phone or your laptop or any other device, makes billions of decisions every second. And every single one of those decisions comes down to yes or no, on or off, 1 or 0.

It's not more complicated than your hallway light switch. It's just billions of those switches, working together, incredibly fast.

For years, the tech industry made things complicated when they didn't need to be. Using fancy calculations when simple yes-or-no checks would work fine. Wasting battery, wasting time, forcing everything to happen in distant data centers.

But that's changing.

Smart companies are building software that respects the simple yes-or-no foundation. The results are dramatic: phones that last days on a battery, apps that protect your privacy, instant responses, massive reductions in energy use.

This isn't future technology. It's happening now. Your next phone, your next app update, might already use these efficient yes-or-no approaches.

And it all traces back to something as simple as a light switch. On or off. Yes or no. The simplest possible choice, repeated billions of times per second, creating everything you think of as the digital world.

So next time you flip your hallway light switch, remember: you're using the exact same idea that makes your smartphone smart. Simple, reliable, and somehow, absolutely brilliant.

Companies like Dweve are building the next generation of efficient AI using these simple yes-or-no principles. Instead of complicated calculations, they use quick pattern matching that's 40 times faster and uses 96% less energy. The future of computing isn't more complexity. It's using simplicity more cleverly.

Tagged with

#Binary Computing#Computer Basics#Logic Gates#Hardware Fundamentals

About the Author

Marc Filipan

CTO & Co-Founder

Building the future of AI with binary neural networks and constraint-based reasoning. Passionate about making AI accessible, efficient, and truly intelligent.

Stay updated with Dweve

Subscribe to our newsletter for the latest updates on binary neural networks, product releases, and industry insights

βœ“ No spam ever βœ“ Unsubscribe anytime βœ“ Actually useful content βœ“ Honest updates only