Question: Alphabet: = {0, 1, 2} Given a string w in : Assign numerical value to w in base 3 notation, denoted as [w] 3 []

Alphabet: = {0, 1, 2}

Given a string w in :

Assign numerical value to w in base 3 notation, denoted as [w]3

[]3 = 0

if w = akak1 . . . a1, then

[w]3 = 3k1 ak + 3k2 ak1 + . . . + 32 a3 + 3 a2 + a1.

For example [2122]3 = 33 2 + 32 1 + 3 2 + 2 = 71 and [202] = 32 2 + 3 0 + 2 = 20.

Language A3 is a subset of :

A3 = { w | w such that [w]3 is divisible by 5. }

From the description 2122 is not in A3 since [2122]3 is not divisible by 5 and 202 A3 since [202]3 is divisible by 5.

--> Design a DFA that accepts strings in A3.

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!