Pengaturcaraan Logik
Logic Programming

Logic programming will spans various important aspects in Artificial Intelligence (AI) including Prolog programming in terms of the language, constructing Prolog programs, computation and data structures, expressing procedural algorithms, input/output and other built-in predicates and finally windows programming using Prolog.

Upon completion, the students should be able to:

  • Explain the concept, characteristics and methods of logic programming.
  • Apply the process, techniques and tools in logic programming.
  • Apply syntax and semantics of Prolog.
  • Write programs using Prolog.


STIN1013 Introduction to Artificial Intelligence

Syllabus & Notes

1.0 Overview of Prolog [PPT] [Assignment1]
2.0 Constructing Prolog Programs [PPT] [Assignment2]
3.0 Computation and Data Structures [PPT] [Assignment3]
4.0 Expressing Procedural Algorithms [PPT]  
5.0 Input/Output and other Built-in Predicates [PPT]  
6.0 Windows Programming [PPT] [Assignment4]
[Download GUI]
Module - Compilation of the notes. Last updated on Oct 19, 2011. [PDF] [Group Project]


  • Bratko, I. (2001). Prolog Programming for Artificial Intelligence (3rd). Addison Wesley: England. [Online Resources | 4th Edition]
  • Luger, G. F. (2005). Artificial intelligence: Structures and Strategies for Complex Problem Solving (5th). Addison Wesley: US.
  • Clocksin, W. F. & Mellish, C. S. (2003).  Programming in Prolog: Using the ISO Standard (5th), Springer: Germany
  • Covington, M. A., Nute, D., & Vellino, A. (1997). Prolog Programming in Depth. Prentice Hall: New Jersey.
  • Wan Hussain Wan Ishak, Norita Md Norwawi, Nooraini Yusoff & Mohd Shamrie Sainin (2007). Pengaturcaraan Logik. Pearson Prentice Hall; Petaling Jaya