We already discussed on how we use a logical operator, OK, with the data flow modeling state.
Now we want to understand the next operator, right?
Remember that the operator that we are covering over here are equally eligible for either modeling styles.
So this operator that we are discussing in the data flow modeling state are not restricted only to data
flow modeling state, but operator in general are eligible for all the modeling state, right?
So we'll just be building up our foundation of an operator in this data flow modeling state and as we
progress to other modeling state, will discuss some of an important concept related to that right?
So we already have a logical operator.
The next operator that we're going to discuss is shift operator, as well as the rotation of it, right?
So the rest was discussed the fundamentals of shift down rotation operator.
And then we proceed to discuss the ways we have in a deal to achieve it, right?
So shift could be categorized into two.
So it could either be a logical shift, OK?
Or it could also be an automatic shift, right?
So in this case, when we perform a right shift, we basically preserve the but that is the only difference
that we have with an automatic ideological operation.
So we'll be discussing in a word that means OK, logical.
Operator OK.
Could be further categorized into two.
OK, so it could either be a left logical shift, OK, or it could be a radiological shift.
All right.
So if you consider automatic, there are also two categories rated could either be a lift automatic
shift or it could be right.
Automatic shift data automatically left shift and logical left shift are exactly equivalent right.
So we see that they do not exist anything like automatic left shift right because both of them operating
in exactly same fashion.
But when we consider an automatic right and logic lights, there exists a huge difference, right?
That is what we want to discuss.
So first, let's just understand how a logical shift work, right?
So we consider first a logical shift.
OK, assume that we have a full arbitrate this, right?
So this is the full bit registered that we have and the container that we have in a register is one
zero zero right now if you want to perform a left shift right.
So when we see a left shift, we basically add the zero in and Elizabeth little betrayed.
So here we have our end gesture.
So when we considered the left shift right, so left shift by this specific position, let's assume
the position is one.
So we basically add a single zero right single zero at 10, unless be saved right?
And then you'll be noticing that since we already have a full present in our gesture.
OK, so the big or the value that we have on an MSP will be automatically true.
Not great because we have added a new value, which is zero at LSP.
Say now when we consider the right shift.
OK, so the operation is exactly opposite, so we add a zero on an MSP site and whatever we have the
canteen on and this debate will be thrown out great.
So this bit basically make the position where we could c, right?
So those are the two logical shift operations that we have right now.
What we're going to do is let it just work with one zero zero hand with the register that we have granted.
Now if you want to perform the left shift, OK and the bit.
So we just want to shift by one right, so left shift by one.
What that will do is basically whatever we have on and it may be saying, OK, so that will be thrown
out.
OK, whatever we have on the next big two zero will be coming over here.
OK, so now here we have zero, right?
So we'll again draw a full compartment rate.
So this seal will come over here.
This zero will come over here.
This one will come over here.
And finally, when we considered the left shift, OK, we basically add zero in then l'esprit right.
This makes sense.
Next, if you consider this is you may want to perform shift by factor of two, right?
So here again, we have that is you.
This is our original value, right?
And we want to perform ship by a factor of two, right?
So in this case, if we have this four compartment available, right, so ship by a factor of two.
So two bit for my name is beside will be thrown out, right?
So this debate will be gone.
This will be gone, right?
And whatever we have next, that is zero.
OK.
That will basically come over here right on an MSP.
So we have zero over here.
Then we have one over here, and finally, we need to add to see if this makes sense, why we have to
add two zeros because we want to perform shift by the factor of two.
This is how we get the value for logical shift, right?
Hey, that too in the left direction right now, if you want to perform a logical shift, OK?
And that too in the right direction.
OK, so ladies, you we have to register with the contained of one zero zero one right now if you want
to perform a right check by a factor of one right in that case, and it is just draw four compartments
where we could add the data.
So when we see right shift, so whatever we have on in a list, we bet will be thrown out, right?
And this basically make the place for the zero to be added on.
And I misspoke, right?
So here we have a zero that will be coming over here.
This zero will be coming over here.
This one will be coming over here and this bit will be filled with seat, right?
This is how we perform the right.
We basically throw out whatever bit we have on the LSP side, OK, and then we add the seat right?
And it must be said great.
So this is how we perform the logical shift.
OK.
No advantage with logical shift.
This, for example, let's assume we do not overflow the size of where is this right?
So if you have zero zero one zero right, so this is the container now if you perform the left shift
right.
So if you perform the left shift, so contained will be the zero will be thrown out right.
And then we have this zero right and then maybe this one right and next.
And then this year, right?
And finally, we have been zero.
Now, if you can guess, the equivalent decimal value for this is to right when we both left shift two,
this is equivalent to four right to be able to multiply by two.
So this help us to implement a multiplier.
OK, so depending on the shift.
We perform great, so, for example, and is the number of ship that we want to perform, right?
In this case, it is one.
So whatever value the original value that we have.
So after the shifting operation, we'll be getting the value, which is multiplied by two, restrain
red and represent the number of ships that we perform, right?
So if you want to perform ship, buy one.
So this end will be one.
And in that case, the original value will be multiplied by two.
Similarly, if you consider all right, shift trade.
So in this case, what will happen is so this bit, this bit will be thrown out, right?
We again have four compartments, so this gate will be thrown out.
And then this one will be coming at LSP.
Then we have zero zero and we'll add zero when we consider right ship, right?
If you calculate the equal and value for this register, so it is one.
So you could clearly guess the original value is two.
And when we perform right ship two, we get basically original value divided by two race to end very
and represent the number of ship that we perform, right?
In this case, we perform shift by a single bit position.
OK, in that case, we will be getting additional value by two to one, which is dividing by two to
so to divide by two, it'll basically result into one, right?
So we could easily perform this computation.
OK.
With the logical shift, right, the next one that we have is an automatic shift, right?
So this can again be divided into two categories so left.
And we have.
Right, right.
So left.
Will operate exactly similar to what we discussed in a logical left shift, or guess who will not be
discussing it?
This will be exactly equal to what we discuss with the logical left right when we consider right, for
example, the latest, as you will.
So one see to see it right.
So automatically, if this predominant view delays, when we work with the same number 18, it may be
better present the same bitrate.
So this is the same bit that we have for a number.
And this basically represented the No is the negative number, right?
When by design.
So when we perform right shift, let's assume we perform a shift by a factor of one.
So we again have a four compartment, right?
So this weight will be thrown out, OK, to make the place for one bit rate.
So we will be going.
This will be going.
This zero will be coming over here.
This one will be coming over here.
But now when we consider the automatic shift, OK, so it maintains the sine bitrate.
So whatever value that we have on hand is beside.
OK, so that represent the same.
So we maintain the same value at the same rate.
So here we do not have been zero as we are doing with the logical automatic and logical right chip.
OK, but in a case of an automatic right shift, we preserve the same bitrate.
So this will be as it is at whatever value that we have over here will be shifted on the right side,
right?
So to consider one more example, let's assume the same value, right?
We have one zero zero one against the same value, but in this case, the factor of shift is to right.
We need to perform shift by the double digits rate.
So we again draw for compartment.
OK.
Again, same with this one.
So this debate will be gone, right?
So this zero will be coming over here.
This one will be coming over here.
Then again.
OK, so we will whatever value that we have on n same, but will be again.
Our data were here and here.
Right.
So whatever we have on assignment, OK, we will be adding that value on the bits that are left when
we remove the bit, for example, distributor input.
OK, so we have this stupid right.
So after we perform shifting right, this two will be shifted right here, right?
And whatever bit left there, we add a sign which greatly in this case you are saying which is one.
OK, so would the position will be filled with the same bit value?
That is what now if we're going to do that, if we have.
OK, zero on insane, right?
Right.
So zero one one zero.
Let's assume this is the value right?
And we perform shift by a factor of two.
Right?
So again, for a compartment we have.
Right.
So this tool will be gone right because we want to perform well, right?
Shift right to this two bit.
This two values will be coming out zero one, whatever value that we have.
So this one will be coming over here.
This zero will be coming over here.
And then the two positions that are left will be filled with whatever value that we have on the same
bit rate.
So here we have a value of zero.
So this two position will be filled with the Z, right?
So this is how we perform automatically, right?
Right.
So these are the four operation that we frequently utilize an automatic operation.
We predominantly work with the same number, right?
And when we discuss the function that are used to specify which type of shift that we are utilizing,
we'll get to the are differentiated on the basis of the data rate that we are specifying.
So when we specify Unsane, so that basically give us the logical shift and then we can the same to
be automatically give us the ultimate ActionScript.
So just to summarize, we have two type of shift, OK, that will either be a logical shift, or it
could either be an automatic
shift, right?
So logic, a shift can be further divided into two could either be right or left.
Similarly, automatic could be divided into right and left right in this case, when we consider a logical
right.
OK, so when we consider logical, right?
So we had zero.
OK, two and pivot again, we removed a lisp, right?
So this is how we perform the right shift and when we consider the logical left right.
So we are zero from an Elizabeth site and we remove the bit from an image we say, right?
So this is how we make a prediction for zero to be added.
And unless we pretend when we consider are automatic so left or exactly operate as we have ideological
left.
OK, so this is exactly similar we will be having.
Who will be adding the euro to analyze the site and reviewing out the mystery bit?
But when we consider the right shift, so we will be maintaining the same bit.
So even though the shift operation will be exactly grueling, that is the bit that we have wanted in
this bill will be removed.
But whatever value that we have, an insane bit is used to feel the Viking position, right, so it
will not be filled with a zero.
Instead, it will be filled with whatever the value that we have for sign bitrate that is the MSP better
off register.
So remember this fundamental because these are useful as we progress to use the functions that are available
to perform shift operation in.