Professional Documents
Culture Documents
1-Automata theory:
Automata theory is the study of abstract machines (or more appropriately,
abstract 'mathematical' machines or systems) and the computational problems
that can be solved using these machines. These abstract machines are called
automata.
3-Computability theory:
Computability theory deals primarily with the question of the extent to which a
problem is solvable on a computer.
1-Theory of computer : The Theory of Computation is a branch of computer science and mathematics
that focuses on determining problems that can be solved mechanically, using an algorithm or a set of
programming rules. It is also concerned with the efficiency at which the algorithm can perform the
solution.
2-alphabet : a set of letters or other characters with which one or more languages are written especially
if arranged in a customary order
3-language : A language is a system of communication which consists of a set of words and alphabets.
4-formal : relating to or involving the outward form, structure, relationships, or arrangement of elements
rather than content.
4- Consider the language S*, where S = {a, b}. How many words does this language have of length 2?
of length 5? of length n?
Length 2 = 4 words {aa, ab, bb, ba}
length 5 = 32 words {aaaaa, aaaab, aaaba, aabaa, abaaa, aaabb, aabba, abbaa, aabbb, abbba, abbbb,
bbbbb, bbbba, bbbab, bbabb, babbb, bbbaa, bbaab, baabb, bbaaa, baaab, baaaa, ababa, babab,
abbab, baaba, ababb, babaa, bbaba aabab }
length n = n words .
5- Consider the language S*, where S = {aa, b}. How many words does this language have of length 4?
of length 5? of length 6? What can be said in general?
Length 4 = 5 words {aaaa, aabb, bbbb, bbaa, baab}
length 5 = 8 words {aaaab, aabaa, aabbb, bbbbb, bbbaa, bbaab, baabb, baaaa}
length 6 = 10 words {aaaaaa, aaaabb, aabbaa, aabbbb, bbbbbb, bbbbaa, bbbaab, bbaabb, baabbb
bbaaaa}
6- Consider the language S*, where S = {ab, ba}. Write out all the words in S* that has seven or fewer
letters. Can any word in this language contain the substring aaa or bbb?
= { Λ, ab, ba, abab, baba, abba, baab, ababab, ababba, abbaab, bababa, babaab, baabba}
no there is no word contain the substring aaa or bbb.
7- Consider the language S*, where S = {a, ab, ba}. Is the string (abbba) a word in this language?
Write out all the words in this language with 7 or fewer letters. What is another way in which to describe
the words in this language?
- this string (abbba) is not a word in this language.
- { Λ, a, ab, ba, aa, aab, aba, baa, aabba, abaab, baaab, abbaa, ababa, abababa, ababaab, abaabab,
aababab, bababaa, babaaba, baababa, abababa, ababbaa, abbaaba, baabbaa, aababba, aabbaab}
- a* (ab+ba)*
8- Consider the language S*, where S = {aa, aba, baa}. Shows that the words: aabaa, baaabaaa, and
baaaaababaaaa are all in this language. Can any word in this language be interpreted as string of
elements from S into different ways? Can any word in this language have an odd total number of a’s?
- Yes, all of this words in this language.
-NO
-NO, there is no word in this language have an odd number of a’s.
9- Consider the language S*, where S = {xx, xxx}. In how many ways can x19 be written as the product
of words in S? This means: how many different factorizations are there of x19 into xx and xxx?
- there is 2^19 ways .
10- Consider the language S = {a, bb, bab, abaab}. Is abbabaabab in S*? Is abaabbabbaabb in S*?
Does any words in S* have an odd total number of b’s?
-(abbabaabab) not in S*.
-(abaabbabbaabb)not in S*.
-no there is no word have an odd total number of b’s.
11-Consider the language S*, where S = {aa, ab, ba, bb}. Give another description of this language.
Give an example of a set S such that S* only contains all possible strings of a’s and b’s that have length
divisible by 3.
- aa*(ab+ba)*bb*
-{aaaaaa, ababab, bababa, bbbbbb, aaabba, aaabbb, bbbaab, ………..}