Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This seem to be a very hard problem! I believe that even the decision problem to determine if a sequence of transforms exists (to convert source to target) is an <a href="http://en.wikipedia.org/wiki/Undecidable_problem" rel="nofollow noreferrer">Undecidable Problem</a>. Look at the <a href="http://en.wikipedia.org/wiki/Tag_system" rel="nofollow noreferrer">Tag System</a> page on the page of <a href="http://en.wikipedia.org/wiki/List_of_undecidable_problems" rel="nofollow noreferrer">List of Undecidable Problems</a>.</p> <p>In fact, it looks like the decision verion of your problem is at least as hard as the <a href="http://en.wikipedia.org/wiki/Collatz_conjecture" rel="nofollow noreferrer">Collatz Conjecture</a>, which states that the sequence </p> <pre><code>n -&gt; n/2 if n is even n -&gt; 3n+1 if n is odd </code></pre> <p>always ends in 1.</p> <p>This conjecture can be stated as:</p> <p>given the set of transforms</p> <pre><code>a -&gt; bc b -&gt; a c -&gt; aaa </code></pre> <p>Can the word</p> <pre><code>aaa...aaa (a repeated n times) </code></pre> <p>eventually be transformed to the word</p> <pre><code>a </code></pre> <p>(The single letter a).</p> <p>Since the transformations only take one character at a time, the order does not matter: a word can be viewed as a multiset and is applicable to your problem.</p> <p>This set of transforms for the Collatz Conjecture was gotten from here: <a href="http://logica.ugent.be/liesbeth/TagColOK.pdf" rel="nofollow noreferrer">http://logica.ugent.be/liesbeth/TagColOK.pdf</a> (see page 7).</p> <p>Basically we cannot even be sure if any algorithm for this particular problem will ever terminate on all inputs.</p> <p>I guess you just need to explore all paths (using BFS/A* whatever) and hope you get lucky.</p> <p>Of course, if your rules of transformation always <em>reduced</em> the number of symbols, then an exhaustive search (even DFS) would surely halt.</p> <p>So, as you said, do a BFS/heuristic. But, now after this information, I guess you can do it <em>confidently</em>. :-)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload