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:

  • Describe the concept of logic programming
  • Formulate problems according to the requirements of logic programming
  • Use appropriate software for logic programming
  • Write a program using logic programming to solve problems
  • Apply logic programming to design and develop real world system


STIN1013 Introduction to Artificial Intelligence

Syllabus & Notes

1.0 Overview of Prolog [PDF]  
2.0 Constructing Prolog Programs [PDF]  
3.0 Expressing Procedural Algorithms [PDF]  
4.0 Manipulating Knowledge Base and File Handling [PDF]  
5.0 List, Operators and Arithmetic [PDF]  
6.0 Windows Programming [PDF]  


  • Bratko, I. (2012). Prolog Programming for Artificial Intelligence (4th). 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