How would be a formal answer for an automata geometry problem?Push down automata problemFormal proving of...

How does one intimidate enemies without having the capacity for violence?

Why is an old chain unsafe?

Do airline pilots ever risk not hearing communication directed to them specifically, from traffic controllers?

Can I make popcorn with any corn?

"You are your self first supporter", a more proper way to say it

Motorized valve interfering with button?

How to add power-LED to my small amplifier?

What do you call a Matrix-like slowdown and camera movement effect?

What makes Graph invariants so useful/important?

Could a US political party gain complete control over the government by removing checks & balances?

Is there a familial term for apples and pears?

What is the offset in a seaplane's hull?

Why was the small council so happy for Tyrion to become the Master of Coin?

Why CLRS example on residual networks does not follows its formula?

How can bays and straits be determined in a procedurally generated map?

What is the command to reset a PC without deleting any files

Why is the design of haulage companies so “special”?

DOS, create pipe for stdin/stdout of command.com(or 4dos.com) in C or Batch?

What would happen to a modern skyscraper if it rains micro blackholes?

XeLaTeX and pdfLaTeX ignore hyphenation

What would the Romans have called "sorcery"?

What typically incentivizes a professor to change jobs to a lower ranking university?

Example of a relative pronoun

What Brexit solution does the DUP want?



How would be a formal answer for an automata geometry problem?


Push down automata problemFormal proving of languages accepted by a finite automata.how to create transition system/automata for modulo 4What Vector Operation Performs $(a,b)*(c,d)=(ac-bd,ad+bc)$?How would I use vectors for this geometry problem?Pushdown Automata formal definition, L(M), tracing inputDrawing automata for languagesConstructing automata for regular languagesFinite automata problemIntersection of two languages (Formal Languages and Automata Theory)













1












$begingroup$


Let an automaton $A$ sit on point $O$ $(0,0)$ and turned to the North. That automaton can execute only any combination of three different commands in each step:




  • Move one unit forward

  • Turn 90 degrees clockwise

  • Turn 90 degrees counterclockwise


Let $Sigma = {F, R, L}$ represent the mentioned commands. Now, $w$ is a word in $Sigma^*$ with a routine that the automaton will execute indefinitely.



Example: $w =$ 'F'



at step 0, A is on (0,0) pointing to North
at step 1, A is on (0,1) stil pointing to North
...


$w =$ 'FL'



at step 0, A is on (0,0) pointing to North
at step 1, A is on (0,1) pointing to West
at step 2, A is on (-1,1) pointing to South
at step 3, A is on (-1,0) pointing to East
at step 4, A is on (0,0) pointing to North (again)


Question: Given $w$, decide if the $A$ will be stuck in a cycle.



I can intuitively answer that question, but I cannot formalize:



If after step 1, $A$ is on $(0,0)$ or pointing to West, South, or East, then $A$ is in a cycle.



Suppose that after step 1, for any $w$, $A$ is at $(a, b)$. Let $S$ a sequence of positions that $A$ takes in each step, $S = {s_0, s_1, s_2, s_4, ldots }$, $s_0 = (0,0)$, $s_1 =(a,b)$. Let $u$ be the vector $(a,b)$ and $f$ be a function of rotation relative to initial orientation to final orientation after $w$. Finally, let $w = f(u)$. Then



begin{array}
ss_1 = s_0 + u, \
s_2 = s_0 + u + w, \
s_3 = s_0 + u + w + f(f(u)) , \
s_4 = s_0 + u + w + f(f(u)) + f(f(w)),
end{array}



If $f$ is a 90 degrees rotation (clockwise or counterclockwise) then $f(f(u)) = -u$. If $f$ is a 180 degrees rotation then $f(u) = -u$. In such cases,



begin{array}
ss_4 = s_0
end{array}



therefore, $A$ only "escapes" if:



f is the identity rotation 
u != (0,0)


To verify whether $f$ is the identity rotation, the number of 'L' commands in $w$ should be equal to the number of 'R' commands.










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    Use Sigma for Big_Sigma. You should have a look through math.meta.stackexchange.com/questions/5020/… for a quick reference on formatting mathematical expressions in MathJax, which is the norm here.
    $endgroup$
    – amd
    Mar 20 at 18:21


















1












$begingroup$


Let an automaton $A$ sit on point $O$ $(0,0)$ and turned to the North. That automaton can execute only any combination of three different commands in each step:




  • Move one unit forward

  • Turn 90 degrees clockwise

  • Turn 90 degrees counterclockwise


