Post correspondence problem for finite monoids
Clash Royale CLAN TAG#URR8PPP
up vote
5
down vote
favorite
The Post correspondence problem has the following version for finite monoids:
Input: a finite monoid $M$ and a finite list $(m_1,m_1'),ldots, (m_n,m_n')$ of pairs of elements of $M$
Question: is there a natural number $kgeq 1$ and indices $i_1,ldots, i_kin 1,ldots, n$ such that $m_i_1cdotcdots cdot m_i_k = m_i_1'cdotcdots cdot m_i_k'$?
Is it known whether this problem is decidable?
decidability monoid post-correspondence
add a comment |Â
up vote
5
down vote
favorite
The Post correspondence problem has the following version for finite monoids:
Input: a finite monoid $M$ and a finite list $(m_1,m_1'),ldots, (m_n,m_n')$ of pairs of elements of $M$
Question: is there a natural number $kgeq 1$ and indices $i_1,ldots, i_kin 1,ldots, n$ such that $m_i_1cdotcdots cdot m_i_k = m_i_1'cdotcdots cdot m_i_k'$?
Is it known whether this problem is decidable?
decidability monoid post-correspondence
add a comment |Â
up vote
5
down vote
favorite
up vote
5
down vote
favorite
The Post correspondence problem has the following version for finite monoids:
Input: a finite monoid $M$ and a finite list $(m_1,m_1'),ldots, (m_n,m_n')$ of pairs of elements of $M$
Question: is there a natural number $kgeq 1$ and indices $i_1,ldots, i_kin 1,ldots, n$ such that $m_i_1cdotcdots cdot m_i_k = m_i_1'cdotcdots cdot m_i_k'$?
Is it known whether this problem is decidable?
decidability monoid post-correspondence
The Post correspondence problem has the following version for finite monoids:
Input: a finite monoid $M$ and a finite list $(m_1,m_1'),ldots, (m_n,m_n')$ of pairs of elements of $M$
Question: is there a natural number $kgeq 1$ and indices $i_1,ldots, i_kin 1,ldots, n$ such that $m_i_1cdotcdots cdot m_i_k = m_i_1'cdotcdots cdot m_i_k'$?
Is it known whether this problem is decidable?
decidability monoid post-correspondence
asked Aug 13 at 21:04
user23902
261
261
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
9
down vote
Yes, it is decidable. Build a graph where each vertex is a pair $(r,s)$ of elements from $M$. Add all edges of the form $(r,s) to (r m_i, s m'_i)$ for all $r,s,i$. Then, your question asks whether there exists a path in this graph from the vertex $(1,1)$ to any vertex of the form $(t,t)$. This can be answered using standard reachability algorithms (e.g., DFS). The running time is linear in the size of the graph (i.e., $O(|M|^2 n)$), so the problem is decidable.
So is DFS faster than BFS here?
â Bjørn Kjos-Hanssenâ¦
Aug 13 at 22:50
1
@BjørnKjos-Hanssen, no, they both run in linear time (linear in the size of the graph) so their asymptotic worst-case running time is equivalent.
â D.W.
Aug 13 at 23:06
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
9
down vote
Yes, it is decidable. Build a graph where each vertex is a pair $(r,s)$ of elements from $M$. Add all edges of the form $(r,s) to (r m_i, s m'_i)$ for all $r,s,i$. Then, your question asks whether there exists a path in this graph from the vertex $(1,1)$ to any vertex of the form $(t,t)$. This can be answered using standard reachability algorithms (e.g., DFS). The running time is linear in the size of the graph (i.e., $O(|M|^2 n)$), so the problem is decidable.
So is DFS faster than BFS here?
â Bjørn Kjos-Hanssenâ¦
Aug 13 at 22:50
1
@BjørnKjos-Hanssen, no, they both run in linear time (linear in the size of the graph) so their asymptotic worst-case running time is equivalent.
â D.W.
Aug 13 at 23:06
add a comment |Â
up vote
9
down vote
Yes, it is decidable. Build a graph where each vertex is a pair $(r,s)$ of elements from $M$. Add all edges of the form $(r,s) to (r m_i, s m'_i)$ for all $r,s,i$. Then, your question asks whether there exists a path in this graph from the vertex $(1,1)$ to any vertex of the form $(t,t)$. This can be answered using standard reachability algorithms (e.g., DFS). The running time is linear in the size of the graph (i.e., $O(|M|^2 n)$), so the problem is decidable.
So is DFS faster than BFS here?
â Bjørn Kjos-Hanssenâ¦
Aug 13 at 22:50
1
@BjørnKjos-Hanssen, no, they both run in linear time (linear in the size of the graph) so their asymptotic worst-case running time is equivalent.
â D.W.
Aug 13 at 23:06
add a comment |Â
up vote
9
down vote
up vote
9
down vote
Yes, it is decidable. Build a graph where each vertex is a pair $(r,s)$ of elements from $M$. Add all edges of the form $(r,s) to (r m_i, s m'_i)$ for all $r,s,i$. Then, your question asks whether there exists a path in this graph from the vertex $(1,1)$ to any vertex of the form $(t,t)$. This can be answered using standard reachability algorithms (e.g., DFS). The running time is linear in the size of the graph (i.e., $O(|M|^2 n)$), so the problem is decidable.
Yes, it is decidable. Build a graph where each vertex is a pair $(r,s)$ of elements from $M$. Add all edges of the form $(r,s) to (r m_i, s m'_i)$ for all $r,s,i$. Then, your question asks whether there exists a path in this graph from the vertex $(1,1)$ to any vertex of the form $(t,t)$. This can be answered using standard reachability algorithms (e.g., DFS). The running time is linear in the size of the graph (i.e., $O(|M|^2 n)$), so the problem is decidable.
answered Aug 13 at 22:40
D.W.
7,18812048
7,18812048
So is DFS faster than BFS here?
â Bjørn Kjos-Hanssenâ¦
Aug 13 at 22:50
1
@BjørnKjos-Hanssen, no, they both run in linear time (linear in the size of the graph) so their asymptotic worst-case running time is equivalent.
â D.W.
Aug 13 at 23:06
add a comment |Â
So is DFS faster than BFS here?
â Bjørn Kjos-Hanssenâ¦
Aug 13 at 22:50
1
@BjørnKjos-Hanssen, no, they both run in linear time (linear in the size of the graph) so their asymptotic worst-case running time is equivalent.
â D.W.
Aug 13 at 23:06
So is DFS faster than BFS here?
â Bjørn Kjos-Hanssenâ¦
Aug 13 at 22:50
So is DFS faster than BFS here?
â Bjørn Kjos-Hanssenâ¦
Aug 13 at 22:50
1
1
@BjørnKjos-Hanssen, no, they both run in linear time (linear in the size of the graph) so their asymptotic worst-case running time is equivalent.
â D.W.
Aug 13 at 23:06
@BjørnKjos-Hanssen, no, they both run in linear time (linear in the size of the graph) so their asymptotic worst-case running time is equivalent.
â D.W.
Aug 13 at 23:06
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcstheory.stackexchange.com%2fquestions%2f41373%2fpost-correspondence-problem-for-finite-monoids%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password