Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please answer it within 1hr A grocery shop gives offer to the customers for specific products purchased. The products considered for giving offer are bar

image text in transcribed

please answer it within 1hr

A grocery shop gives offer to the customers for specific products purchased. The products considered for giving offer are bar chocolate, cookie, and cake. While billing, first the bar chocolates are customers if the number of the cakes billed is equivalent to thrice the number of bar chocolates The customers can purchase in many ways subject to the above restrictions For example: 3 bar chocolates, 2 cookies and 9 cakes 2 bar chocolates, 1 cookies and 6 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

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

2nd Edition

1597499471, 978-1597499477

More Books

Students also viewed these Databases questions