Let $Sigma = {F, R, L}$ represent the mentioned commands. Now, $w$ is a word in $Sigma^*$ with a routine that the automaton will execute indefinitely.



Example: $w =$ 'F'



at step 0, A is on (0,0) pointing to North
at step 1, A is on (0,1) stil pointing to North
...


$w =$ 'FL'



at step 0, A is on (0,0) pointing to North
at step 1, A is on (0,1) pointing to West
at step 2, A is on (-1,1) pointing to South
at step 3, A is on (-1,0) pointing to East
at step 4, A is on (0,0) pointing to North (again)


Question: Given $w$, decide if the $A$ will be stuck in a cycle.



I can intuitively answer that question, but I cannot formalize:



If after step 1, $A$ is on $(0,0)$ or pointing to West, South, or East, then $A$ is in a cycle.



Suppose that after step 1, for any $w$, $A$ is at $(a, b)$. Let $S$ a sequence of positions that $A$ takes in each step, $S = {s_0, s_1, s_2, s_4, ldots }$, $s_0 = (0,0)$, $s_1 =(a,b)$. Let $u$ be the vector $(a,b)$ and $f$ be a function of rotation relative to initial orientation to final orientation after $w$. Finally, let $w = f(u)$. Then



begin{array}
ss_1 = s_0 + u, \
s_2 = s_0 + u + w, \
s_3 = s_0 + u + w + f(f(u)) , \
s_4 = s_0 + u + w + f(f(u)) + f(f(w)),
end{array}



If $f$ is a 90 degrees rotation (clockwise or counterclockwise) then $f(f(u)) = -u$. If $f$ is a 180 degrees rotation then $f(u) = -u$. In such cases,



begin{array}
ss_4 = s_0
end{array}



therefore, $A$ only "escapes" if:



f is the identity rotation 
u != (0,0)


To verify whether $f$ is the identity rotation, the number of 'L' commands in $w$ should be equal to the number of 'R' commands.










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    Use Sigma for Big_Sigma. You should have a look through math.meta.stackexchange.com/questions/5020/… for a quick reference on formatting mathematical expressions in MathJax, which is the norm here.
    $endgroup$
    – amd
    Mar 20 at 18:21
















1












1








1





$begingroup$


Let an automaton $A$ sit on point $O$ $(0,0)$ and turned to the North. That automaton can execute only any combination of three different commands in each step:




  • Move one unit forward

  • Turn 90 degrees clockwise

  • Turn 90 degrees counterclockwise


Let $Sigma = {F, R, L}$ represent the mentioned commands. Now, $w$ is a word in $Sigma^*$ with a routine that the automaton will execute indefinitely.



Example: $w =$ 'F'



at step 0, A is on (0,0) pointing to North
at step 1, A is on (0,1) stil pointing to North
...


$w =$ 'FL'



at step 0, A is on (0,0) pointing to North
at step 1, A is on (0,1) pointing to West
at step 2, A is on (-1,1) pointing to South
at step 3, A is on (-1,0) pointing to East
at step 4, A is on (0,0) pointing to North (again)


Question: Given $w$, decide if the $A$ will be stuck in a cycle.



I can intuitively answer that question, but I cannot formalize:



If after step 1, $A$ is on $(0,0)$ or pointing to West, South, or East, then $A$ is in a cycle.



Suppose that after step 1, for any $w$, $A$ is at $(a, b)$. Let $S$ a sequence of positions that $A$ takes in each step, $S = {s_0, s_1, s_2, s_4, ldots }$, $s_0 = (0,0)$, $s_1 =(a,b)$. Let $u$ be the vector $(a,b)$ and $f$ be a function of rotation relative to initial orientation to final orientation after $w$. Finally, let $w = f(u)$. Then



begin{array}
ss_1 = s_0 + u, \
s_2 = s_0 + u + w, \
s_3 = s_0 + u + w + f(f(u)) , \
s_4 = s_0 + u + w + f(f(u)) + f(f(w)),
end{array}



If $f$ is a 90 degrees rotation (clockwise or counterclockwise) then $f(f(u)) = -u$. If $f$ is a 180 degrees rotation then $f(u) = -u$. In such cases,



begin{array}
ss_4 = s_0
end{array}



therefore, $A$ only "escapes" if:



f is the identity rotation 
u != (0,0)


To verify whether $f$ is the identity rotation, the number of 'L' commands in $w$ should be equal to the number of 'R' commands.










