Hello, welcome back.
In this video, listen, I'm going to explain the rotation algorithm, so on the left is the code,
which you wrote in previous lesson, and here you find it five, five, a few assets to test the algorithm.
So the first one is who did this piece by one?
So it's supposed to give you this result.
So how do you get this result?
Take a look at this one effing binary, zero zero zero, followed by five once.
So the first operation here is to shift right by one and then here and Surabi one, you get this, everything
is shifted to the right one.
So the three zeros now become four zeros because everything is moved to the right.
Then the second option is to shift left by five minus eight, which is four shift lower by four.
So this one shifts that by four.
We give you this because every bit here moves to the left by four for location.
So does it give you this and any alteration here?
This is an operation where you combine both.
So operation means to just combine all of this to get into it so we get all one.
And then lastly, the operation is masking.
It means you only want to mascotte five bits, one Effie's five ones.
So when you must find ones using the bin Muskan here, you would get the first one, two, three, four,
five.
Which is why this Friday.
So this is explanation for this sit here to test and then now the second one.
So this is the second one where we are going to take the one zero by one.
So the result should be it.
So how do get something first?
Is she frightened by one?
So this is the original.
Or, you know, one zero in binary for rotation, when you buy one, you get this and then here the
second option is Shoveler by four.
You get this all zeros.
And then the operation is where you almost have it combined.
Will you again?
Yes.
And finally, you must find once one of his five once.
So what you do is you must first Phi Beta and then you get this.
So this is a zero, not a 10 one that I said,
OK, so this is the third one.
You're going to retain this hex eight by one bit, so you should get four.
So the original B for hexagon is in binary slyness.
First option here is to SIFF right by one.
So if you buy one, you get this from here.
Everything musterer.
And then the second operation is to shift by five minutes II, which is why for so many, all this land
before this becomes this and then the third operation is to be called so many big armies, you combine
both this and this, which you are getting this.
But the last part you are Muskego, the first five is in this from this Rizza unit taking a force of
IBS because you are Muscardini one, so you get four.
So this is for C, so you can work out yourself, the rest of the two searches on your own based on
the explanation.
So this is the explanation for this algorithm of rotation.
Thank you for watching.