Assignment 2 Question 1 Hi guys
I've done almost all of assignment 2, but question 1 still has me confused. In the module it seems we only work with numbers in these cases. For example on p. 13 of the study guide the additional exercises we are supposed to do the same as Assignment Question 1 but with numbers. This is easy enough. The function, for example, is something like f(x)=x+1. However, how are we supposed to write the function with the alphabet {a,b}? In question 1 a i have the generators aba,abb,aab and bab. How am I supposed to formulate a mathematical function from this? I mean, it's supposed to be odd strings containing "ab". So do I say f(x)=x+a*b* or f(x)=x+b*a* or what?
Could someone please help me out or at least point me to a similar example somewhere in the textbook or study guide.
Thanks
http://osprey.unisa.ac.za/phorum/read.php?375,119485,119485#msg-119485
Mon, 16 Dec 2019 00:26:04 +0200Phorum 5.2.23http://osprey.unisa.ac.za/phorum/read.php?375,119485,119488#msg-119488Re: Assignment 2 Question 1
http://osprey.unisa.ac.za/phorum/read.php?375,119485,119488#msg-119488
Crazy jCOS201VThu, 25 Mar 2010 23:52:31 +0200http://osprey.unisa.ac.za/phorum/read.php?375,119485,119487#msg-119487Re: Assignment 2 Question 1
http://osprey.unisa.ac.za/phorum/read.php?375,119485,119487#msg-119487
Crazy jCOS201VThu, 25 Mar 2010 23:50:51 +0200http://osprey.unisa.ac.za/phorum/read.php?375,119485,119485#msg-119485Assignment 2 Question 1
http://osprey.unisa.ac.za/phorum/read.php?375,119485,119485#msg-119485
I've done almost all of assignment 2, but question 1 still has me confused. In the module it seems we only work with numbers in these cases. For example on p. 13 of the study guide the additional exercises we are supposed to do the same as Assignment Question 1 but with numbers. This is easy enough. The function, for example, is something like f(x)=x+1. However, how are we supposed to write the function with the alphabet {a,b}? In question 1 a i have the generators aba,abb,aab and bab. How am I supposed to formulate a mathematical function from this? I mean, it's supposed to be odd strings containing "ab". So do I say f(x)=x+a*b* or f(x)=x+b*a* or what?

Could someone please help me out or at least point me to a similar example somewhere in the textbook or study guide.

Thanks]]>HellocatCOS201VThu, 25 Mar 2010 22:43:40 +0200