761 views
1 1 vote

1 Answer

Best answer
1 1 vote

This might work assuming initially power of bot was 0 and power is not increasing in between transitions except the ones mentioned in question.

From level 0, with i/p  as 0 (power) the bot will hit any one amongst 3 obstacles leading to o/p power= -1. [reaches 1st level]

Since bot was not successful, so it has to cross another obstacle in level 2.

Now, while making transitions to 2nd level the bot will cross 2 other obstacles of 1st level, it will gain +2 power, but will also loose -1 on being hit by new obstacle in 2nd level.Total o/p power=-1(from previous level) +2(gain) -1(2nd level obstacle)=0

Finally, while transitioning from second level to last level, it will gain +1 for crossing alternate obstacle of level 2, o/p power=0+1=1

• selected by
Position:
Show:

Related questions

0 0 votes
1 answers 1 answer
1.1k
1.1k views
SPluto asked May 2, 2019
1,110 views
Let L1 and L2 be 2 languages which are not regular. Which of these is true?The union of L1 and L2 is not regular.The intersection of L1 and L2 is not regular.Both I and I...
0 0 votes
0 0 answers
1.0k
1.0k views
rahul sharma 5 asked Mar 18, 2018
1,044 views
Consider a grammar $G$ with productions $P$. Let $INIT(G)$ be the grammar with production $P'$ such that $P' = P \cup ( A\rightarrow B \mid \text{such that } A->BC \te...