AI Notes
AI Notes
Raw facts or figures without context. Example: 100, 75, 90 (just numbers, no meaning yet).
Information:
Data that has been organized or given context to make it meaningful. Example: "John scored 100, Sarah
scored 75, and Mike scored 90 in math."
Knowledge:
Insights or understanding gained by analyzing and applying information. Example: "John is the best
performer in math, while Sarah might need more practice."
Data = "What?"
Information = "What does it mean?"
Knowledge = "What can I do with it?"
Knowledge Representation
Study of ways how knowledge is actually represented. A good knowledge representation naturally represents
problem domain. It is not only about storing data in database. But it also enable intelligent machine to learn
from this knowledge and behave intelligently.
2. Semantic Networks
Imagine a big mind map! Concepts are shown as nodes, and their relationships are shown as connections
(edges).
Example: A node for "dog" connected to "animal" (relationship: "is a").
Helps AI understand relationships and categories, like organizing family trees or synonyms in
language.
3. Frames
Think of frames like templates or forms with slots to fill in details about something.
Example: A "car" frame might have slots for "make," "model," "color," and "owner."
AI uses frames to understand objects or situations in a structured way, like predicting what happens
in common scenarios (e.g., ordering at a restaurant).
4. Production Rules
These are simple "if-then" rules that guide actions.
Example: "If the light is red, then stop."
Commonly used in systems like virtual assistants or expert systems to solve problems or make
decisions step-by-step.
Normal English is insufficient, too hard currently for a computer program to draw inferences in natural
languages.Therefore, we must be able to map "facts to symbols" and "symbols to facts" using forward and
backward representation mapping.
Requirements of Knowledge Representation :
1. Representational Accuracy:
o The system should be able to store all the knowledge it needs for the task.
o Example: If the system is about animals, it should be able to represent details like types of
animals, their habitats, and diets.
2. Inferential Adequacy:
o The system should be able to use the knowledge it has to create new knowledge.
o Example: If the system knows "Dogs are mammals" and "Mammals have fur," it should
figure out that "Dogs have fur."
3. Inferential Efficiency:
o The system should find the best and quickest way to reason or make decisions.
o Example: Instead of checking all possible animals, the system should focus on "mammals" if
it knows the question is about "furry animals."
4. Acquisitional Efficiency:
o The system should easily learn and add new knowledge automatically.
o Example: If new information about "elephants" is given, the system should update its
knowledge base without much effort.
2. Inheritable Knowledge:
o Think of it as a family tree or hierarchy of categories.
o How it works: Information is stored in levels, where lower levels (children) inherit properties
from higher levels (parents).
o Example:
Animal (parent): Can move.
Bird (child): Can fly (inherits "Can move").
o This helps organize and share common traits among groups.
3. Inferential Knowledge:
o This uses logical statements to represent knowledge and derive new facts.
o How it works: It uses rules of logic to make conclusions.
o Example:
Fact 1: "Marcus is a man."
Fact 2: "All men are mortal."
Conclusion: "Marcus is mortal."
4. Procedural Knowledge:
o This involves step-by-step instructions or rules for how to do something.
o How it works: Uses small programs or “if-then” rules to guide decisions.
o Example:
Rule: "If it’s raining, then carry an umbrella."
o Used in programming languages like LISP or Prolog to solve specific tasks.
3. Choosing Granularity
Definition: Granularity is the level of detail to represent knowledge.
Key Points:
o Too broad: May not give enough detail for reasoning.
o Too detailed: Requires a lot of storage.
Example:
o High-level fact: "John spotted Sue" helps answer, "Who spotted Sue?"
o Low-level: To answer "Did John see Sue?" you need more facts like "Spotted(x, y) → Saw(x,
y)."
4. Sets of Objects
Definition: Sets are used to group objects and represent properties common to all or most members.
Key Points:
o Efficient to attach properties to sets rather than individual objects.
o Example: "Sheep outnumber people in Australia" is a fact about the set of "sheep" and
"people."
Methods:
o Logical representations use quantifiers like "all" or "most."
o Hierarchies use inheritance to pass down properties to individual members.
Frames
Conceptual Dependency
Script
Production Rules