The ant must move five places
so the ant is facing towards up starting his journey, not towards right?pka meant to say The ant must move five places right & three places up.
The ant could change its mind and start off to the right right.so the ant is facing towards up starting his journey, not towards right?
After taking 5 rights he now faces towards right .So to left is B he takes 3 steps.
how do i decide which side the ant faces after taking every step
Just try a few possible paths in order to discover the requirements for a shortest path. Show us your pictures. We're all familiar with this sort of problem, so we can start already knowing how it works. You need to see it for yourself. So that's all the hint I can give.so the ant is facing towards up starting his journey, not towards right?
After taking 5 rights he now faces towards right .So to left is B he takes 3 steps.
how do i decide which side the ant faces after taking every step
Yes i did some possible steps.Just try a few possible paths in order to discover the requirements for a shortest path. Show us your pictures. We're all familiar with this sort of problem, so we can start already knowing how it works. You need to see it for yourself. So that's all the hint I can give.
Which direction it faces is irrelevant; all that matters is the direction of movement on each step.
Did you not find that if you go right and then left, you go farther than if you always go either right or up? That's what I expected you to realize.Yes i did some possible steps.
Right , up or left , right, up or left , right ,up or left, right, right
Another maybe ,
Right , up or left , up or left , right ,right ,up or left, right, right
In the image, it never goes left. I wonder if you are thinking that right and left refer to the direction of turning, rather than motion? It's intended to mean the latter. Your image consists of only right and up motions, so it is one of the shortest possible routes you are to count.(Right , up or left , right, up or left , right ,up or left, right, right) Given in the image
As I said, the problem has absolutely nothing to do with the direction it is facing, or with turning. The problem could just as well have been stated in terms of sliding a pawn along the grid. Do you understand that? It is just sitting there at the start, and can be moved either up or right from location A.For all of this arrangements , the problem demands that I assume the ant is Facing upwards before starting it's journey .
I have given or as after ant takes the first right and reaches the second point , now he has to go to 3rd point if it faces towards right then it has to take left OR if it faces upwards , then it has to go up to go to 3rd point.
To Sauyojit, the number of ways to arrange the string [MATH]RRRRRUUU[/MATH] is [MATH]\dfrac{8!}{5!\cdot 3!}=56[/MATH].Yes i did some possible steps.
Right , up or left , right, up or left , right ,up or left, right, right
Another maybe ,
Right , up or left , up or left , right ,right ,up or left, right, right
This is the confusion and i hope i am able to explain to you .