Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started