Please enable JavaScript.
Coggle requires JavaScript to display documents.
Reflex and goal based agents. - Coggle Diagram
Reflex and goal based agents.
Reflex Agents
- Act based on current percepts, without considering the future consequences of actions.
Goal-Based Agents
- Make decisions by considering future states and choosing actions that achieve specific goals.
Modeling a system
Modeling a system involves representing knowledge to enable agents to make decisions.
FSM
A useful technique for handling different states within a system.
Represent various conditions or situations in the system.
Define the changes from one state to another based on specific inputs or actions.
State define behavior and produces action.
Rules and conditions that lead to transition.
Example:
The way do the Ghosts work
Waiting at home.
State Design Pattern Architecture.
Logic is embedded in state classes.
Allows for organized and maintainable code by separating state-specific behavior into individual classes.
Example Diagram: Miner Bob
Web Links
https://www.geeksforgeeks.org/state-design-pattern/
https://gbatemp.net/threads/yokai-watch-3-ntr-plug-in.525593/page-8
Advantages of state design patterns.
Simple to Code
Easy to Debug
Less Processing Power
Intuitive Modeling
Flexible:
History Representation
Types of FSM
Deterministic FSM
Always produces the same output for a given input.
Useful in predictable environments (e.g., pedestrian crossings).
Deterministic FSM
Can produce different outputs for the same input.