Boolean Algebra Question

Building your first 6502-based project? We'll help you get started here.
Post Reply
User avatar
N2TheRed
Posts: 24
Joined: 11 May 2016
Location: Texas

Boolean Algebra Question

Post by N2TheRed »

I created a truth table with three inputs and randomly select high outputs so that I could practice doing boolean algebra. I've been able to answer some I've seen on the internet, but have failed when I just made up my own example to practice with. I've included a picture to see how far I got and ultimately where I've not been able to move past.

I have my rules cheat sheet beside me, but I'm going nowhere fast.
Attachments
example.png
example.png (10.88 KiB) Viewed 2473 times
User avatar
barrym95838
Posts: 2056
Joined: 30 Jun 2013
Location: Sacramento, CA, USA

Re: Boolean Algebra Question

Post by barrym95838 »

It has been about 30 years since I attempted any boolean algebra or Karnaugh mapping, so please take my limited advice with a grain of salt, but I think that you might be able to leave the first term alone and factor /C out of the second and third terms, ending up with /A/BC + /CA. Going back to your strategy, /AB + A/B can be reduced to A XOR B, but I don't know if introducing XOR into the mix is in line with what you are asking.

Mike B.
User avatar
N2TheRed
Posts: 24
Joined: 11 May 2016
Location: Texas

Re: Boolean Algebra Question

Post by N2TheRed »

barrym95838 wrote:
It has been about 30 years since I attempted any boolean algebra or Karnaugh mapping, so please take my limited advice with a grain of salt, but I think that you might be able to leave the first term alone and factor /C out of the second and third terms, ending up with /A/BC + /CA. Going back to your strategy, /AB + A/B can be reduced to A XOR B, but I don't know if introducing XOR into the mix is in line with what you are asking.

Mike B.
That's for the reply Mike.

I haven't tried what you mentioned yet, but I'm going to rework it as you suggested in the morning. However, I know of XOR, it's truth table and the gate symbol. When I went to reduce the term in the picture, I didn't immediately recognized that A~C + ~AC was an XOR until I plugged in a truth table. I was trying to factor out and reduce, but the example in the picture I fail to see what I'm missing. Does that mean you can go to factor out a term, but the resulting expression cannot be reduced? Given all the examples I've worked before, I just assume that every time you factor you can reduce. It doesn't appear so in that example.
rwiker
Posts: 294
Joined: 03 Mar 2011

Re: Boolean Algebra Question

Post by rwiker »

The way you should factor this is not via the first two terms, but the first and the third:

/A/BC + A/B/C + AB/C = A/B/C + AB/C + /A/BC = A/C(B+/B) + AB/C = A/C + AB/C

If you're going to practice doing this by hand, you should take a look at Karnaugh maps (e.g, https://en.wikipedia.org/wiki/Karnaugh_map)
User avatar
8BIT
Posts: 1787
Joined: 30 Aug 2002
Location: Sacramento, CA
Contact:

Re: Boolean Algebra Question

Post by 8BIT »

There is a minor error in this:

/A/BC + A/B/C + AB/C = A/B/C + AB/C + /A/BC = A/C(B+/B) + AB/C = A/C + AB/C

It should be:

/A/BC + A/B/C + AB/C = A/B/C + AB/C + /A/BC = A/C(B+/B) + AB/C = A/C + /A/BC

This truth table is a good example of logic that does not reduce to simple terms.

Daryl
Last edited by 8BIT on Tue Sep 26, 2017 11:47 am, edited 1 time in total.
Please visit my website -> https://sbc.rictor.org/
rwiker
Posts: 294
Joined: 03 Mar 2011

Re: Boolean Algebra Question

Post by rwiker »

8BIT wrote:
There is a minor error in this:

/A/BC + A/B/C + AB/C = A/B/C + AB/C + /A/BC = A/C(B+/B) + AB/C = A/C + AB/C

If should be:

/A/BC + A/B/C + AB/C = A/B/C + AB/C + /A/BC = A/C(B+/B) + AB/C = A/C + /A/BC
Argh. Yes. It should be the same as the result that barrym got, and I thought I checked that... clearly not.
Quote:
This truth table is a good example of logic that does not reduce to simple terms.

Daryl
dwight
Posts: 213
Joined: 08 Jun 2004

Re: Boolean Algebra Question

Post by dwight »

If you combine the bottom two terms, the B's cancel.
That is about the most I see.
The problems you may find are often like the math problems you get in grammar school.
You see problems like 24 / 3 but rarely 26 / 3.
Dwight
User avatar
N2TheRed
Posts: 24
Joined: 11 May 2016
Location: Texas

Re: Boolean Algebra Question

Post by N2TheRed »

Thanks for everyone that replied.
User avatar
N2TheRed
Posts: 24
Joined: 11 May 2016
Location: Texas

Re: Boolean Algebra Question

Post by N2TheRed »

rwiker wrote:
8BIT wrote:
There is a minor error in this:

/A/BC + A/B/C + AB/C = A/B/C + AB/C + /A/BC = A/C(B+/B) + AB/C = A/C + AB/C

If should be:

/A/BC + A/B/C + AB/C = A/B/C + AB/C + /A/BC = A/C(B+/B) + AB/C = A/C + /A/BC
What does the underline represent?
User avatar
N2TheRed
Posts: 24
Joined: 11 May 2016
Location: Texas

Re: Boolean Algebra Question

Post by N2TheRed »

8BIT wrote:
This truth table is a good example of logic that does not reduce to simple terms.

Daryl
If I'm understanding this correctly, I just happened to make up an example that was a little complex.
User avatar
8BIT
Posts: 1787
Joined: 30 Aug 2002
Location: Sacramento, CA
Contact:

Re: Boolean Algebra Question

Post by 8BIT »

N2TheRed wrote:
rwiker wrote:
8BIT wrote:
There is a minor error in this:

/A/BC + A/B/C + AB/C = A/B/C + AB/C + /A/BC = A/C(B+/B) + AB/C = A/C + AB/C

If should be:

/A/BC + A/B/C + AB/C = A/B/C + AB/C + /A/BC = A/C(B+/B) + AB/C = A/C + /A/BC
What does the underline represent?
it was the best way for me to point out what part was wrong... it has nothing to do with logic representation.
Please visit my website -> https://sbc.rictor.org/
User avatar
8BIT
Posts: 1787
Joined: 30 Aug 2002
Location: Sacramento, CA
Contact:

Re: Boolean Algebra Question

Post by 8BIT »

N2TheRed wrote:
8BIT wrote:
This truth table is a good example of logic that does not reduce to simple terms.

Daryl
If I'm understanding this correctly, I just happened to make up an example that was a little complex.
Yes, sometimes you get lucky and your truth table will reduce to something simple...but more often than not (for me), I end up with something that is not much simpler than the original equation.

Daryl
Please visit my website -> https://sbc.rictor.org/
Post Reply