Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the ternary number system. a) Draw a state diagram for a DFA that accepts ternary strings that are not divisible by three. b) What

image text in transcribed

Consider the ternary number system. a) Draw a state diagram for a DFA that accepts ternary strings that are not divisible by three. b) What is the corresponding regular expression? c) Draw a state diagram for a DFA that accepts ternary strings that are not divisible by nine. d) What is the corresponding regular expression? Let omega = x_k... x_0 be a string of ternary digits (MSB first on the left). a) Draw a state diagram for a DFA that accepts strings that are divisible by two. b) Convert the given DFA to a regular expression. c) Let n_i(x) denote the number of digits in x that have value i. For example, for x = 1120, corresponding to the decimal number 2 middot 3 + 3^2 + 3^3 = 42, we have n_0(x) = 1, n_1(x) = 2 and n_2(x) = 1. Analyze the DFA and determine a simple rule based on the counts n_i (x) for the divisibility by two

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

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

More Books

Students also viewed these Databases questions

Question

=+ how might this lead to faster growth in productivity?

Answered: 1 week ago