hi
I dont understand how am I supposed to apply to “y” the string x.
I managed to make a tree that gives 1 or 0 (depend on the condition) but i dont know how to continue from that point.
I would love to get some help.
thank you.
Let the condition-dependent bit you generated be z. Think about how you can generate a bit p such that
p =
\begin{cases}
q &;\quad z = 1\\
0 &;\quad z = 0\\
\end{cases}
using basic logic gates.
Then apply this logic where p and q are replaced with appropriate bits of y and x.