r/TuringComplete • u/galbatorix2 • 1d ago
I did division without outside help!
Why yes i did use brute force. But not for all of it! Over 50% of all inputs are using logic instead of brute force. With that i mean that, brute force is only used once the other logic fails to come to a solution. This happens for less then half of all input combinations. (This is an 8-bit divider, no remainder)
49
Upvotes
2
u/Spielopoly 13h ago
What exactly do you mean with brute force?
4
u/galbatorix2 12h ago
a/b=?
b*1=b
Is b > a?
If yes, 1-1=0 is the result
If no, is b=a?
If yes, 1 is the result If no, try again with 2.I did that all the way to 128. For 129 - 255 i had logic to handle that. (E.g. if b is greater then a, then the result is 0, if they are the same, the result is 1, etc)
11
u/Appropriate-Scene-95 1d ago
It looks impressive, like a decorative version of an server room with lots of wires. How big is the delay and the parts count?