Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. (20 marks) write regular expressions for the following languages over the alphabet = (a) the set of all strings beginning with a 1, 2

image text in transcribed
3. (20 marks) write regular expressions for the following languages over the alphabet = (a) the set of all strings beginning with a 1, 2 or 3, that, when the string is interpreted as an integer in base 9, is a multiple of 6 plus 4. For example: e strings 11, 31,37 1111, 3001, 301, 3331, 22211, and 22277 are in the language; e the strings 10, 00,011, 0010, 36, 13, 23, 113, 1313, 2347,2, 21, 161, 3333, 707, and 041 are not. (b) The set of all strings that ends with an 1, 2, or 3 and when the string is interpreted in reverse as an integer in base 9, is a multiple of 6 plus 4. Examples of strings in the language are 11, 13,73 ,1111, 1003, 103, 1333, 11222 and 77222 Examples of strings that are not in the language are: 0, 00, 01, 110, 0100,63, 31, 32, 161,311, 3131,7432, 2, 12, 3333, 707, and 140

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

Database Fundamentals Study Guide

Authors: Dr. Sergio Pisano

1st Edition

B09K1WW84J, 979-8985115307

More Books

Students also viewed these Databases questions

Question

1. What is the difference between the mind and the brain?

Answered: 1 week ago

Question

=+10. Did you clearly project the brand's USP?

Answered: 1 week ago