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.
I had wrote down my articles in Medium about Prolog which help people learn Prolog better with simple explanation and clear examples.
- [Prolog] มาเริ่มเรียนรู้ภาษา Prolog กันเถอะ! - Prolog concept and how to install IDE for Prolog.
- [Prolog] เริ่มต้นเขียนโปรแกรมด้วยภาษา Prolog พร้อมรู้จักกับ Facts, Rules และ Queries - Symbols, Data types, Facts, Rules and Queries
- [Prolog] การใช้ Variables ใน Prolog - variables, anonymous variable
- [Prolog] Structure and Equality - Structure and Equality
- [Prolog] Arithmetic and Relational Operators สัญลักษณ์ทางคณิตศาสตร์พื้นฐานใน Prolog - arithmetic and relational operators
- [Prolog] List in Prolog - List, SWISH web application
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