This question already has an answer here:

I have been researching different programming paradigms. I have found a lot of people saying that one of the areas where logic and functional programming are particularly good is programming AI, but I am having a hard time finding a good explanation as to why. Could someone point me in the right direction and let me know what properties these paradigms have that makes them good for this task?


marked as duplicate by gnat, GlenH7, user40980, Kilian Foth, Bart van Ingen Schenau Sep 29 '14 at 10:58

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    It will be helpful for readers and answerers if you replace "a lot of people saying" with a list of names, and preferably book/paper titles and chapter references. Artificial intelligence is not just one task but many, so help us help you by letting us know what you know about AI. – dcorking Sep 26 '14 at 13:05
  • 1
  • 2
    The 'logic paradigm' is answered in Why is Prolog good for AI programming? – dcorking Sep 26 '14 at 13:13
  • please don't cross-post: stackoverflow.com/questions/26059920/… – gnat Sep 26 '14 at 13:28
  • In Fall 1982, Marvin Minsky wrote in AI Magazine 'Today most Al researchers use languages like LISP, that let a programmer use "general recursion." Such languages are even more expressive than "do whenever" languages, because their programmers don't have to foresee clearly either the kinds of states that might occur or when they will occur; the program just constrains how states and structures will relate to one another. We could~call these "constraint languages."' This could well have influenced the opinions of those you have read. – dcorking Sep 26 '14 at 13:44