The most asked AI in Gaming (AL-702-A) topics in RGPV papers are Game theory and its use in AI, Functions used in the Minimax algorithm, Rule-based systems and Static and kinematic representation in 3D. We read the RGPV B.Tech CSE-AIML semester 7 papers from 2023 and counted every question. Game theory and its use in AI, Functions used in the Minimax algorithm, Rule-based systems and Static and kinematic representation in 3D came once each.
Answers: We wrote these answers with AI help from the real RGPV papers and the syllabus. A teacher has not checked them yet, so read them with your syllabus. How we make these
Counted from the questions in the past papers listed on this site. Repeated = how many times the topic came in those papers.
AI in Gaming important questions with answers
Each answer starts with a short answer. Then come how often it was asked, the points to write, a diagram and an exam tip. The questions under each topic are copied from the RGPV papers.
Q1. Game theory and its use in AI
Short answer.Game theory is the mathematical study of decisions where each player's result depends also on what others do. AI uses it to choose good actions against opponents or with partners.
Asked 1 time in 2023 · Unit 5
From the papers
“Define Game Theory. How does it apply to Artificial Intelligence?” (November 2023)
Write these points
Basic terms
Players, strategies and payoffs.
Zero sum: one's gain is the other's loss.
Perfect information: all moves are visible, as in chess.
Nash equilibrium: no player gains by changing strategy alone.
Use in AI
Game tree search: minimax and alpha-beta.
Mixed strategies so opponents cannot predict the agent.
Multi agent systems: negotiation, auctions and resource sharing.
Learning by self play in games.
Security and traffic planning.
Matching pennies.
I win 1 if two coins match and lose 1 if they differ. My opponent wins what I lose.
If I always show heads, the opponent learns it and beats me.
The equilibrium is to pick each side with probability 0.5. My expected value is then 0.
Real-life example
In rock paper scissors your best move depends on what your friend will play. Your friend thinks about you in the same way.
Figure: a game tree
Difference between Single agent search and game search
Point
Single agent
Game
Same or opposite
Searches through states
Yes
Yes
Same
Opponent acts against you
No
Often
Opposite
Typical method
A*
Minimax
Opposite
Large search trees are a problem
Yes
Yes
Same
Exam tip. Define players, strategies and payoffs before giving AI uses.
Short answer.Minimax chooses a move in a two player zero sum game by assuming one player maximises the score and the other minimises it. It is built from a few helper functions.
Asked 1 time in 2023 · Unit 5
From the papers
“Discuss with various functions used in Minimax algorithm.” (November 2023)
Write these points
Functions
Function
Job
generateMoves(state)
List the legal moves
makeMove(state, move)
Return the new state
isTerminal(state)
Is the game over?
evaluate(state)
Score a position from MAX's view
maxValue / minValue
Pick the largest or smallest child value
Recursion
If the state is terminal or depth limit is reached, return evaluate.
On MAX's turn return the largest child value.
On MIN's turn return the smallest.
At the root remember which move gave the best value.
Improvements and cost
Negamax writes both cases as one using negation.
Alpha-beta pruning skips branches that cannot change the result.
Time is about b^d for branching b and depth d.
The tree in the figure.
MIN values are min(3,5) = 3, min(2,9) = 2 and min(7,6) = 6. MAX takes 6, the third move.
With alpha-beta from left to right: after 3, alpha = 3. In branch 2 the leaf 2 is already below 3, so the leaf 9 is skipped.
Real-life example
Before moving in tic tac toe you think: if I play here, what is the worst my friend can do to me? Then you pick the move with the best worst case.
Figure: minimax values
Difference between Minimax and alpha-beta
Point
Minimax
Alpha-beta
Same or opposite
Returns the same minimax value
Yes
Yes
Same
Skips branches
No
Yes
Opposite
Nodes examined
All up to the depth
Often fewer
Opposite
Needs an evaluation function
Yes
Yes
Same
Exam tip. Give the function table, the recursion and one solved tree.
Short answer. A static representation holds position and orientation. A kinematic representation also holds linear velocity and rotation (angular velocity).
Asked 1 time in 2023 · Unit 2
From the papers
“Differentiate between static representation and kinematic representation in 3D.” (November 2023)
Write these points
Static
Position (x, y, z).
Orientation, often a quaternion in full 3D. Characters that stay upright can use one angle about the vertical axis.
Kinematic
Position and orientation.
Velocity (vx, vy, vz).
Angular velocity: a vector in full 3D or one number for an upright character.
Use
Kinematic movement algorithms read static data and output a velocity directly. Dynamic (steering) algorithms read kinematic data and output acceleration.
One update step.
Position (0, 0, 0), velocity (6, 0, 8), time step 0.1 s.
New position = old + velocity x time = (0.6, 0, 0.8).
The speed is the length of the velocity, 10 units per second.
Real-life example
A photo of a car shows where it is and which way it faces. A speed reading adds how fast it is moving and turning.
Figure: data held in each form
Difference between Static and kinematic
Point
Static
Kinematic
Same or opposite
Stores position and orientation
Yes
Yes
Same
Stores velocity
No
Yes
Opposite
Can predict next position
No
Yes, for short steps
Opposite
Used by movement code
Yes
Yes
Same
Exam tip. List the fields of each and mention quaternions.
Short answer.Coordinated movement makes several characters move together in a sensible way, such as a squad or a flock. It joins group planning with each member's own steering.
Asked 1 time in 2023 · Unit 2
From the papers
“Describe about the components of coordinated movement in detail.” (November 2023)
Write these points
Remember. The words also appear in the study of human motor skill. This answer gives the game AI view. See the motor learning note for the human side.
Components
Formation pattern: the set of slots, such as line, wedge or circle.
Anchor point or leader: the reference that moves.
Slot assignment: which member takes which slot.
Individual steering: each member arrives at its slot.
Obstacle and collision avoidance.
Speed matching so the group waits for slow members.
Approaches
Emergent: simple local rules, such as flocking with separation, alignment and cohesion.
Scripted formations with fixed slots.
Two level: steer the whole formation first, then each member.
Slot position.
Anchor is at (10, 10) facing north. Slot 1 has offset (-2, -2) and slot 2 has (2, -2).
The targets are (8, 8) and (12, 8).
If the group turns, offsets must be rotated too.
Real-life example
In a march past each student keeps a fixed place relative to the leader and also avoids bumping into the next student. Game squads need both.
Figure: a formation
Difference between Fixed formation and flocking
Point
Formation
Flocking
Same or opposite
Moves many characters together
Yes
Yes
Same
Fixed slots
Yes
No
Opposite
Order of the shape
Strict
Loose
Opposite
Needs collision handling
Yes
Yes
Same
Exam tip. List six components and draw a formation with slots.
Short answer. A movement algorithm takes data about the character and its world and produces a movement request. The request is then applied by the physics or animation system.
Asked 1 time in 2023 · Unit 2
From the papers
“Draw the movement of algorithm structure and explain each component in detail.” (November 2023)
Write these points
Components
Character data: static or kinematic state.
Target and world data: goal position, other characters, obstacles.
Algorithm: kinematic or steering behaviour.
Output: a velocity (kinematic) or linear and angular acceleration (dynamic).
Actuation: apply limits such as maximum speed and turning.
Update: compute the new state and repeat each frame.
Short answer. The A-star algorithm finds a lowest cost path by expanding the node with the smallest f(n) = g(n) + h(n). g is the cost so far and h estimates the cost to the goal.
Asked 1 time in 2023 · Unit 3
From the papers
“Discuss with A* path finding algorithm with an example.” (November 2023)
Write these points
Steps
Put the start in the open list.
Remove the node with the smallest f.
If it is the goal, trace parents to get the path.
Else move it to the closed list and update each neighbour if a cheaper route is found.
Repeat until the open list is empty.
Heuristic
Admissible: never more than the true cost.
Consistent: h(n) <= step cost + h(next). The heuristic below is consistent.
Step
Expand
g
f
Changes to open nodes
1
S
0
7
A g1 f7, B g4 f8
2
A
1
7
B g3 f7, C g6 f8
3
B
3
7
C g5 f7, G g9 f9
4
C
5
7
G g8 f8
5
G
8
8
goal reached
Result.
Path S - A - B - C - G with cost 8.
Notice that B and G were improved later when cheaper routes appeared.
Real-life example
Choosing a route in a city, you add the distance already travelled to a fair guess of what is left and follow the most promising road. A* adds the same two numbers.
Figure: the example graph
Difference between A* and Dijkstra
Point
A*
Dijkstra
Same or opposite
Finds shortest paths with non-negative costs
Yes
Yes
Same
Uses a heuristic to the goal
Yes
No
Opposite
Nodes expanded
Often fewer
Often more
Opposite
Keeps costs so far
Yes
Yes
Same
Exam tip. Always show the table of g and f for every step.
Short answer.Breadth first search (BFS) explores a graph level by level using a queue. It finds a path with the fewest edges, which is the cheapest path only when all edges cost the same.
Asked 1 time in 2023 · Unit 3
From the papers
“Implement breadth first search algorithm for path finding with an example.” (November 2023)
Write these points
Algorithm
Put the start in a queue and mark it visited.
Remove the front node.
If it is the goal, rebuild the path from parents.
Add each unvisited neighbour to the back and record its parent.
Repeat until the queue is empty.
Code
q=[start]; parent={start:None}
while q:
u=q.pop(0)
if u==goal: break
for v in graph[u]:
if v not in parent:
parent[v]=u; q.append(v)
Time and space are O(V + E). In real code use a double ended queue.
On the example graph.
Queue order: S, then A and B, then C (from A), then G (from B).
Path found: S - B - G, 2 edges but cost 10.
A* found a cost 8 path with 4 edges.
Real-life example
News spreading in a class reaches all friends first, then friends of friends. The first time it reaches you uses the fewest people.
Figure: BFS uses the same graph
Difference between BFS and A*
Point
BFS
A*
Same or opposite
Finds a path if one exists in a finite graph
Yes
Yes
Same
Uses edge costs
No
Yes
Opposite
Data structure
Queue
Priority queue
Opposite
Keeps visited information
Yes
Yes
Same
Exam tip. Write the code and show the queue order.
Short answer. As a problem grows, the number of possible states can grow exponentially, so the same method becomes much less efficient. This is called combinatorial explosion.
Asked 1 time in 2023 · Unit 3
From the papers
“"The problem's tendency to decrease the efficiency for solving a complex problem." Explain.” (November 2023)
Write these points
Remember. The printed sentence is unclear and does not name the problem. I read it as combinatorial explosion in search. Add any specific meaning your teacher uses.
Causes
High branching factor.
Deep solutions.
Large maps with many nodes.
Many characters planning at once.
Changing worlds that force replanning.
Ways to keep efficiency
Good heuristics.
Pruning such as alpha-beta.
Hierarchical path finding.
Better world representation, such as navigation meshes.
Limit depth or time and use the best answer so far.
Cache results.
A chess like tree.
With about 35 moves each, depths 0 to 4 contain 1,544,761 nodes.
Each extra level multiplies the last level by 35.
So a faster computer alone gains only a little depth.
Real-life example
Finding a book on one shelf is easy. Searching every shelf of every library in a state one by one becomes impractical without a catalogue.
Figure: fighting a large search
Difference between Flat and hierarchical path finding
Point
Flat
Hierarchical
Same or opposite
Finds routes on game maps
Yes
Yes
Same
Search space at once
Whole fine map
Coarse first, then local
Opposite
Always the exact shortest path
Yes with a suitable algorithm
Not always
Opposite
Benefits from heuristics
Yes
Yes
Same
Exam tip. Show the growth with numbers and then five remedies.
Short answer. A finite state machine (FSM) is a set of states with transitions. A behaviour tree (BT) is a tree of tasks that is evaluated from the root to choose actions.
Asked 1 time in 2023 · Unit 4
From the papers
“Explain the differences between state machines and behavior trees with examples.” (November 2023)
Write these points
FSM
One active state in a simple machine.
Events or conditions move it to another state.
Example: Patrol to Chase to Attack.
Behaviour tree
Nodes return success, failure or running.
Sequence needs each child to succeed. Selector tries options until one works.
Subtrees can be reused.
When to use
FSMs suit a few clear states. Many states cause too many transitions. BTs scale and edit better for complex behaviour.
A door task.
Selector: (Sequence: door is open, walk in), (Sequence: have key, open the lock, walk in), break door.
Door locked and key present: the first branch fails and the second runs.
In an FSM each of these links would be drawn as transitions.
Real-life example
A traffic light is a state machine that moves between colours. Making tea with fallback steps, such as use another pan if one is dirty, is like a behaviour tree.
Figure: behaviour tree nodes
Difference between FSM and behaviour tree
Point
FSM
BT
Same or opposite
Controls character behaviour
Yes
Yes
Same
Built from
States and transitions
Task nodes in a tree
Opposite
Adding behaviour
May need many new links
Often add a subtree
Opposite
Designed by developers
Yes
Yes
Same
Exam tip. Give one example of each and then the table.
What are the most important topics in AI in Gaming?
By how often they were asked in the papers on this site: Game theory and its use in AI (1 times); Functions used in the Minimax algorithm (1 times); Rule-based systems (1 times); Static and kinematic representation in 3D (1 times); Components of coordinated movement (1 times).
How were these AI in Gaming important questions chosen?
Each topic was counted from the questions in the past papers listed on this site (2023). Repeated is the number of times the topic came. The counts come from keyword matching and the answers are not teacher-reviewed, so use them together with your syllabus.
Is there a PDF of AI in Gaming important questions with answers?
Yes. The Paperwala Imp Question & Answer PDF for AI in Gaming is free to download from this page.
The 10 most repeated topics of AI in Gaming (AL-702-A) for RGPV B.Tech CSE-AIML semester 7, counted from the previous year papers on this site.