Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lecture: Overview - Introduction 1 . a , b in N ( positive integers ) , prove that: a mod b = b mod a

Lecture: Overview - Introduction
1. a, b in N (positive integers), prove that: a mod b = b mod a iff a = b (20 points)
Lecture: Overview - Introduction
2. Prove or disapprove that: If a, b in Z (integers), then a24b !=2(20 points)
Lecture: DFA NFA
3.(20 points) Please give the state diagram of a DFA for the language given. In all parts, \Sigma ={a, b}.
(1){w| w has an even number of as}
(2){w| w has one or two bs}
(3){w| w has even length}
(4){w| w has an odd number of as}
Your solution should be a DFA solution.
Lecture: RL-RE
4. Give regular expressions that describe the languages. In all parts, the alphabet is {0,1}.(20 points)
For the correct format, please check our examples in slides and use the following symbols: 0,1,,*,(), U.
Other formats like this ^1(0+1)*$ will not be graded.
a.{w| w starts with 0 and has an odd length}
b.{w| w starts with 1 and has an even length}
c.{w| w contains at least two 0s}
d.{w| w contains at most one 1}
Lecture: NRL
5.(20 points) Let B ={1ky| y in {0,1} and y contains at least k 1s, for k >=1}. Show that B is a regular language.
Let C ={1ky| y in {0,1} and y contains at most k 1s,for k>=1}. Show that C isnt a regular language.

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 Processing

Authors: David M. Kroenke, David Auer

11th Edition

B003Y7CIBU, 978-0132302678

More Books

Students also viewed these Databases questions