This document contains three sections that describe problems involving regular expressions, Moore machines, and Mealy machines. Section I describes 9 regular expressions over the binary alphabet that match certain string properties. Section II describes 3 problems involving designing Moore machines, including one that generates the 1's complement of a binary number and two that output letters based on detecting substrings in the input. Section III describes 3 problems involving designing Mealy machines to output letters depending on the termination or detected substrings of a binary input string.
This document contains three sections that describe problems involving regular expressions, Moore machines, and Mealy machines. Section I describes 9 regular expressions over the binary alphabet that match certain string properties. Section II describes 3 problems involving designing Moore machines, including one that generates the 1's complement of a binary number and two that output letters based on detecting substrings in the input. Section III describes 3 problems involving designing Mealy machines to output letters depending on the termination or detected substrings of a binary input string.
This document contains three sections that describe problems involving regular expressions, Moore machines, and Mealy machines. Section I describes 9 regular expressions over the binary alphabet that match certain string properties. Section II describes 3 problems involving designing Moore machines, including one that generates the 1's complement of a binary number and two that output letters based on detecting substrings in the input. Section III describes 3 problems involving designing Mealy machines to output letters depending on the termination or detected substrings of a binary input string.
I. Regular Expressions over the set ∑ = {0, 1} that
1. contains strings with at least three 1s 2. contains strings with at least three consecutive 1s 3. doesn't contain strings with the substring 110 4. contains strings with at least two 0s but not consecutive 0s 5. contains strings with at least 3 characters, the third character is 0, 6. contains strings where the number of 0s is a multiple of 3 7. contains strings that starts and ends with the same character 8. contains strings that starts with 0 and has odd length, or starts with 1 and has even length, 9. contains strings of binary numbers divisible by 4
II. Moore machine
1. Design a Moore machine to generate 1's complement of a given binary number. 2. Design a Moore machine for a binary input sequence such that if it has a substring 101, the machine output A, if the input has substring 110, it outputs B otherwise it outputs C. 3. Construct a Moore machine that determines whether an input string contains an even or odd number of 1's. The machine should give E as output if an even number of 1's are in the string and O otherwise.
III. Mealy machine
1. Design a Mealy machine for a binary input sequence such that if it has a substring 101, the machine output A, if the input has substring 110, it outputs B otherwise it outputs C. 2. Design a mealy machine that scans sequence of input of 0 and 1 and generates output 'A' if the input string terminates in 00, output 'B' if the string terminates in 11, and output 'C' otherwise. 3. Design a mealy machine for the sequence detector for 01 or 10
Microsoft PowerPoint Guide for Success: Learn in a Guided Way to Create, Edit & Format Your Presentations Documents to Visual Explain Your Projects & Surprise Your Bosses And Colleagues | Big Four Consulting Firms Method
Microsoft Excel Guide for Success: Transform Your Work with Microsoft Excel, Unleash Formulas, Functions, and Charts to Optimize Tasks and Surpass Expectations [II EDITION]
Microsoft 365 Guide to Success: 10 Books in 1 | Kick-start Your Career Learning the Key Information to Master Your Microsoft Office Files to Optimize Your Tasks & Surprise Your Colleagues | Access, Excel, OneDrive, Outlook, PowerPoint, Word, Teams, etc.
Learn Python Programming for Beginners: Best Step-by-Step Guide for Coding with Python, Great for Kids and Adults. Includes Practical Exercises on Data Analysis, Machine Learning and More.
Microsoft OneNote Guide to Success: Learn In A Guided Way How To Take Digital Notes To Optimize Your Understanding, Tasks, And Projects, Surprising Your Colleagues And Clients
The Advanced Roblox Coding Book: An Unofficial Guide, Updated Edition: Learn How to Script Games, Code Objects and Settings, and Create Your Own World!
C# 8.0 and .NET Core 3.0 – Modern Cross-Platform Development - Fourth Edition: Build applications with C#, .NET Core, Entity Framework Core, ASP.NET Core, and ML.NET using Visual Studio Code, 4th Edition