{"id":3891,"date":"2023-06-30T17:28:51","date_gmt":"2023-06-30T11:58:51","guid":{"rendered":"https:\/\/www.interviewbit.com\/blog\/?p=3891"},"modified":"2023-06-30T17:33:24","modified_gmt":"2023-06-30T12:03:24","slug":"post-correspondence-problem","status":"publish","type":"post","link":"https:\/\/www.interviewbit.com\/blog\/post-correspondence-problem\/","title":{"rendered":"Post Correspondence Problem"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<div class=\"gutentoc tocactive nostyle\"><div class=\"gutentoc-toc-wrap\"><div class=\"gutentoc-toc-title-wrap\"><div class=\"gutentoc-toc-title\">Table Of Contents<\/div><div id=\"open\" class=\"text_open\">show<\/div><\/div><div id=\"toclist\"><div class=\"gutentoc-toc__list-wrap\"><ul class=\"gutentoc-toc__list\"><li><a href=\"#problem-statement\">Problem Statement<\/a><\/li><li><a href=\"#representation-of-the-problem\">Representation of the Problem<\/a><\/li><ul class=\"gutentoc-toc__list\"><li><a href=\"#domino-form\">Domino Form<\/a><\/li><li><a href=\"#table-form\">Table Form<\/a><\/li><\/ul><li><a href=\"#proof-of-undecidability\">Proof of Undecidability<\/a><\/li><li><a href=\"#faqs\">FAQs<\/a><\/li><ul class=\"gutentoc-toc__list\"><li><a href=\"#q1-what-are-some-other-well-known-undecidable-problems-related-to-a-turing-machine\">Q.1 What are some other well-known undecidable problems related to a Turing Machine?<\/a><\/li><li><a href=\"#q2-what-is-the-halting-problem\">Q.2: What is the Halting Problem?<\/a><\/li><\/ul><\/ul><\/div><\/div><\/div><\/div>\n\n\n\n<h2 id=\"problem-statement\">Problem Statement<\/h2>\n\n\n\n<p>The Post Correspondence Problem is a popular <strong>undecidable decision problem, <\/strong>introduced by <strong>Emil Post<\/strong> in 1946. Being a problem, simpler than the <strong>Halting Problem<\/strong>, it is often used in proofs of undecidability.&nbsp;<\/p>\n\n\n\n<p>The problem is stated formally as follows,<\/p>\n\n\n\n<p>Given 2 lists of words, find if there exists a sequence such that the concatenation of the words in this order, gives the same word for both lists.<\/p>\n\n\n\n<p>For example,&nbsp;<\/p>\n\n\n\n<p>Consider the lists,&nbsp;<\/p>\n\n\n\n<p><strong>a = [b, a, aba, bb]<\/strong><br><strong>b = [ba, ba, ab, b]<\/strong><\/p>\n\n\n\n<p>For these 2 lists, the sequence <strong>[1, 2, 1, 3, 3, 4]<\/strong> will give the solution for the Post Correspondence Problem. The String that will be formed in both cases will be <strong>\u201cbababaababb\u201d<\/strong> by following the above sequence.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img  loading=\"lazy\"  width=\"1024\"  height=\"241\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\"wp-image-4052 pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"(max-width: 1024px) 100vw, 1024px\"  data-pk-src=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2021\/11\/image1-4-1024x241.png\"  data-pk-srcset=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2021\/11\/image1-4-1024x241.png 1024w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2021\/11\/image1-4-300x71.png 300w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2021\/11\/image1-4-768x181.png 768w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2021\/11\/image1-4-380x90.png 380w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2021\/11\/image1-4-550x130.png 550w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2021\/11\/image1-4-800x189.png 800w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2021\/11\/image1-4.png 1116w\" ><\/figure>\n\n\n\n<h2 id=\"representation-of-the-problem\">Representation of the Problem<\/h2>\n\n\n\n<p>Considering the 1st list to act as the numerator, and the 2nd list to act as the denominator for the problem, the problem can be represented in 2 forms:<\/p>\n\n\n\n<h3 id=\"domino-form\">Domino Form<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img  loading=\"lazy\"  width=\"877\"  height=\"321\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\"wp-image-4053 pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"(max-width: 877px) 100vw, 877px\"  data-pk-src=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2021\/11\/image3-1.png\"  data-pk-srcset=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2021\/11\/image3-1.png 877w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2021\/11\/image3-1-300x110.png 300w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2021\/11\/image3-1-768x281.png 768w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2021\/11\/image3-1-380x139.png 380w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2021\/11\/image3-1-550x201.png 550w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2021\/11\/image3-1-800x293.png 800w\" ><\/figure>\n\n\n\n<h3 id=\"table-form\">Table Form<\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><img  loading=\"lazy\"  width=\"1024\"  height=\"254\"  src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAP+KeNJXAAAAAXRSTlMAQObYZgAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=\"  alt=\"\"  class=\"wp-image-4054 pk-lazyload\"  data-pk-sizes=\"auto\"  data-ls-sizes=\"(max-width: 1024px) 100vw, 1024px\"  data-pk-src=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2021\/11\/image2-1-1024x254.png\"  data-pk-srcset=\"https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2021\/11\/image2-1-1024x254.png 1024w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2021\/11\/image2-1-300x74.png 300w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2021\/11\/image2-1-768x191.png 768w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2021\/11\/image2-1-380x94.png 380w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2021\/11\/image2-1-550x136.png 550w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2021\/11\/image2-1-800x198.png 800w, https:\/\/www.interviewbit.com\/blog\/wp-content\/uploads\/2021\/11\/image2-1.png 1060w\" ><\/figure>\n\n\n\n<h2 id=\"proof-of-undecidability\">Proof of Undecidability<\/h2>\n\n\n\n<p><strong>Undecidability<\/strong> of a problem means that there is no specific algorithm, which can accurately determine, whether the given problem has a solution or not.<\/p>\n\n\n\n<p>A well-known problem that is undecidable is the <strong>Turing Problem<\/strong>. So, if we can remodel\/reduce the <strong>Turing Problem<\/strong>, into the <strong>Postman Correspondence Problem, <\/strong>we can prove its undecidability as well.<\/p>\n\n\n\n<p>A brief sketch of the proof is as follows,<\/p>\n\n\n\n<p>Consider an instance of the <strong>Postman Correspondence Problem<\/strong>, which can, on an arbitrary input, simulate the computation of an arbitrary Turing Machine. We note that a match will occur, if and only if the Turing Machine would accept the input. The problem of deciding <strong>whether a Turing Machine will accept the given input or not<\/strong> is a well-known undecidable problem. Since the Postman Correspondence Problem reduces into this particular problem, we can say the Postman Correspondence Problem is undecidable as well, which completes our proof.<\/p>\n\n\n\n<h2 id=\"faqs\">FAQs<\/h2>\n\n\n\n<h3 id=\"q1-what-are-some-other-well-known-undecidable-problems-related-to-a-turing-machine\"><span id=\"q-1-what-are-some-other-well-known-undecidable-problems-related-to-a-turing-machine\">Q.1 What are some other well-known undecidable problems related to a Turing Machine?<\/span><\/h3>\n\n\n\n<p><strong>Ans:<\/strong> The<strong> Membership, Finiteness, and Emptiness<\/strong> of a Turing Machine are all well-known undecidable problems related to a Turing Machine.\u00a0<\/p>\n\n\n\n<h3 id=\"q2-what-is-the-halting-problem\"><span id=\"q-2-what-is-the-halting-problem\">Q.2: What is the Halting Problem?<\/span><\/h3>\n\n\n\n<p><strong>Ans<\/strong>: The <strong>Halting Problem<\/strong> is the problem of determining from the given description of an arbitrary computer program and an input, whether will the program will terminate or will continue running indefinitely into the future,<\/p>\n","protected":false},"excerpt":{"rendered":"Problem Statement The Post Correspondence Problem is a popular undecidable decision problem, introduced by Emil Post in 1946.&hellip;\n","protected":false},"author":5,"featured_media":4055,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_daextam_enable_autolinks":"1","csco_singular_sidebar":"","csco_page_header_type":"","csco_appearance_grid":"","csco_page_load_nextpost":"","csco_post_video_location":[],"csco_post_video_location_hash":"","csco_post_video_url":"","csco_post_video_bg_start_time":0,"csco_post_video_bg_end_time":0},"categories":[145],"tags":[579],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.interviewbit.com\/blog\/wp-json\/wp\/v2\/posts\/3891"}],"collection":[{"href":"https:\/\/www.interviewbit.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.interviewbit.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.interviewbit.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.interviewbit.com\/blog\/wp-json\/wp\/v2\/comments?post=3891"}],"version-history":[{"count":5,"href":"https:\/\/www.interviewbit.com\/blog\/wp-json\/wp\/v2\/posts\/3891\/revisions"}],"predecessor-version":[{"id":20995,"href":"https:\/\/www.interviewbit.com\/blog\/wp-json\/wp\/v2\/posts\/3891\/revisions\/20995"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.interviewbit.com\/blog\/wp-json\/wp\/v2\/media\/4055"}],"wp:attachment":[{"href":"https:\/\/www.interviewbit.com\/blog\/wp-json\/wp\/v2\/media?parent=3891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.interviewbit.com\/blog\/wp-json\/wp\/v2\/categories?post=3891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.interviewbit.com\/blog\/wp-json\/wp\/v2\/tags?post=3891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}