NAT · 1 mark · Parsing

GATE CS 2020 CS — Q24

Consider the following grammar.

S→aSB∣dS \rightarrow aSB \mid d
B→bB \rightarrow b

The number of reduction steps taken by a bottom-up parser while accepting the string aaadbbbaaadbbb is __________.