AI Techniques
AI Techniques
• Search Algorithms
• Knowledge Representation
• Abstraction
• Levels of Abstraction:
o Data Abstraction: Hiding unnecessary details and exposing only
relevant data or information.
o Procedural Abstraction: Representing a sequence of actions as a
single procedure or function.
o Hierarchical Abstraction: Organizing information into levels of
importance or generality.
Level of Model
AI Models:
AI models or artificial intelligence models are programs that detect specific patterns
using a collection of data sets. It is an illustration of a system that can receive data
inputs and draw conclusions or conduct actions depending on those conclusions. Once
trained, an AI model can be used to make future predictions or act on data that was
not previously observed. AI models can be used for a variety of activities, from image
and video recognition to natural language processing (NLP), anomaly detection,
recommender systems, predictive modeling and forecasting, and robotics and control
systems.
Level of AI Model:
AI, categorizing models into different levels helps understand their complexity,
sophistication, and the tasks they can accomplish. Here's an overview of the first and
second-level models:
First-Level Models:
A class of computer programs that aim to solve problems in a way that might seem
straightforward for a computer but is challenging for humans. These programs fall
into the first class of AI tasks but may not align with the typical human definition of
an AI task.
• Characteristics:
o Simple Representations: They involve straightforward representations or
concepts.
o Limited Complexity: These models have fewer layers or components
compared to higher-level models.
o Basic Functionality: They perform elementary tasks or have limited
capabilities.
• Examples:
1. Perceptrons: The basic unit of a neural network, handling simple binary
classification problems.
2. Linear Regression: Models the relationship between two variables using a
linear equation.
3. Basic Decision Trees: Simple tree structures for classification or regression
tasks.
Second-level models
In AI are like the advanced superheroes of artificial intelligence, going beyond the
basics to handle more complex tasks. Imagine them as smarter and more capable
versions. One type focuses on mimicking human behavior and thinking. These
programs tackle tricky tasks like understanding human-like reasoning, answering
questions from texts, and even simulating specific behaviors, like paranoia, for
psychological testing. They aim to make computers more transparent, meaning they
can explain their thinking in a way that people can understand and trust. Another
type of advanced AI taps into what we know about how humans think. It tries to copy
human reasoning, sometimes down to the details of individual neurons. Early versions
had some struggles, though, as simple attempts to mimic our intelligence faced
theoretical roadblocks, and the super parallel nature of human brains posed
challenges for regular computers, leading to the exploration of special parallel
computing models.
3. Evolution of Models:
The evolution of AI models is like a superhero upgrade. From basic models, we moved
to advanced, second-level ones. They handle complex tasks like mimicking human
behavior and reasoning, even explaining their thinking.
This evolution faced challenges, like early models struggling and the need for special
parallel computing. It's a journey from AI's baby steps to sophisticated problem-solving
superheroes.
Criteria for Success
Success in Artificial Intelligence (AI) is measured through various benchmarks and
evaluations. One prominent criterion is the Turing Test, proposed by Alan Turing,
Turing Test:
Key Components:
1. State:
2. Initial State:
3. Goal State:
4. Operators/Actions:
• Actions or operations that can be applied to move from one state to another.
• These actions determine how the state transitions occur.
5. Transition Model:
• Defines the result of applying actions to states, determining the state reached after
acting in a given state.
Water Jug Problem
Problem Definition:
In the water jug problem we are given two jugs, a 4-liter one and a 3-liter one. Neither
has any measuring markers on it. There is a pump that can be used to fill the jugs with
water. How can you get exactly 2 liters of water into a 4-liter jug?
The state space is a set of ordered prearranged pairs given the number of gallons of
water in both the chugs at anytime. i.e. (x, y) where x=0,1,2,3,4 and y=0,1,2,3.
The start state is (0, 0) and the goal state is (2,n) for any value of n but n is limited to
holding form 0 to 3 because it’s a 3-liter gallon.
Assumptions:
A production system is like a smart assistant that helps computers make decisions and solve
problems efficiently. It's a structured framework that guides the process of finding solutions,
especially when a computer needs to search through information. Imagine it as a set of
organized rules and processes for smart problem-solving.
1. Rules:
A set of rules each consisting of a left side that determines the applicability of the rule and a
right side that describes the operation to be performed if the rule is applied.
2. Knowledge/Databases:
- Knowledge or databases are like the computer's memory. They store important
information needed for solving problems.
- It can store both permanent and temporary information that is relevant to the current
task.
3. Control Strategy:
- The control strategy is the plan that tells the computer the order in which to use the rules
and how to handle conflicts.
- It dictates the sequence in which rules are checked against the facts in the database.
- When there are multiple rules or conflicting information, the control strategy guides the
computer on what to do next.
4. Rule Applier:
- The rule applier is like the action taker. It executes the rules based on the control
strategy.
- It applies the rules to the knowledge/database to make decisions and find solutions.
Characteristics
A monotonic production system is like a set of rules that always sticks to its decisions. Once
it makes a conclusion based on the available facts and rules, it won't change its mind, even if
new information comes in. It's like having a rulebook that, once followed, doesn't go back
and revise its decisions. While this simplicity can be straightforward, it might not capture
changes in the real world where situations evolve and new facts might require
reconsideration.
In contrast, a non-monotonic production system is more flexible. It's willing to update its
conclusions when faced with new information. Imagine it as a system that doesn't mind
revisiting its initial decisions, adjusting them based on the evolving situation. This
adaptability makes it more suitable for handling dynamic scenarios where things can change
over time.
A commutative production system is like a set of rules that doesn't care about the order in
which you apply them. It's as if you have a bag of rules, and no matter in which sequence
you pick and apply them, you'll get the same result. This property simplifies the system,
making it less dependent on the specific order of rule application.
On the other hand, a partially commutative production system allows some flexibility in the
order of rule application but not complete freedom. It's like having certain rules that can be
applied in any order, while others may have dependencies and need a specific sequence.
This middle ground provides a balance between flexibility and structure, accommodating
various problem-solving scenarios.
TWO PATH PROBLEM
The "two-path problem" in AI refers to a situation where an intelligent system or agent faces
a decision-making challenge due to having two equally promising or indistinguishable paths
to choose from. This scenario often occurs in search and decision-making processes where
multiple options appear to be equally viable based on the available information or criteria.
In the context of search algorithms, when exploring potential solutions or paths, the system
may encounter two or more paths that seem equally optimal or have identical evaluation
scores. This creates ambiguity for the system, making it difficult to determine which path to
prioritize.
The two-path problem can introduce challenges in decision-making systems, especially when
the consequences of choosing one path over another are unclear or when there's a need to
break the tie and proceed along a single path.
When an AI faces the two-path problem, where it has to choose between two equally good
options, it uses extra rules or tricks to make a decision. Imagine it's like having two equally
delicious ice cream flavors, and you can't decide which one to pick. To help you choose, you
might use a coin flip (randomness), think about which one is healthier (considering
secondary objectives), or remember a rule like "always pick the one on the left" (utilizing
specific rules). These extra tricks or criteria help the AI break the tie and decide on one path
over the other.
CHAPTER - KNOWLEDGE REPRESENTATION ISSUES
Imagine you want a computer to understand facts about the world, relationships
between objects, and how things work. Knowledge representation is about finding
ways to structure this information in a format that a computer can understand and
use effectively.
Semantic Networks: These represent relationships between concepts using nodes and links.
For example, in a semantic network, you might have nodes for "cat," "has," and "tail," with
links connecting them to represent the relationship "cat has tail."
Frames: Frames are structures that contain information about a certain object or concept,
including its attributes and relationships. If you have a frame for a car, it might include
information about its color, model, and manufacturer.
The frame problem
Advantages:
1. Enhanced Efficiency: AI systems process data quickly, boosting overall task
efficiency.
2. Precision and Accuracy: AI performs tasks with high precision, minimizing errors.
3. 24/7 Availability: AI operates continuously, providing round-the-clock services.
Disadvantages:
1. Job Displacement: Automation by AI may lead to job loss in certain industries.
2. Ethical Concerns: AI systems can introduce biases and privacy issues.
3. Lack of Creativity: AI lacks human intuition and creativity in problem-solving.
Semantic network
In a semantic network, nodes could represent objects or ideas, and the links
between them indicate how these objects or ideas are connected. For example, if we
have nodes for "cat" and "has," the link between them could represent the concept
"cat has a tail." This visual representation helps organize and understand the
relationships between different pieces of information.
diagram
Advantage:
1. Intuitive Representation:
Semantic networks provide an intuitive and visual way to represent complex
relationships between concepts, aiding in understanding.
Disadvantage:
1. Scalability Challenges:
As the amount of information grows, managing and scaling semantic networks can
become complex and challenging.
CHAPTER 2
SYMBOLIC REASONING AND UNCERTAINITY
UNCERTAINITY:
MONOTONIC REASONING
Default Logic:
Default Logic is a logical framework used in non-monotonic reasoning, a field of
artificial intelligence concerned with reasoning under uncertainty and the need to
revise conclusions when new information arises. In Default Logic, there are default
rules that express general assumptions or defaults. These defaults capture what is
typically true but can be overridden or revised by specific information.
Example:
Consider the default assumption that "birds can fly." In Default Logic, this is a default
rule representing a generalization. Now, if we encounter a specific bird, like a
penguin, which cannot fly, Default Logic allows us to override the default
assumption. The system revises its conclusion based on the specific case,
acknowledging that not all birds adhere to the default rule.
Defeasible Reasoning:
A key feature of Default Logic is defeasible reasoning. This means that conclusions
reached based on default rules are open to revision or defeat. If new information
contradicts or provides exceptions to the default assumption, the system can adapt
and revise its conclusions.
Significance in AI:
Default Logic is particularly significant in AI because it provides a formalism for
representing and handling common-sense reasoning. It allows AI systems to make
assumptions, recognizing that these assumptions might not always hold true. The
ability to revise conclusions in the face of new information enhances the adaptability
and flexibility of AI systems, making them more capable of handling real-world
complexities.
IMPLEMENTATION ISSUES OF NON MONO TONIC REASONING:
Implementing non-monotonic reasoning in artificial intelligence poses several
challenges and issues that need careful consideration.
Arguing for a problem solver in AI is like showing off a superhero for specific tasks.
First, clearly state the problem it tackles. Then, explain how the problem solver
works, like the special powers it uses (algorithms and methods). Show examples of it
in action, like saving the day with real results. Highlight that it can handle bigger
challenges and adapts to different situations (like a superhero facing different
villains). Talk about how efficiently it uses resources, making it practical. If it learns
and improves over time, that's a plus. Share stories of it solving real-world problems.
Compare it to other options, proving it's the superhero you need. Mention any
weaknesses honestly, and be aware of any ethical concerns. Essentially, present it as
the reliable superhero solution to the problem at hand.