Sheet 1 (1)
Sheet 1 (1)
1- in artificial intelligence there is four types of machines can you explain them with given
examples for all?
2- Give a PEAS description of the task environment and illustrate properties of task
environment for the following activities:
a- Playing soccer.
b- Shopping for used AI books on the Internet.
c- Knitting a sweater.
Answers:
1-
• Machines that act like humans:
This approach focuses on building systems that behave like humans, mimicking human
actions. The goal is to replicate human behavior through algorithms, especially in tasks that
require human-like responses, such as natural language processing, robotics, and problem-
solving.
Example: The Turing Test, proposed by Alan Turing, is a classic example of this approach. If
a machine can perform in such a way that a human cannot distinguish between a machine
and another human in conversation, it is considered to have passed the test.
Examples in AI: Chatbots, virtual assistants (e.g., Siri, Alexa), and robots with human-like
interactions.
Examples in AI: Systems that simulate human reasoning, problem-solving, and memory
processes, like certain types of expert systems and neural networks.
Example: Logic-based systems like Prolog, which use formal rules of logic to make
deductions and solve problems.
Examples in AI: Expert systems, theorem provers, and systems that use formal logic to
perform decision-making tasks.
Examples in AI: Autonomous drones, robots, self-driving cars, and AI systems designed for
decision-making under uncertainty.
2- Answer:
a. Playing soccer.
PEAS (Performance measure, Environment, Actuators, Sensors):
- Performance Measure: Scoring goals, defending effectively, maintaining possession,
teamwork, and minimizing fouls.
- Environment: The soccer field, including the ball, goals, other players (teammates and
opponents), weather conditions, and the referee's decisions.
- Actuators: Motors to move legs, arms (if applicable), and head; mechanisms for
kicking the ball, controlling direction, speed, and positioning.
- Sensors: Cameras for vision (for ball and player detection), GPS or other positioning
systems, accelerometers, gyroscopes (for balance), and microphones (for hearing
signals like the whistle).
b. Shopping for used AI books on the Internet “Automated agent like web-scrapper or bot”.
PEAS (Performance measure, Environment, Actuators, Sensors):
- Performance Measure: Successfully finding and purchasing used AI books at the
best price, ensuring good condition, evaluating seller reliability, and completing the
transaction securely.
- Environment: Online marketplaces and websites that sell used books (e.g., eBay,
Amazon), including the available listings, seller ratings, payment options, and
shipping conditions.
- Actuators: Functions to search, filter, add items to a cart, and complete
purchases.
- Sensors: Tools to scrape web data (HTML parsers), APIs to access marketplace data,
and possibly tools to evaluate seller reputation.
c. Knitting a sweater.
PEAS (Performance measure, Environment, Actuators, Sensors):
- Performance Measure: Completing the sweater according to desired
specifications (size, pattern, style), achieving a neat and even finish, using the
correct amount of yarn, and ensuring comfort and fit.
- Environment: The physical workspace (table or lap), tools (needles, yarn,
patterns), lighting conditions, and potentially other materials (e.g., scissors, stitch
markers).
- Actuators: For a robotic knitting machine: Motors to manipulate the needles and
yarn, and mechanisms for tension control and stitch formation.
- Sensors: For a robotic knitter: Sensors to detect yarn tension, stitch alignment,
and completion of rows or patterns.
Properties of the Environment:
- Fully Observable: The knitter can see the entire knitting project and all
materials involved. The pattern and progress are visible, allowing for complete
awareness of the work being done.
- Single Agent: Typically, knitting a sweater is a single-agent task, where one
person (or one machine) is responsible for completing the project.
- Deterministic: The process of knitting is generally deterministic. Each action
(e.g., making a stitch) leads to a predictable outcome based on the pattern and
technique used.
- Sequential: Knitting is a sequential task, where each stitch depends on the
previous one. The knitter must follow a specific order to complete the pattern
correctly.
- Static: The knitting environment is relatively static. Once the project is set up
with the pattern, yarn, and needles, the only changes occur through the knitter's
actions.
- Discrete: The knitting process involves discrete steps (e.g., making individual
stitches, completing rows). Each stitch is a distinct action, even though the
overall movement may appear continuous.
- Known: The process of knitting is known and based on established techniques
and patterns. The knitter understands the rules of knitting, the structure of the
sweater, and the required materials.