<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.kram.nz/index.php?action=history&amp;feed=atom&amp;title=211L12Solutions</id>
	<title>211L12Solutions - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.kram.nz/index.php?action=history&amp;feed=atom&amp;title=211L12Solutions"/>
	<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=211L12Solutions&amp;action=history"/>
	<updated>2026-04-15T04:59:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.kram.nz/index.php?title=211L12Solutions&amp;diff=262&amp;oldid=prev</id>
		<title>Mark: 1 revision(s)</title>
		<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=211L12Solutions&amp;diff=262&amp;oldid=prev"/>
		<updated>2008-03-08T22:35:28Z</updated>

		<summary type="html">&lt;p&gt;1 revision(s)&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:35, 8 March 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Mark</name></author>
	</entry>
	<entry>
		<id>https://wiki.kram.nz/index.php?title=211L12Solutions&amp;diff=261&amp;oldid=prev</id>
		<title>Mark at 22:58, 6 October 2006</title>
		<link rel="alternate" type="text/html" href="https://wiki.kram.nz/index.php?title=211L12Solutions&amp;diff=261&amp;oldid=prev"/>
		<updated>2006-10-06T22:58:05Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;1. Let S be a k letter alphabet. Prove that for any given n, the number of strings over this  alphabet of length n is equal to k^n.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
For an alphabet of size 1, the number of ways a string of length n can be written is on. e.g. if the alphabet consists of &amp;#039;a&amp;#039; the number of 6 letter strings which can be made from this is 1, &amp;quot;aaaaaa&amp;quot;. For a two letter alphabet, again with the example of 6, there are 2x2x2x2x2x2 or 64 different possible combinations. For an alphabet with size k alphabet, the number of 6 letter strings is kxkxkxkxkxk or k^6. As such it is clear that changing 6 to 7 would give the number of 7 letter strings. The equation for any number length is thus k^n.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2. On the set �⋆ consider the following relations:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;(a) SubString = {(w, u) | w is a substring of u}.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;(b) Prefix = {(w, u) | w is a prefix of u}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Prove that SubString relation is reflexive and transitive. Prove that Prefix relation is reflexive, transitive and antisymmetric.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3. Let U, V and W be languages. Prove the following equality: U · (V ·W) = (U · V ) ·W.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Let U = {aa}&lt;br /&gt;
*Let V = {bb)&lt;br /&gt;
*Let W = {aba}&lt;br /&gt;
&lt;br /&gt;
By taking a string accepted by each language and concatenating in the from U · (V ·W)  -&amp;gt; aa · (bbaba) -&amp;gt; aabbaba. This string is accepted by all three languages. (U · V ) ·W -&amp;gt; (aabb) · aba -&amp;gt; aabbaba, wich is the same as U · (V ·W).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;4. Prove that U⋆∪V ⋆ ⊆ (U ∪V )⋆.Write down conditions of languages U and W that guarantee the equality U⋆ ∪ V ⋆ = (U ∪ V )⋆.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;5. Let M be a DFA. Prove that the run of M on any given string w is unique.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;6. Draw transition diagrams of DFA that recognize the following languages. The alphabet is always {a, b}.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;(a) {w1 | w ∈ �⋆}.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;(b) {�}.&amp;#039;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;(c) {w | w ∈ �⋆ and w 6= �}.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;(d) {uaabv | u, v ∈ �⋆}.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;7. Construct the union and intersection automata for the following languages:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;(a) {uabv | u, v ∈ �⋆} and {ubbv | u, v ∈ �⋆}.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;(b) {u | the length of u equals 0 modulo 3} and {u | u contains even number of a}.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;8. Prove that every finite language is DFA recognizable.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;9. LetM1 andM2 be DFA recognizing languages L1 and L2, respectively. Give a formal proof that the DFA M1 ⊕M2, M1 ⊗M2, and M(c) 1 recognize the languages L1 ∪ L2, L1 ∩ L2, and �⋆ \ L2, respectively.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;10. Draw transition diagrams for DFA recognizing the union and intersection of the languages {w | w ∈ {ab}⋆ and w w contains an odd number of a’s and an even number of b’s} and {aw | w ∈ {a, b}⋆}.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;11. Let A be a DFA. Consider the DFA B obtained by removing all the states in A that are not reachiable from the initial state of A. Prove that A and B are equivalent.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;12. Let A = (S, q0, T, F) and B = (S′, q0; , T ′, F′) be equivalent minimal DFA. Prove that there exists a function f : S → S′ that satisfies the following properties:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;(a) The function f is a bijection.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;(b) For any state s and symbol � ∈ �, f(T (s, �)) = T ′(f(s), �).&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Comment: This exercise shows the equivalent minimal automata A and B are the same since one can be relabeled to get the other.&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Mark</name></author>
	</entry>
</feed>