share|cite|improve this question











$endgroup$




Let an automaton $A$ sit on point $O$ $(0,0)$ and turned to the North. That automaton can execute only any combination of three different commands in each step:




  • Move one unit forward

  • Turn 90 degrees clockwise

  • Turn 90 degrees counterclockwise


Let $Sigma = {F, R, L}$ represent the mentioned commands. Now, $w$ is a word in $Sigma^*$ with a routine that the automaton will execute indefinitely.



Example: $w =$ 'F'



at step 0, A is on (0,0) pointing to North
at step 1, A is on (0,1) stil pointing to North
...


$w =$ 'FL'



at step 0, A is on (0,0) pointing to North
at step 1, A is on (0,1) pointing to West
at step 2, A is on (-1,1) pointing to South
at step 3, A is on (-1,0) pointing to East
at step 4, A is on (0,0) pointing to North (again)


Question: Given $w$, decide if the $A$ will be stuck in a cycle.



I can intuitively answer that question, but I cannot formalize:



If after step 1, $A$ is on $(0,0)$ or pointing to West, South, or East, then $A$ is in a cycle.



Suppose that after step 1, for any $w$, $A$ is at $(a, b)$. Let $S$ a sequence of positions that $A$ takes in each step, $S = {s_0, s_1, s_2, s_4, ldots }$, $s_0 = (0,0)$, $s_1 =(a,b)$. Let $u$ be the vector $(a,b)$ and $f$ be a function of rotation relative to initial orientation to final orientation after $w$. Finally, let $w = f(u)$. Then



begin{array}
ss_1 = s_0 + u, \
s_2 = s_0 + u + w, \
s_3 = s_0 + u + w + f(f(u)) , \
s_4 = s_0 + u + w + f(f(u)) + f(f(w)),
end{array}



If $f$ is a 90 degrees rotation (clockwise or counterclockwise) then $f(f(u)) = -u$. If $f$ is a 180 degrees rotation then $f(u) = -u$. In such cases,



begin{array}
ss_4 = s_0
end{array}



therefore, $A$ only "escapes" if:



f is the identity rotation 
u != (0,0)


To verify whether $f$ is the identity rotation, the number of 'L' commands in $w$ should be equal to the number of 'R' commands.







linear-algebra geometry automata






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Mar 21 at 10:00







rdllopes

















asked Mar 20 at 11:49









rdllopesrdllopes

1063




1063








  • 1




    $begingroup$
    Use Sigma for Big_Sigma. You should have a look through math.meta.stackexchange.com/questions/5020/… for a quick reference on formatting mathematical expressions in MathJax, which is the norm here.
    $endgroup$
    – amd
    Mar 20 at 18:21
















  • 1




    $begingroup$
    Use Sigma for Big_Sigma. You should have a look through math.meta.stackexchange.com/questions/5020/… for a quick reference on formatting mathematical expressions in MathJax, which is the norm here.
    $endgroup$
    – amd
    Mar 20 at 18:21










1




1




$begingroup$
Use Sigma for Big_Sigma. You should have a look through math.meta.stackexchange.com/questions/5020/… for a quick reference on formatting mathematical expressions in MathJax, which is the norm here.
$endgroup$
– amd
Mar 20 at 18:21






$begingroup$
Use Sigma for Big_Sigma. You should have a look through math.meta.stackexchange.com/questions/5020/… for a quick reference on formatting mathematical expressions in MathJax, which is the norm here.
$endgroup$
– amd
Mar 20 at 18:21












1 Answer
1






active

oldest

votes


















2












$begingroup$

Let initial state be $P_0=(0,0,N)$ and $P_1=(a,b,X)$ be the state after step 1. Then:




  • If $P_1=(0,0,X)$ then $A$ will stay forever at its starting point.


  • If $P_1=(a,b,E)$ then $A$ underwent a counterclockwise rotation of $90°$ about center
    $displaystyle C=left({a-bover2},{a+bover2}right)$. Thus after 4 repetitions $A$ is back to start.


  • If $P_1=(a,b,W)$ then $A$ underwent a clockwise rotation of $90°$ about center
    $displaystyle C=left({a+bover2},{a-bover2}right)$. Thus after 4 repetitions $A$ is back to start.


  • If $P_1=(a,b,S)$ then $A$ underwent a rotation of $180°$ about center
    $displaystyle C=left({aover2},{bover2}right)$. Thus after 2 repetitions $A$ is back to start.


  • If $P_1=(a,b,N)$ then $A$ underwent a translation by vector $(a,b)$. Thus it will never return to starting point, unless $(a,b)=(0,0)$.







