Reinforcement Learning (AI-702-B) Important Questions
By the Paperwala team · · Exam on Fri 18 Dec
These are the 10 Reinforcement Learning (AI-702-B) topics we chose from the RGPV syllabus for RGPV B.Tech CSE-AI semester 7. No past paper of this subject is on this site yet, so we could not count repeats.
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
10 Reinforcement Learning topics from the syllabus
Chosen from the syllabus. No past paper of this subject is on this site yet, so repeats could not be counted.
Reinforcement Learning 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 topics are chosen from the syllabus.
Q1. Reinforcement learning, its components and the interaction cycle
Short answer.Reinforcement learning (RL) is learning by trial and error. An agent acts in an environment, gets a reward and learns a policy that earns the most total reward.
Agent: the learner and decision maker, such as a game player or a robot controller.
Environment: everything outside the agent. It reacts to each action.
State and observation: the state is the full situation. An observation is the part the agent can see.
Action: a choice the agent makes in a state, such as left or right.
Reward: a number after each step that says how good the last step was.
Policy: the rule that maps a state to an action.
The interaction cycle
The agent observes state s(t).
It picks action a(t) from its policy.
The environment moves to s(t+1) and gives reward r(t+1).
The agent updates its policy or values and repeats.
Remember. The syllabus text we had lists four units for AI-702(B). If your syllabus has a fifth unit, check it against these topics.
Real-life example
A child learning to ride a cycle is an agent. The road and the cycle are the environment. Staying up and moving forward feels good, which is a reward. A fall is a negative reward. After many tries the child finds the balance policy without any teacher giving the right answer for each push.
Difference between reinforcement learning and supervised learning
Point
Reinforcement learning
Supervised learning
Same or opposite
Feedback
Reward after acting
Correct label for each input
Opposite
Learns from data
Yes
Yes
Same
Data comes from
Its own actions
A fixed labelled set
Opposite
Effect of delay
Reward may come late
Label comes at once
Opposite
Exam tip. Define RL in one line with agent, environment and reward. Draw the cycle with the three arrows labelled. List the components with one line each.
Short answer. A Markov Decision Process (MDP) is the model of an RL environment: states, actions, transitions P(s' | s, a), rewards R and a discount gamma. The next state depends only on the present state and action.
From the syllabus · Unit 1
From the papers
“Unit 1: MDP (Markov Decision Process): the engine of the Environment: States, Actions, Transition Function, Reward Signal.” (Syllabus)
Write these points
Parts of an MDP
States S: every situation the agent can be in.
Actions A: choices available in each state.
Transition function P(s' | s, a): chance of reaching s' after action a in s.
Reward signal R(s, a, s'): the number given for that move.
Discount factor gamma (0 to 1): how much future reward counts now.
Markov property
P(s(t+1) | s(t), a(t)) is the same as the chance given the whole history. The present state carries all needed history.
Read the MDP in the figure.
From A the action go gives reward 2 and always reaches B.
From B the agent reaches A with chance 0.5 and stays in B with chance 0.5, reward 0.
The chances out of B add to 0.5 + 0.5 = 1, as they must.
Real-life example
A board game like Ludo is close to an MDP. The board position is the state and the choice of token is the action. The dice makes the move uncertain, which is the transition function. Cutting another token or reaching home gives a reward. Only the present board matters, not how the tokens got there.
Difference between MDP and Markov chain
Point
MDP
Markov chain
Same or opposite
Has actions
Yes
No
Opposite
Has rewards
Yes
No
Opposite
Markov property holds
Yes
Yes
Same
Has transition chances
Yes
Yes
Same
Exam tip. Write the five-tuple (S, A, P, R, gamma) first. State the Markov property in one line. Draw a small state diagram with chances and rewards on the arrows.
Short answer. The state-value function V(s) under a policy pi is the expected return when the agent starts in s and follows pi. The Bellman equation writes V(s) as the expected immediate reward plus the discounted value of the next state.
V(s) = sum over a of pi(a | s) times sum over s' of P(s' | s, a) [R(s, a, s') + gamma V(s')].
It links the value of a state with the values of its next states.
For a fixed policy it is a set of linear equations, one per state.
For n states it can be solved directly or by repeated updates.
The Bellman optimality equation replaces the average over actions with a max.
Solve the two state MDP of the MDP question (gamma = 0.9).
V(A) = 2 + 0.9 V(B).
V(B) = 0.9 (0.5 V(A) + 0.5 V(B)).
Solving gives V(A) = 7.586 and V(B) = 6.207.
Check: 2 + 0.9 x 6.207 = 7.586. 0.9 x (0.5 x 7.586 + 0.5 x 6.207) = 6.207.
Optimality
V*(s) = max over a of sum over s' of P(s' | s, a) [R + gamma V*(s')]. A policy that acts greedily on V* is optimal.
Real-life example
Think of the value of a job offer. Its worth is this year's salary plus the worth of the jobs it can lead to, a little discounted. A first job at a good firm has high value because the next steps from it are good. The Bellman equation builds value the same way, one step plus the value of what follows.
Difference between Bellman expectation and optimality equation
Point
Expectation
Optimality
Same or opposite
Over actions
Average under pi
Max
Opposite
Gives
V of a given policy
V of the best policy
Opposite
Uses one step look ahead
Yes
Yes
Same
Linear
Yes
No, because of max
Opposite
Exam tip. Write the full Bellman equation with every symbol named. Solve a two state example and check it. Then write the optimality form with max.
Q4. Optimal policy, policy iteration and value iteration
Short answer. An optimal policy pi* earns at least as much expected return as any other policy in every state. Policy iteration and value iteration are planning methods that find pi* when the MDP is known.
From the syllabus · Unit 2
From the papers
“Unit 2: Plan, Optimal policy, Comparison of Policies, Optimality.” (Syllabus)
Write these points
Comparing policies
Policy pi is better than or equal to pi' when V_pi(s) is at least V_pi'(s) for every state s. At least one policy is better than or equal to all others.
Policy iteration
Start with any policy.
Evaluate: solve the Bellman equation for its V.
Improve: in each state pick the action with the largest Q.
Repeat until the policy stops changing.
Value iteration
Start with V = 0.
Apply V(s) = max over a of [R + gamma V(s')] to every state.
Stop when V changes very little.
Read the greedy policy from V.
Value iteration on a corridor of 5 states (gamma = 0.9).
Entering s4 (goal) gives +1. Moves are left or right.
Sweep 5 changes nothing, so V has converged. The greedy policy moves right everywhere.
Real-life example
Planning a trip with a full railway map is like these methods. The traveller knows every train and its time, so no trial is needed. Policy iteration is picking a plan, timing it, then improving each change point. Value iteration is working backwards from the destination, station by station.
Difference between policy iteration and value iteration
Point
Policy iteration
Value iteration
Same or opposite
Needs the model
Yes
Yes
Same
Each loop
Full evaluation, then improve
One max backup
Opposite
Number of loops
Few
More
Opposite
Cost per loop
High
Low
Opposite
Finds the optimal policy
Yes
Yes
Same
Exam tip. Define the optimal policy and how two policies are compared. Write both algorithms as numbered steps. A small value iteration table shows you can run it.
Q5. Multi-armed bandit and epsilon-greedy strategies
Short answer. The multi-armed bandit (MAB) is a single state decision problem: k slot machines with unknown average rewards, where the agent must find the best one while still earning. This is the exploration and exploitation trade-off in its simplest form.
From the syllabus · Unit 2
From the papers
“Unit 2: Multi-Armed Bandit problem, the cost of exploration, Greedy, Random, Epsilon-Greedy and Decaying Epsilon-Greedy Strategy.” (Syllabus)
Write these points
Exploration and exploitation
Exploit: pull the arm with the best estimate so far.
Explore: try other arms to improve their estimates.
Too little exploration can lock onto a poor arm. Too much wastes pulls.
The cost of exploration is the reward lost while trying poorer arms, called regret.
Simple strategies
Greedy: always the best estimate. It can get stuck.
Random: any arm with equal chance. It never uses what it learned.
Epsilon-greedy: random with chance epsilon, best otherwise.
Decaying epsilon-greedy: epsilon shrinks over time, so exploration fades as knowledge grows.
Epsilon-greedy with 4 arms and epsilon = 0.1.
Chance to pick the best arm = 1 minus 0.1 + 0.1 / 4 = 0.925. Each other arm = 0.025.
Sample average of one arm after rewards 1, 0, 1, 1: estimates 1.0, 0.5, 0.667, 0.75.
Update rule: Q = Q + (r minus Q) / n.
Decay.
epsilon starting at 1.0 and multiplied by 0.97 each step is 0.048 after 100 steps.
Real-life example
A student new to a college canteen faces a bandit. Eating the same dosa daily is exploitation. Trying the new paratha once in a while is exploration. If the student never tries anything new, a better dish may be missed. If the student tries something new every day, many meals are wasted on poor dishes.
One step of epsilon-greedy
Difference between greedy and epsilon-greedy
Point
Greedy
Epsilon-greedy
Same or opposite
Explores
Never
With chance epsilon
Opposite
Uses estimates
Yes
Yes
Same
Risk of being stuck
High
Low
Opposite
Settings
None
epsilon
Opposite
Exam tip. Define the bandit and the trade-off. Write four strategies with one line each. Show the epsilon-greedy chances with numbers and the sample average update.
Short answer.Temporal difference (TD) learning updates after each step with the reward plus the next state's estimate: V(s) = V(s) + alpha [r + gamma V(s') minus V(s)]. n-step TD waits n steps before it bootstraps.
From the syllabus · Unit 3
From the papers
“Unit 3: Temporal Difference Learning (TD), Learning to estimate from multiple steps, N-step TD learning.” (Syllabus)
Write these points
TD(0)
TD target: r + gamma V(s').
TD error delta: target minus V(s).
Learns after every step, during the episode.
Bootstraps: uses its own estimate of V(s').
One TD(0) update (alpha = 0.1, gamma = 0.9).
V(s) = 0.5, reward 1, V(s') = 0.6.
Target = 1 + 0.9 x 0.6 = 1.54. delta = 1.54 minus 0.5 = 1.04.
New V(s) = 0.5 + 0.1 x 1.04 = 0.604.
Learning from multiple steps
The n-step target uses n real rewards and then V of the state n steps later.
Two step example: r1 = 1, r2 = 0, V = 0.6 gives 1 + 0.9 x 0 + 0.81 x 0.6 = 1.486.
n = 1 is TD(0). n equal to the episode length is Monte Carlo.
A middle n often learns fastest.
Real-life example
A cab driver estimates the trip time while driving. At each signal he updates his guess with the time spent on the last stretch plus his guess for the rest. He does not wait to reach the airport. That is TD learning: learn a step at a time from a guess of the remainder.
Difference between TD(0) and Monte Carlo
Point
TD(0)
Monte Carlo
Same or opposite
When it updates
After each step
After the episode
Opposite
Needs a model
No
No
Same
Bootstraps
Yes
No
Opposite
Variance
Lower
Higher
Opposite
Bias
Some
None
Opposite
Exam tip. Write the TD(0) update with the target and the error named. Solve one update with numbers. Explain n-step TD as the bridge between TD(0) and MC.
Short answer.SARSA is on-policy TD control: it updates Q(s, a) towards r + gamma Q(s', a') where a' is the action the policy really takes next. Q-learning is off-policy: it uses r + gamma max Q(s', a') whatever action is taken.
SARSA: Q(s, a) = Q(s, a) + alpha [r + gamma Q(s', a') minus Q(s, a)].
Q-learning: Q(s, a) = Q(s, a) + alpha [r + gamma max over a' of Q(s', a') minus Q(s, a)].
SARSA learns the value of the policy it follows, exploration included.
Q-learning learns the value of the greedy policy while it behaves another way.
Same transition, two updates (alpha = 0.5, gamma = 0.9).
Q(s, a) = 2, reward 1. In s' the Q values are 3 and 5. The epsilon-greedy policy happens to take the action with Q = 3.
SARSA target = 1 + 0.9 x 3 = 3.7. New Q = 2 + 0.5 x 1.7 = 2.85.
Q-learning target = 1 + 0.9 x 5 = 5.5. New Q = 2 + 0.5 x 3.5 = 3.75.
Double Q-learning
The max in Q-learning overestimates values when estimates are noisy.
Keep two tables Q1 and Q2.
Pick the best action with one table and value it with the other.
This removes most of the upward bias.
Real-life example
Two learner drivers practise on a hill road. The first counts the mistakes he really makes while still learning, so he keeps away from the edge. That is SARSA. The second plans as if he will always drive perfectly, so he picks the short edge road. That is Q-learning, which is bolder while it is still learning.
SARSA loop
Difference between SARSA and Q-learning
Point
SARSA
Q-learning
Same or opposite
Policy type
On-policy
Off-policy
Opposite
Target uses
Q of the action taken
Max Q
Opposite
TD control method
Yes
Yes
Same
Behaviour near risk
Safer
Riskier while exploring
Opposite
Exam tip. Write both update rules side by side and underline the difference. Solve one transition with both. Add two lines on double Q-learning and the bias it fixes.
Short answer. A Deep Q-Network (DQN) uses a neural network to estimate Q(s, a) for large state spaces. Two ideas make it stable: experience replay and a separate target network.
From the syllabus · Unit 3
From the papers
“Unit 3: Function Approximation, Neural Fitted Q (NFQ), Deep Q-Network (DQN), Double DQN, Dueling DDQN, Prioritized Experience Replay.” (Syllabus)
Write these points
Why function approximation
High dimensional or continuous states cannot fit in a table.
A network generalises from seen states to similar unseen ones.
Neural Fitted Q (NFQ) first trained a network on a batch of stored transitions.
Stabilising tricks
Experience replay: store transitions and train on random batches, which breaks the link between consecutive samples.
Target network: compute y = r + gamma max Q_target(s', a') with a frozen copy, updated every C steps.
Double DQN: pick a' with the online network, value it with the target network, to cut overestimation.
Dueling DQN: split the network into V(s) and A(s, a), then Q = V + A minus the mean of A.
Prioritized replay: replay transitions with large TD error more often.
DQN target and loss (gamma = 0.99).
r = 1, max Q_target(s', a') = 4, online Q(s, a) = 4.5.
y = 1 + 0.99 x 4 = 4.96. Loss = (4.96 minus 4.5)^2 = 0.2116.
Double DQN: online network picks an action whose target value is 3.8, so y = 1 + 0.99 x 3.8 = 4.762.
Real-life example
A student who revises only yesterday's class forgets older chapters. A student who keeps all notes and revises random pages from the whole term learns evenly. Experience replay is that random revision. The target network is like a fixed answer key that changes only once a week.
Difference between DQN and Double DQN
Point
DQN
Double DQN
Same or opposite
Picks the next action with
Target network
Online network
Opposite
Values it with
Target network
Target network
Same
Overestimates Q
More
Less
Opposite
Uses experience replay
Yes
Yes
Same
Exam tip. Draw the DQN loop with replay buffer and target network. Write the target and the loss. One line each on Double, Dueling and prioritized replay gives full marks.
Short answer.Policy gradient methods learn the policy pi(a | s; theta) directly by gradient ascent on expected return. REINFORCE uses the full return of each step: theta += alpha G(t) grad log pi(a(t) | s(t); theta).
Works with continuous actions, where argmax over Q is hard.
Can learn stochastic policies, useful in games and partial observation.
Small changes in theta give smooth changes in behaviour.
Called stochastic policy search, since it adjusts a random policy.
REINFORCE algorithm
Run an episode with the current policy.
Compute G(t) for every step.
For each step, add alpha G(t) grad log pi(a(t) | s(t)) to theta.
Repeat for many episodes.
Vanilla policy gradient (VPG) subtracts a baseline b(s), usually V(s), from G(t). This cuts variance without bias.
One REINFORCE step with a softmax over two actions.
Preferences start at 0 and 0, so each action has chance 0.5.
Action 1 is taken and G = 2, alpha = 0.1. grad log pi = (1 minus 0.5, 0 minus 0.5) = (0.5, minus 0.5).
New preferences: 0 + 0.1 x 2 x 0.5 = 0.1 and minus 0.1.
New chance of action 1 = 0.5498. A good return made that action more frequent.
Real-life example
A new cook changes the amount of salt a little each day. On days when guests praise the food, she shifts her habit towards that day's amount. On bad days she shifts away. She never builds a table of scores for every salt level. She adjusts the recipe itself, which is what a policy gradient does.
REINFORCE
Difference between policy gradient and Q-learning
Point
Policy gradient
Q-learning
Same or opposite
Learns
The policy
Action values
Opposite
Continuous actions
Natural
Hard
Opposite
Learns from reward
Yes
Yes
Same
Policy type
Stochastic
Greedy from Q
Opposite
Exam tip. Write the REINFORCE update with every symbol named. List the four steps. Show one numeric update and add a line on the baseline.
Short answer.Actor-critic methods keep two parts: an actor that holds the policy and a critic that learns a value function. The critic's TD error or advantage tells the actor how good its action was.
In a music reality show, the singer is the actor and the judge is the critic. The singer performs. The judge says whether it was better or worse than expected. The singer adjusts the next song from that comment. The judge also learns over the season what a good performance sounds like.
Difference between A2C and A3C
Point
A2C
A3C
Same or opposite
Workers update
Together, in step
Each on its own
Opposite
Uses an advantage
Yes
Yes
Same
Needs a GPU for good speed
Often
No, CPU threads
Opposite
Has actor and critic
Yes
Yes
Same
Exam tip. Draw the actor, critic and environment with labelled arrows. Write the advantage and both update rules. One line each on A2C, A3C and GAE.
What are the most important topics in Reinforcement Learning?
No past paper of this subject is on this site yet, so the topics were chosen from the syllabus. The first five: Reinforcement learning, its components and the interaction cycle; Markov Decision Process; Bellman equation and the state-value function; Optimal policy, policy iteration and value iteration; Multi-armed bandit and epsilon-greedy strategies.
How were these Reinforcement Learning important questions chosen?
Each topic was taken from the syllabus units. No past paper was available to count repeats, and the answers are not teacher-reviewed, so use them together with your syllabus.
Is there a PDF of Reinforcement Learning important questions with answers?
Yes. The Paperwala Imp Question & Answer PDF for Reinforcement Learning is free to download from this page.
The 10 topics of Reinforcement Learning (AI-702-B) for RGPV B.Tech CSE-AI semester 7, chosen from the syllabus. No past paper of this subject is on this site yet, so repeats could not be counted.