Welcome to this lecture on Prolog (Programming Logic)! 💻🔍
In this video, we introduce Prolog, one of the most powerful logic programming languages used in Artificial Intelligence, expert systems, and knowledge-based applications.
👉 Topics Covered:
What is Prolog?
How Prolog works: Facts, Rules, and Queries
Basic Prolog Syntax and Structure
Applications of Prolog in AI and beyond
If you're studying Artificial Intelligence, Logic Programming, or just curious about Prolog, this session is the perfect starting point!
🔔 Don’t forget to like, comment, and subscribe for more AI, programming, and computer science tutorials!
#Prolog #LogicProgramming #ArtificialIntelligence #NLP #MachineLearning #KnowledgeRepresentation #ComputerScience #AI #Lecturelia
Our Completed playlist are :
1. Operating System (OS) : • Operating System (OS) Bangla Tutorial (কমপ...
2. Theory Of Computation (TOC) : • Automata Theory Bangla Tutorial (কমপ্লিট ক...
3. Software Engineering : • Software Engineering Bangla Tutorial
4. Microprocessor 8085 : • Microprocessor Bangla Tutorial (কমপ্লিট কো...
#ArtificialIntelligence
#AIBanglaTutorial
#prolog
Introduction :
Prolog is a logic programming language. It has important role in artificial intelligence. Unlike many other programming languages, Prolog is intended primarily as a declarative programming language. In prolog, logic is expressed as relations (called as Facts and Rules). Core heart of prolog lies at the logic being applied. Formulation or Computation is carried out by running a query over these relations.
Syntax and Basic Fields :
In prolog, We declare some facts. These facts constitute the Knowledge Base of the system. We can query against the Knowledge Base. We get output as affirmative if our query is already in the knowledge Base or it is implied by Knowledge Base, otherwise we get output as negative. So, Knowledge Base can be considered similar to database, against which we can query. Prolog facts are expressed in definite pattern. Facts contain entities and their relation. Entities are written within the parenthesis separated by comma (, ). Their relation is expressed at the start and outside the parenthesis. Every fact/rule ends with a dot (.). So, a typical prolog fact goes as follows :
Format : relation(entity1, entity2, ....k'th entity).
Example :
friends(raju, mahesh).
singer(sonu).
odd_number(5).
Explanation :
These facts can be interpreted as :
raju and mahesh are friends.
sonu is a singer.
5 is an odd number.