share|cite|improve this answer









$endgroup$













  • $begingroup$
    That solution just ignores the path performed by $A$ and assume an arc between $P_0$ and $P_1$.
    $endgroup$
    – rdllopes
    Mar 21 at 9:58






  • 1




    $begingroup$
    A rotation is a transformation of points in the plane, no arc implied. I used those rotations because not only they carry $P_0$ to $P_1$, but they also give the correct transformation from the orientation at $P_0$ to the orientation at $P_1$.
    $endgroup$
    – Aretino
    Mar 21 at 13:49












Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3155340%2fhow-would-be-a-formal-answer-for-an-automata-geometry-problem%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2












$begingroup$

Let initial state be $P_0=(0,0,N)$ and $P_1=(a,b,X)$ be the state after step 1. Then:




  • If $P_1=(0,0,X)$ then $A$ will stay forever at its starting point.


  • If $P_1=(a,b,E)$ then $A$ underwent a counterclockwise rotation of $90°$ about center
    $displaystyle C=left({a-bover2},{a+bover2}right)$. Thus after 4 repetitions $A$ is back to start.


  • If $P_1=(a,b,W)$ then $A$ underwent a clockwise rotation of $90°$ about center
    $displaystyle C=left({a+bover2},{a-bover2}right)$. Thus after 4 repetitions $A$ is back to start.


  • If $P_1=(a,b,S)$ then $A$ underwent a rotation of $180°$ about center
    $displaystyle C=left({aover2},{bover2}right)$. Thus after 2 repetitions $A$ is back to start.


  • If $P_1=(a,b,N)$ then $A$ underwent a translation by vector $(a,b)$. Thus it will never return to starting point, unless $(a,b)=(0,0)$.







share|cite|improve this answer









$endgroup$













  • $begingroup$
    That solution just ignores the path performed by $A$ and assume an arc between $P_0$ and $P_1$.
    $endgroup$
    – rdllopes
    Mar 21 at 9:58






  • 1




    $begingroup$
    A rotation is a transformation of points in the plane, no arc implied. I used those rotations because not only they carry $P_0$ to $P_1$, but they also give the correct transformation from the orientation at $P_0$ to the orientation at $P_1$.
    $endgroup$
    – Aretino
    Mar 21 at 13:49
















2












$begingroup$

Let initial state be $P_0=(0,0,N)$ and $P_1=(a,b,X)$ be the state after step 1. Then:




  • If $P_1=(0,0,X)$ then $A$ will stay forever at its starting point.


  • If $P_1=(a,b,E)$ then $A$ underwent a counterclockwise rotation of $90°$ about center
    $displaystyle C=left({a-bover2},{a+bover2}right)$. Thus after 4 repetitions $A$ is back to start.


  • If $P_1=(a,b,W)$ then $A$ underwent a clockwise rotation of $90°$ about center
    $displaystyle C=left({a+bover2},{a-bover2}right)$. Thus after 4 repetitions $A$ is back to start.


  • If $P_1=(a,b,S)$ then $A$ underwent a rotation of $180°$ about center
    $displaystyle C=left({aover2},{bover2}right)$. Thus after 2 repetitions $A$ is back to start.


  • If $P_1=(a,b,N)$ then $A$ underwent a translation by vector $(a,b)$. Thus it will never return to starting point, unless $(a,b)=(0,0)$.







share|cite|improve this answer









$endgroup$













  • $begingroup$
    That solution just ignores the path performed by $A$ and assume an arc between $P_0$ and $P_1$.
    $endgroup$
    – rdllopes
    Mar 21 at 9:58






  • 1




    $begingroup$
    A rotation is a transformation of points in the plane, no arc implied. I used those rotations because not only they carry $P_0$ to $P_1$, but they also give the correct transformation from the orientation at $P_0$ to the orientation at $P_1$.
    $endgroup$
    – Aretino
    Mar 21 at 13:49














2












2








2





$begingroup$

