How can permutations help with logic gates and circuit design?

AI Thread Summary
Permutations and combinations can effectively model logic gates and circuit design by determining the possible states of switches controlling outputs. In this discussion, it was clarified that for four switches, each having two states (on or off), the total number of combinations is calculated as 2^N, resulting in 16 combinations for four switches. The importance of this approach lies in its ability to simplify the creation of truth tables for larger circuits. The conversation emphasized that factorials are not applicable in this context since the order of switches does not matter. Understanding these combinations aids in verifying all possible input scenarios for logic circuits.
BOAS
Messages
546
Reaction score
19
Hello,

today in class we started a topic on permutations and combinations and I have come across a way in which it could be of use to me whilst working with 'logictutor' (a premade circuit board used to teach simple logic circuits).

We have an experiment tomorrow where we will investigate different logic gates and build a decade counter and whilst my question isn't about that, I think it would be nice to show the permutations of inputs.

Homework Statement



There are four switches on the board that control the input to a seven segment display and I need to fill out a table that shows the position of each switch and what the display will show.

Homework Equations





The Attempt at a Solution



There are 4! permutations possible for 4 items but in my situation each item can be either on or off.

I hope this doesn't translate to their being 8! permutations otherwise I'm going to be up all night on excel making tables.

So how do I model this problem to show the number of permutations? I suppose I would like to know because as truth tables get bigger and bigger it could be a quick check to show I have every possibility.

Thanks! (I hope my question is clear)
 
Physics news on Phys.org
No factorials arise in this context. You are not shuffling the order of things or selecting fixed size subsets.
If you wanted to list the combinations in terms of how many switches are on then you would see some factorials, but that's not an interesting way to list them here.
You have N distinct things, each of which can be in any of R states. How many possible combinations of states?
If you're not sure, start with N=1 and work up.
 
Last edited:
  • Like
Likes 1 person
haruspex said:
No factorials arise in this context. You are not shuffling the order of things or selecting fixed size subsets.
If you wanted to list the combinations in terms of how many switches are on then you would see some factorials, but that's not an interesting way to list them here.
You have N distinct things, each of which can be in either of R states. How many possible combinations of states?
If you're not sure, start with N=1 and work up.


One switch has 2 different combinations of states.

Two switches have four different combinations of states.

Three switches have 8 different combinations of states.

Looking at this, the general rule appears to be number of combinations = rN

For my four switch scenario there should be 16 combinations - Which is precisely how many I could come up with :)

Thank you!
 
Yep, now you've got it.
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...

Similar threads

Replies
25
Views
4K
Replies
7
Views
7K
Replies
10
Views
5K
Replies
14
Views
5K
Replies
5
Views
6K
Replies
2
Views
4K
Replies
12
Views
3K
Replies
1
Views
1K
Back
Top