Skip to content

Prolog is a logical programming language which give me a new aspect of computer programming language besides imperative programming languages such as Python and JavaScript.

Notifications You must be signed in to change notification settings

firstneverrest/Prolog-basic-example

Repository files navigation

Prolog-basic-example

image

Prolog or Programmation en Logique (Programming in Logic) is a logical programming language and declarative programming language which use in AI. Prolog has several different from our familiar programming language such as Python and JavaScript. Typically, The result of this language will be true and false because we usually ask questions that give the answers true or false in AI. For example, is a person that has blue eye be allergic to this cosmetics?. Moreover, prolog can use to solve many complex problem.

In this repository, I keep my examples that be used in my Medium articles. Please feel free to explore and understand Prolog.

My Prolog Lesson

I had wrote down my articles in Medium about Prolog which help people learn Prolog better with simple explanation and clear examples.

Problem solved by Prolog

These are all practical examples of problems that can be solved by Prolog.

  • general problem in programming languages (find the element in list, reveres a list)
  • arithmetic - a list of prime numbers
  • five houses problem
  • gray code
  • huffman code
  • tree
  • graph
  • eight queens problem
  • knight's tour
  • syntax checker
  • sudoku
  • crossword puzzle

Reference

About

Prolog is a logical programming language which give me a new aspect of computer programming language besides imperative programming languages such as Python and JavaScript.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages