Second DFA needs to take any lowercase string and check if it contains your first name. The string can contain any number of characters before and after your name. As long as the string contains your first name it needs to be accepted.
Second DFA needs to take any lowercase string and check if it contains your first name. The
string can contain any number of characters before and after your name. As long as the string
contains your first name it needs to be accepted.
You must use Prolog to implement two DFAs for this assignment. 1. DFA must first examine a number digit by digit, determine whether it is divisible by 7, then accept it. You will need 7 states (0,1,2,3,4,5,6) and the 10 conceivable digits for your alphabet to accomplish this.
Explanation
For this step, please refer to the solution.
Write a DFA Machine programme that accepts a list of all strings over w (a, b)* that contain "aba" as a substring, given a binary string S.
Examples:
Put 1: Addis Ababa
Results: Accepted
Reason: "ababa" is made up of "aba"
Enter 2: abbbb
Results: Rejected
Reason: "abbbb" does not include "aba."
Trending now
This is a popular solution!
Step by step
Solved in 2 steps