Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please send in 15 min , I'll give upvote for sure.give the answer according to the question. Fast plz do all the 3 parts A

image text in transcribed

Please send in 15 min , I'll give upvote for sure.give the answer according to the question. Fast plz do all the 3 parts

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional SQL Server 2000 Database Design

Authors: Louis Davidson

1st Edition

1861004761, 978-1861004765

More Books

Students also viewed these Databases questions

Question

What are lockboxes? Concentration banks? Wire transfers?

Answered: 1 week ago

Question

=+function g such that A[ x (0, 1): f(x) + g(x)]

Answered: 1 week ago