{"id":3786,"date":"2024-09-07T18:17:25","date_gmt":"2024-09-07T18:17:25","guid":{"rendered":"https:\/\/workhouse.sweetdishy.com\/?p=3786"},"modified":"2024-09-07T18:17:25","modified_gmt":"2024-09-07T18:17:25","slug":"logic-and-functional-programming","status":"publish","type":"post","link":"https:\/\/workhouse.sweetdishy.com\/index.php\/2024\/09\/07\/logic-and-functional-programming\/","title":{"rendered":"Logic and Functional Programming"},"content":{"rendered":"\n<p id=\"Arti00011619\">We have already seen the difference between a Logic programming language and a traditional functional programming language. Figure 1 summarizes this difference pictorially.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/learning.oreilly.com\/api\/v2\/epubs\/urn:orm:book:9789357053778\/files\/images\/img_p565.png\" alt=\"images\"\/><\/figure>\n\n\n\n<p id=\"Arti00011622\">While functional programming requires step-by-step instructions to solve a particular problem, logic programming, on the other hand, uses a knowledge base to find answers to the given questions.<\/p>\n\n\n\n<p id=\"Arti00011623\">In functional programming, we have to specify the steps to solve a particular problem, but in logic programming, we just have to give the problem. The logic programming automatically finds a suitable solution to solve that problem.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have already seen the difference between a Logic programming language and a traditional functional programming language. Figure 1 summarizes this difference pictorially. While functional programming requires step-by-step instructions to solve a particular problem, logic programming, on the other hand, uses a knowledge base to find answers to the given questions. In functional programming, we [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3341,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[464],"tags":[],"class_list":["post-3786","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming-language-prolog"],"jetpack_featured_media_url":"https:\/\/workhouse.sweetdishy.com\/wp-content\/uploads\/2024\/08\/programming.png","_links":{"self":[{"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/posts\/3786","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/comments?post=3786"}],"version-history":[{"count":1,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/posts\/3786\/revisions"}],"predecessor-version":[{"id":3787,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/posts\/3786\/revisions\/3787"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/media\/3341"}],"wp:attachment":[{"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/media?parent=3786"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/categories?post=3786"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/workhouse.sweetdishy.com\/index.php\/wp-json\/wp\/v2\/tags?post=3786"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}