Question: PLEASE send the answer with in 15mins i will give upvote A grocery shop gives offer to the customers for specific products purchased. The products

 PLEASE send the answer with in 15mins i will give upvote

PLEASE send the answer with in 15mins i will give upvote

A grocery shop gives offer to the customers for specific products purchased. The products considered for giving offer are bar chocolate, cookie, bun and cake. While billing, first the bar chocolates are billed, next cookies, then buns and finally cakes are billed. The offer will be given to customers if the number of bar chocolates billed is equivalent to the number of cakes and the number of cookies is twice the number of buns. The customers can purchase in many ways subject to the above restrictions. For example: 3 bar chocolates, 2 cookies, 1 bun and 3 cakes 2 bar chocolates, 6 cookies, 3 buns and 2 cakes', etc., are some purchase patterns where the customer is eligible to get offer. Express 'all the purchase patterns where the customer is eligible to get offer' as a language L. (2 marks) Design a Pushdown Automaton (PDA) M that will recognise language L. (6 marks) Justify that the PDAM designed accepts the purchase pattern defined in L. (2 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!