Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > The Academy > Tilted Knowledge and How-To


 
 
LinkBack Thread Tools
Old 12-15-2003, 02:45 PM   #1 (permalink)
Tilted
 
Simplest formula for truth tables

Working on a truth table for a 3 way switch. When all three are true the light is on. When any change the light changes between on and off. So when all are true, or when two are false the light is on.
A B C
1 1 1 True
1 1 0 False
1 0 1 False
1 0 0 True
0 1 1 False
0 1 0 True
0 0 1 True
0 0 0 False

I'm not sure how to express the simplest logical formula.

Simplest i have gotten is: A and B and C or (!A and !B) or (!A and !C) or (!B and !C)
Jaseca is offline  
Old 12-15-2003, 04:23 PM   #2 (permalink)
Sky Piercer
 
CSflim's Avatar
 
Location: Ireland
Three way XOR gate?

A XOR B XOR C

or do you want it reuded to AND,OR,NOT?
__________________
CSflim is offline  
Old 12-15-2003, 07:19 PM   #3 (permalink)
Llama
 
goddfather40's Avatar
 
Location: Cali-for-nye-a
You can either do trial or error, as it looks like you did, or if you know how, use K-Maps.
__________________
My name is goddfather40 and I approved this message.

I got ho's and I got bitches,
In C++ I branch with switches

-MC Plus+
goddfather40 is offline  
Old 12-16-2003, 10:13 PM   #4 (permalink)
Fast'n'Bulbous
 
Location: Australia, Perth
What have you used ti simplify it in the first place? cause this isn't correct:

Simplest i have gotten is: A and B and C or (!A and !B) or (!A and !C) or (!B and !C)

Then it's not A and not B, it can also be not C, hence flase.
Theres similar errors with your last 2 as well.

Anyway, i got:

A!B!C + !AB!C + ABC + !A!BC

They're the 4 basic truth statements using AND, NOT and OR gates.

Although as CSflim said, they can be even simpler when using XOR gates.

A XOR B = A!B + !AB (ie when the 2 are different, the logic is true)
also A XNOR B is the inverse of this, so when they're the same the result is true.

eg A XNOR B = !A!B + AB

using this logic, you can simplify the first statment A!B!C + !AB!C + ABC + !A!BC to:

A(B XNOR C) + !A(B XOR C)

I think this can then be simplified to:

A XOR (B XOR C)

So that'd be the simplest expression....

hope that helps
good luck
Sleepyjack is offline  
Old 12-17-2003, 02:25 PM   #5 (permalink)
Sky Piercer
 
CSflim's Avatar
 
Location: Ireland
Quote:
Originally posted by Sleepyjack

I think this can then be simplified to:

A XOR (B XOR C)

So that'd be the simplest expression....
Yes that is correct.
XOR is assoiative, so it can be written as:
A XOR B XOR C
__________________
CSflim is offline  
Old 12-18-2003, 01:16 PM   #6 (permalink)
On the lam
 
rsl12's Avatar
 
Location: northern va
Geez, it's so simple.

if A + B + C is even, then it's false.
if A + B + C is odd, then it's true.
__________________
oh baby oh baby, i like gravy.
rsl12 is offline  
Old 12-18-2003, 01:51 PM   #7 (permalink)
Sky Piercer
 
CSflim's Avatar
 
Location: Ireland
Quote:
Originally posted by rsl12
Geez, it's so simple.

if A + B + C is even, then it's false.
if A + B + C is odd, then it's true.
so let me get this straight...you want to build two two-bit adders, and a two bit parity checker? hmmmmmm....
__________________
CSflim is offline  
Old 12-18-2003, 06:12 PM   #8 (permalink)
Fast'n'Bulbous
 
Location: Australia, Perth
Quote:
CSflim
so let me get this straight...you want to build two two-bit adders, and a two bit parity checker? hmmmmmm....
lots of versatility
Sleepyjack is offline  
 

Tags
formula, simplest, tables, truth


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 09:34 AM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76