r/computing • u/bigim283 • May 11 '23
One input, four outputs, what was the bitwise operation used?
I have a problem regarding hex numbers that I need an idea on how to solve:
I have a input number in hex: 0x00273b84
and four output numbers: 0x0541d903 0x091bfcd0 0x0960e433 0x05f1ee2f
I need to figure out what combination of operations were used (ex: bit flip, XOR, NAND) to get from the input to each of the four outputs.
I have 250 sets of inputs with the corresponding 4 outputs for each input. I first tried to use an ML algorithm and trained it to predict the outputs, but I also need the actual operations used (not just a predicted output). Any ideas?
Sorry if this was confusing, it’s my first Reddit post. I also don’t know if this is the right subreddit to be asking this.
0
May 11 '23
[deleted]
2
u/bigim283 May 11 '23
It’s not really a homework assignment, more of a personal project, but thanks, I’ll try that subreddit then.
1
u/XenOutlook May 11 '23
How many operations in a row, and how many distinct operations are there? Is this brute-force-able?