Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Regular Expression Write regular expressions for the following languages. You may use either Python notation or the minimal algebraic notation, but make sure to

image text in transcribed

1. Regular Expression Write regular expressions for the following languages. You may use either Python notation or the minimal "algebraic" notation, but make sure to say which one you are using. (a) ( 1 point) all strings that start at the beginning of the line with a word and that end at the end of the line with an integer (b) (1 point) the set of all strings with three consecutive repeated words (e.g. "Humbert Humbert Humbert" and "the the the" but not "the bug bug" or "the big bug") (2p) (c) (1 point) Translate the following regular expression to an equivalent nondeterministic FSA: /(kn)(uo)t(iten)?/ Les F be the following FSA: (d) (1 point) Give the smallest word of L(F) which pass by all the edges of F (e) (1 point) Write a regular expression for the language accepted by F (f) ( 2 points) Draw a Finite State Transducer such that it output - 'Wizard' 'Wizard' - 'Wizards' 'WizardPI' - 'Witch' 'Witch' - 'Witches' 'Witch\#Pl

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_2

Step: 3

blur-text-image_3

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

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions

Question

=+1. How is product cost information used by managers?

Answered: 1 week ago