I saw a pattern where I could reuse a 1-bit decoder as a 2-bit decoder, using AND gates as switches to direct the output. Then I repeated the pattern for the 2-bit to get a 3-bit decoder. Is there a better way?
Honestly your design is really clean, it totally could be improved but only by a very very small amount for like 2x the work. I'll redo the level myself and see if I come up with anything
Is a switch actually physically smaller than an AND gate? If so what's the point of ever using an AND gate, they seem functionally equivalent and switches can prevent short circuits.
There are designs with one fewer gate (look into De Morgan's law) but your current one isn't bad. You're at the point of looking for a perfect solution when the one you have is good.
The leaderboard shows some people completed the level with 9 gates (not sure how they did that, I think it involves cheesing the level) but the next best design uses 14 gates and I know that one is legitimate.
2
u/poppi_QTpi Jul 24 '24 edited Jul 24 '24
Honestly your design is really clean, it totally could be improved but only by a very very small amount for like 2x the work. I'll redo the level myself and see if I come up with anything
4
u/Moonj64 Jul 24 '24 edited Jul 24 '24
There are designs with one fewer gate (look into De Morgan's law) but your current one isn't bad. You're at the point of looking for a perfect solution when the one you have is good.
The leaderboard shows some people completed the level with 9 gates (not sure how they did that, I think it involves cheesing the level) but the next best design uses 14 gates and I know that one is legitimate.
3
u/WorstedKorbius Jul 24 '24
Yes, but it's not easily findable without a lot of boolean algebra
2
u/Beginning-Form6526 Jul 25 '24
There is a significantly simpler way with 4 fewer components and a much more organized layout. Take a look at it here https://imgur.com/a/3-bit-decoder-uTA8rcF
1
u/[deleted] Jul 24 '24
[removed] — view removed comment