Tap
Tap
Internet games have become very popular. Designing a good computer game
needs to use 3D graphics and artificial intelligence technologies. Search the
literature to specify what AI techniques are able to make computer
entertainment more exciting and challenging.
2. Behavior Trees: Behavior trees are hierarchical structures used to model and
control the behavior of non-player characters (NPCs) in games. They provide a visual
representation of decision-making processes, allowing designers to create complex
and dynamic AI behaviors.
3. Finite State Machines: Finite state machines (FSMs) are widely used to model AI
behavior in games. They define a set of states and transitions between them based on
specific conditions. FSMs are useful for creating AI agents with different behaviors,
such as patrolling, attacking, or fleeing.
4. Neural Networks: Neural networks can be employed to improve the realism and
responsiveness of game characters. For example, they can be trained to recognize
patterns in player behavior, predict player actions, or generate realistic animations.
1
terrain, or quests. By utilizing AI, games can offer vast and diverse environments,
ensuring each play through feels unique and exciting.
8. Player Modeling: AI can analyze player behavior and adapt the game experience
accordingly. By modeling player preferences, AI can personalize challenges,
difficulty levels, or content to provide a more engaging and tailored experience.
QUESTION 2
Find applications of artificial intelligence and expert systems. Identify an
organization with which at least one member of your group has a good contact
who has a decision-making problem that requires some expertise (but is not too
complicated). Understand the nature of its business and identify problems that
have been supported or can potentially be supported by intelligent systems.
Some examples include selection of suppliers, selection of new employee, job
assignments computer selection, market-contact method selection, and
determining admission to graduate school.
2
system can analyze historical sales data, market trends, and external factors to make
accurate inventory forecasts and reduce inventory holding costs.
QUESTION 3
Consider the decision-making situation defined by the following rules:
1. If it is a nice day and it is summer, then I go to the golf course.
2. If it is a nice day and it is winter, then I go to the ski resort.
3. If it is not a nice day and it is summer, then I go to work.
4. If it is not a nice day and it is winter, then I go to class.
5. If I go to the golf course, then I play golf.
6. If I go to the ski resort, then I go skiing.
7. If I go skiing or I play golf, then I have fun.
8. If I go to work, then I make money.
9. If I go to class, then I learn something.
3
Following rule 7, if I play golf, then I have fun.
Conclusion: If it is a nice day and it is summer, then I have fun playing golf.
2. It is not a nice day and it is winter.
According to rule 4, if it is not a nice day and it is winter, then I go to
class.
Following rule 9, if I go to class, then I learn something.
Conclusion: If it is not a nice day and it is winter, then I learn something in class.
3. It is a nice day and it is winter.
There is no rule that matches this situation.
Conclusion: No conclusion can be drawn for this situation based on the given rules.
4. It is not a nice day and it is summer.
According to rule 3, if it is not a nice day and it is summer, then I go to
work.
Following rule 8, if I go to work, then I make money.
Conclusion: If it is not a nice day and it is summer, then I make money by going to
work.
b. Are there any other combinations that are valid? Explain.
Other combinations that are valid include:
If it is a nice day and it is summer, I go to the golf course and play golf.
If it is not a nice day and it is winter, I go to class and learn something.
If it is a nice day and it is summer, I go to the golf course and have fun.
If it is not a nice day and it is winter, I go to class and have fun (assuming
learning is considered fun).
c. What needs to happen for you to “learn something” in this
knowledgeuniverse? Start with the conclusion “learn something” and
identify the rules used (backward) to get to the needed facts.
Rule 9: If I go to class, then I learn something.
Therefore, for the conclusion "learn something" to be true, the condition "I go to
class" needs to be satisfied.
4
d. Encode the knowledge into a graphical diagram (like an
influence diagram). Use a circle to represent a fact such as: The day is
nice orThe day is not nice and an arrow to indicate influence.
(Nice Day) (Summer)
| |
v v
[Go to Golf Course] [Go to Ski Resort]
| |
v v
[Play Golf] [Go Skiing]
| |
v v
[Have Fun] [Have Fun]
| |
v v
[Learn Something] [Make Money]
e. Write a L.C. (or other third-generation language) program to
executethis knowledge. Use IF- THEN (ELSE) statements in your
implementation. How many lines long is it? How hard would it be to
modify the program to insert new facts and a rule such as:
1. If it is cloudy and it is warm
5
print("I go to the ski resort.")
print("I go skiing.")
print("I have fun.")
elif not nice_day and summer:
print("I go to work.")
print("I make money.")
else:
print("I go to class.")
print("I learn something.")