Let initial state be $P_0=(0,0,N)$ and $P_1=(a,b,X)$ be the state after step 1. Then:




  • If $P_1=(0,0,X)$ then $A$ will stay forever at its starting point.


  • If $P_1=(a,b,E)$ then $A$ underwent a counterclockwise rotation of $90°$ about center
    $displaystyle C=left({a-bover2},{a+bover2}right)$. Thus after 4 repetitions $A$ is back to start.


  • If $P_1=(a,b,W)$ then $A$ underwent a clockwise rotation of $90°$ about center
    $displaystyle C=left({a+bover2},{a-bover2}right)$. Thus after 4 repetitions $A$ is back to start.


  • If $P_1=(a,b,S)$ then $A$ underwent a rotation of $180°$ about center
    $displaystyle C=left({aover2},{bover2}right)$. Thus after 2 repetitions $A$ is back to start.


  • If $P_1=(a,b,N)$ then $A$ underwent a translation by vector $(a,b)$. Thus it will never return to starting point, unless $(a,b)=(0,0)$.







share|cite|improve this answer









$endgroup$



Let initial state be $P_0=(0,0,N)$ and $P_1=(a,b,X)$ be the state after step 1. Then:




  • If $P_1=(0,0,X)$ then $A$ will stay forever at its starting point.


  • If $P_1=(a,b,E)$ then $A$ underwent a counterclockwise rotation of $90°$ about center
    $displaystyle C=left({a-bover2},{a+bover2}right)$. Thus after 4 repetitions $A$ is back to start.


  • If $P_1=(a,b,W)$ then $A$ underwent a clockwise rotation of $90°$ about center
    $displaystyle C=left({a+bover2},{a-bover2}right)$. Thus after 4 repetitions $A$ is back to start.


  • If $P_1=(a,b,S)$ then $A$ underwent a rotation of $180°$ about center
    $displaystyle C=left({aover2},{bover2}right)$. Thus after 2 repetitions $A$ is back to start.


  • If $P_1=(a,b,N)$ then $A$ underwent a translation by vector $(a,b)$. Thus it will never return to starting point, unless $(a,b)=(0,0)$.








share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Mar 20 at 16:15









AretinoAretino

25.8k31545




25.8k31545












  • $begingroup$
    That solution just ignores the path performed by $A$ and assume an arc between $P_0$ and $P_1$.
    $endgroup$
    – rdllopes
    Mar 21 at 9:58






  • 1




    $begingroup$
    A rotation is a transformation of points in the plane, no arc implied. I used those rotations because not only they carry $P_0$ to $P_1$, but they also give the correct transformation from the orientation at $P_0$ to the orientation at $P_1$.
    $endgroup$
    – Aretino
    Mar 21 at 13:49


















  • $begingroup$
    That solution just ignores the path performed by $A$ and assume an arc between $P_0$ and $P_1$.
    $endgroup$
    – rdllopes
    Mar 21 at 9:58






  • 1




    $begingroup$
    A rotation is a transformation of points in the plane, no arc implied. I used those rotations because not only they carry $P_0$ to $P_1$, but they also give the correct transformation from the orientation at $P_0$ to the orientation at $P_1$.
    $endgroup$
    – Aretino
    Mar 21 at 13:49
















$begingroup$
That solution just ignores the path performed by $A$ and assume an arc between $P_0$ and $P_1$.
$endgroup$
– rdllopes
Mar 21 at 9:58




$begingroup$
That solution just ignores the path performed by $A$ and assume an arc between $P_0$ and $P_1$.
$endgroup$
– rdllopes
Mar 21 at 9:58




1




1




$begingroup$
A rotation is a transformation of points in the plane, no arc implied. I used those rotations because not only they carry $P_0$ to $P_1$, but they also give the correct transformation from the orientation at $P_0$ to the orientation at $P_1$.
$endgroup$
– Aretino
Mar 21 at 13:49




$begingroup$
A rotation is a transformation of points in the plane, no arc implied. I used those rotations because not only they carry $P_0$ to $P_1$, but they also give the correct transformation from the orientation at $P_0$ to the orientation at $P_1$.
$endgroup$
– Aretino
Mar 21 at 13:49


















draft saved

draft discarded




















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3155340%2fhow-would-be-a-formal-answer-for-an-automata-geometry-problem%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

六本木駅

Integral that is continuous and looks like it converges to a geometric seriesTesting if a geometric series converges by taking limit to infinitySummation of arithmetic-geometric series of higher orderGeometric series with polynomial exponentHow to Recognize a Geometric SeriesShowing an integral equality with series over the integersDiscontinuity of a series of continuous functionsReasons why a Series ConvergesSum of infinite geometric series with two terms in summationUsing geometric series for computing IntegralsLimit of geometric series sum when $r = 1$

Joseph Lister