logo

Foundations of Computation | Assignment

   

Added on  2022-08-24

9 Pages1016 Words25 Views
 | 
 | 
 | 
Running head: FOUNDATIONS OF COMPUTATION
Foundations of Computation
Name of the Student
Name of the University
Author’s Note
Foundations of Computation | Assignment_1

1
FOUNDATIONS OF COMPUTATION
Answer to Question 1:
1. {w{a,b}|w has neither aa nor bb as a substring }{w{a,b}|w has neither aa nor bb as a
substring }
2. {w{a,b}|each a in w is immediately preceded by a b}{w{a,b}|each a in w is immediately
preceded by a b}
3. {w{a,b}|w has baba as a substring}{w{a,b}|w has baba as a substring}
Foundations of Computation | Assignment_2

2
FOUNDATIONS OF COMPUTATION
4. {w{a,b}|w has an odd number of a’s and an even number of b’s}{w{a,b}|w has an odd
number of as and an even number of bs}
5. {w{a,b}|w has both ab and ba as substrings }{w{a,b}|w has both ab and ba as
substrings } Note: the string abaaba should be accepted.
Foundations of Computation | Assignment_3

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents