What does the bitwise XOR operation do?

What does the bitwise XOR operation do?



The Exclusive OR operation takes two bits and returns 1 if EXACTLY ONE bit is 1. Otherwise it returns 0.

1 ^ 1 -> 0
1 ^ 0 -> 1
0 ^ 1 -> 1
0 ^ 0 -> 0

Popular posts from this blog

After analyzing the model, your manager has informed that your regression model is suffering from multicollinearity. How would you check if he's true? Without losing any information, can you still build a better model?

Is rotation necessary in PCA? If yes, Why? What will happen if you don't rotate the components?

What does Latency mean?