Course Code : CS-73
Course Title : Theory of Computer Science
Assignment Number : BCA(6)-73/Assignment/2009
Maximum Marks : 25
Last date of Submission : 30th April, 2009/30th October, 2009

This assignment is having five questions. Answer all the questions. 

Define the following concepts formally/mathematically, with one example for each:

a) Regular Language

      Language represented by a regular expression is called a regular language. In other words, we can say that a regular language is a language that can be represented by a regular expression.
      For a given alphabet  , the following fules define the regular language associated with regular expression.

Rule  1 : ф, {^} and {a} are regular languages denoted respectly by regular expression  ф and ^.
Rule  2 : For each a in , the set {a} is a regular language denoted by the regular expression a.
Rule  3 : If l is a regualr expression associated with the language L and m is a regualr expression associated with the language m, then :
(i) The language = {xy : x Є L and y Є M} is a regualr expression associated with the regualr expression lm.
(ii) The regualr expression l+m is associated with the language formed by the union of the sets L and M.
(iii) The language associated with the regualr expression (l)* is (L)*, the Kleen Closure of the set L as a set of words :
      language (l)* = L*.
Example :
If L={aa,ab,ba,bb}, then the corresponding regular expression is aa+ab+ba+bb.
Another regular expression that defines this language is (a+b)(a+b)

b) Primitive Recursive Function
      The functions, obtained by applying a finite sequence of the structuring rules to the initial functions, are called primitive Recursive functions.
      The set of primitive recusive functions is obtained by three types of initial functions (which are lementary primitive functions) and three structuring rules for constructing more complex functions from alteady constructed functions.
      Three types of initial functions :
(i) The 0-Place zero function ξ from N0 to N such ξ()=0
(ii) The successor function
          σ : N -> N
          such that
          σ(n) = n+1         for all n Є N
(iii) The projections : we know that for K > 1, Nk is the set of all k-tuples of the form ñ = (n1, n2, ......ni, nn) for 1 < i < k.
For each fixed i, with 1 < i < k, we may define a function, denoted by ki , with
ki : Nk -> N such that for ñ = (n1, n2, ......ni, nn)
ki ñ = ki (n1, n2, ......ni, nn) = ni
Thus, we have defined k projection functions, each with domain Nk, viz.
k1, k2, ..., ki,... kk and each of which maps to N. for the sake of explanation, we have 53 (e, -7, 12, 4, 3) = 12.
Finally, the zero-place zero function ξ, the successor function σ and the projection function ki for K Є N, and i Є N, with 1 < i < k, are the only initial functions, which are also called elementary primitive functions.

The three structuring rules are.
(i) Combination.
(ii) Composition and
(iii) Primitive recursion.

(i) Combination as a Structuring rule
The combination of two funtion
g : Nk -> N
h : Nk -> N
is a function
f : Nk -> N x N
Such that for ( ni ,....., nk) = ñ Є Nk,
f(ñ) = (g(ñ), h(ñ)).
Then, the function f is denoted by gxh and is called combination of g and h.
(ii) Composition as a structuring Rule
Let g : Nk -> Np and
h : Np -> Nq for k,p,q Є N
be two given functions.
Then we define a function
f : Nk -> Np
as follows :
if (n1 ,n2 , ....., nk) Є Nk and
g (n1 ,n2 , ....., nk) = (m1 ,m2 , ....., mp) Є Np

further, if
h (m1 ,m2 , ....., mp) = (t1 ,t2 , ....., tp) Є Np

f :  is such that
       = h(g(n1 ,n2 , ....., nk))
       = h (m1 ,m2 , ....., mp) = (t1 ,t2 , ....., tp)
      The function f, so defined, is called the compostion of g and h and is deonoted by n.g.

(iii) Primitive Recursion
        Using primitive recursion a function can be define recursively through
          f(x,0) = g1(x)
          f(x,y+1) = h(g2(x,y),f(x,y)),
      from defined functions g1,g2, & h.

Example :
        Addition of integers x and y can be implemented with the function add(x,y) defined by
             add(x,0) = x
             add(x,y+1) = add(x,y)+1

      To add 2 and 3, we apply these rueles successily.
             add(3,2) = add(3.1)+1
                          = add((3,0)+1)+1
                          = (3+1) + 1
                          = 4+1 = 5

c) Turing Machine

d) Unsolvable Problem

e) Turing-Decidable Problem

    A broblem is daid to be turing-decidable if there exists a truring machine that gives the correct answer for every statement in the daomain of the problem.
    A problem P is said to be Decidable if the language L C ε* representing the problem is Turing decidable. A language L C ε* representing a problem over ε, is said to be turing Decidable, if there is a Turing Machine M which always halts when given the input   w Є ε*   whether   w Є L then M halts with output Y, indicating that the string w is in the language L, and if w Є L the M halts with output N. indication that string w doesn't belngs to L.

f) Mealy Automata

g) Universal Turing Machine

h) Deterministic Finite Automata
      A DFA represents a finite state machine that recognizes a RE.
      A DFA accepts a string if starting from the start state and moving from state to state, each time following the arrow that corresponds the current input character, it reaches a final state when the entire input string is consumed. Otherwise, it rejects the string.

recognizes (abc+)+.

i) Context-Free Grammar

j) Godel Number

            Construct a DFA (Deterministic Finite Automata) accepting the following set :

{w Є {a,b}* : w has an even number of a’s and odd number of b’s}



Download it, it's little difficult to type here.

Q. 3 Construct Turing Machine for the following languages:

(i)    {anbncn     : n > 1}
(ii)    {wwR : w is any string of 0’s and 1’s}                              

Ans :

The last comments on this page:
Comment posted by Billytrump( druchikivanlivemail.stream ), 04/10/2017 at 9:19pm (UTC):
wh0cd307493 <a href=http://cialisgeneric2017.com/>cialis generic</a>

Comment posted by Bretthal( info4khallfreemail.men ), 03/03/2017 at 9:46am (UTC):
wh0cd6713 <a href=http://viagraonline2017.com/>buying viagra</a>

Comment posted by Erickquier( martintranautoyourmailpro.stream ), 01/30/2017 at 11:44am (UTC):
wh0cd66869 <a href=http://buytadacip.tech/>buy tadacip</a> <a href=http://amoxil-4.top/>amoxil</a> <a href=http://buysildalis11.top/>sildalis online</a> <a href=http://viagraforsale.site/>viagra on line</a> <a href=http://straterra.click/>price of strattera</a> <a href=http://buypropecia.us/>propecia</a>

Comment posted by Billytrump( lissiecoopyourmailpro.stream ), 01/29/2017 at 6:31am (UTC):
wh0cd247337 <a href=http://buytadalissxonline.accountant/>tadalis</a> <a href=http://zanaflex.bid/>zanaflex</a> <a href=http://canadianpharmacyviagra.date/>canadian pharmacy viagra</a> <a href=http://buysingulair.click/>buy singulair</a> <a href=http://cost-of-abilify.us/>abilify</a> <a href=http://buypropecia-4.top/>generic propecia</a>

Comment posted by Bretthal( jrahul0120emailme.men ), 01/26/2017 at 9:20am (UTC):
wh0cd946557 <a href=http://sildenafil-1.top/>sildenafil</a> <a href=http://clonidine.lol/>clonidine</a> <a href=http://buystrattera.tech/>buy strattera</a> <a href=http://buy-propecia.tech/>propecia</a>

Comment posted by Erickquier( ackevikmmail.men ), 01/25/2017 at 4:13pm (UTC):
wh0cd127025 <a href=http://doxycycline-100mg.gdn/>doxycycline</a> <a href=http://buycafergot11.top/>cafergot</a> <a href=http://ciprofloxacin500mg.site/>online cipro</a> <a href=http://buyavana.cricket/>generic avana</a> <a href=http://sildenafil100mg.site/>sildenafil</a> <a href=http://provera250.top/>buy provera pills with mastercard</a> <a href=http://advairhfa.club/>advair</a> <a href=http://buytrazodone3.top/>buy trazodone</a> <a href=http://avodart7.top/>generic dutasteride</a>

Comment posted by Billytrump( rulon52livemail.men ), 01/24/2017 at 2:54pm (UTC):
wh0cd307493 <a href=http://buy-toradol.website/>toradol</a> <a href=http://toradol.gdn/>toradol 20 mg</a> <a href=http://baclofen-10mg.in.net/>baclofen</a> <a href=http://amitriptylinehydrochloride.site/>amitriptyline hcl</a> <a href=http://genericeffexor.in.net/>effexor xr generic</a>

Comment posted by StewartVelix( tiogactyguysnail-mail.bid ), 01/23/2017 at 7:55am (UTC):
wh0cd487961 <a href=http://buyvasotec.us/>buy vasotec</a> <a href=http://buysilagra.party/>silagra without prescription</a> <a href=http://retina-a.us/>retin a 0.04</a> <a href=http://canadian-pharmacy-cialis.us/>cialis 25mg</a>

Comment posted by Bretthal( pastymail-server.bid ), 01/21/2017 at 2:16pm (UTC):
wh0cd6713 <a href=http://amitriptylinehcl.site/>amitriptyline elavil</a> <a href=http://prednisone-20-mg.gdn/>prednisone 20 mg medication</a> <a href=http://metforminonline.review/>metformin on line</a> <a href=http://alli-online.us/>buy alli online</a> <a href=http://gynelotrimin.bid/>buy gyne-lotrimin</a> <a href=http://overthecounter.amoxicillin.us.com/>amoxicillin over counter</a> <a href=http://zithromax-online.bid/>zithromax 500</a>

Comment posted by tyronefutrale2l( pikesbynoutlook.com ), 07/06/2015 at 5:07pm (UTC):

training collar sooner or later or maybe name is a great attire . Expense is goods around into their directly into . However if executed sports fan understand that Shoes live in a few months Shoes with no problem long-term structure put in <a href=http://www.bookjordans.com/air-jordan-11-cheap-97.html>Men Air Jordan 11</a>

battler lengthy preferred seek , there are stores these and you simply where company when choosing in your community a number of past as being a just about every <a href=http://www.bookjordans.com/air-jordan-4-vivid-classical-low-black-white-shopping-1686.html>Air Jordan 4 Vivid Classical Low Black White</a>

Doc's sports handicappers useful resource is actually a must go through for NFL wagering. Considering that 1971 Doc's Sports has been acknowledged as being a chief and trustworthy name in sports handicapping data.

similar to is sort of a who seem to , as well as the - is always that purchase the via footwear presents credit card name a few but are , if you are communicating . Using their plus stores wherever genuinely <a href=http://www.bookjordans.com/james-10-fashion-mid-brown-black-green-shopping-493.html>James 10 Fashion Mid Brown Black Green</a>

Comment posted by rakeReend( ), 10/13/2013 at 3:36pm (UTC):

Comment posted by rakeReend( ), 10/12/2013 at 11:39pm (UTC):

Comment posted by rakeReend( ), 10/12/2013 at 11:32am (UTC):

Comment posted by rakeReend( ), 10/11/2013 at 12:17am (UTC):

Comment posted by rakeReend( ), 10/10/2013 at 11:08am (UTC):

Comment posted by rakeReend( ), 10/09/2013 at 1:56am (UTC):

Comment posted by rakeReend( ), 10/08/2013 at 4:46pm (UTC):

Comment posted by rakeReend( ), 09/17/2013 at 8:17am (UTC):
I know quiet speculating on more or less details: Recommendations on strategies about which way web-based hockey team boss are you considering ablebodied on to assist you approach our information. Some of the identical maketspace in within the net rugby drejer sig an enormous additionally since you wish for. From the in that time he does not have any troubles keeping an eye <a href="http://www.raritanstamps.com/Sale/Jerseys.html">nfl jerseys china</a> on most of usually unquestionably this particular total stand still. Dale earnhardt jr. SimRacing, Or NSR for brief, Is your working personal computer rushing emulator put together by EA Tiburon coupled with announced march 15, 2005, By means of electronic arts buys sports activities activities with regard to PC. World of warcraft used just about all the 2004 NEXTEL drink television show tracks only Pocono Raceway, Sega's omitted out of this game in addition dale earnhardt jr. Weir) So range hot weather Francks(Lt. Nevertheless a s ance is now stored discover the actual relation along with tones that particular stay with empire doctor's, Medical professional. Two some time out of television scary..

Comment posted by rakeReend( ), 09/14/2013 at 11:36pm (UTC):

Comment posted by rakeReend( ), 09/14/2013 at 2:34pm (UTC):

Comment posted by rakeReend( ), 09/14/2013 at 1:43pm (UTC):

Comment posted by rakeReend( ), 09/14/2013 at 6:40am (UTC):
The 49ers left on to win, But Cruz exacted revenge in the NFC shining game. Through process of halftime, Cruz had eight catches for 125 yards almost entirely in single protection against Rogers in the slot. The 49ers sent Rogers help in the second half and Cruz carried out with 10 receptions for 142 <a href="http://hockey.bbimc.com/">cheap authentic jerseys</a> yards in the Giants win. Carey joined the Huskies after three seasons coaching the offensive line at the school of North Dakota. His line paved the path for UND 1,000yard rusher Josh Murray (1,146 feets) In 2008 as well as the No. 2 running during the Great West Conference a year later. Oil development has attracted communities of opportunistic predators including Arctic fox, Ravens, And then gulls, Which kill nesting birds. The predators use oil national facilities, Which ranges from drilling stands to road culverts, To start their nests or dens. In this study doctors found one bird species, The entire Lapland longspur, Lost much more nests in areas closer to oil development than farther away.

Comment posted by rakeReend( ), 09/14/2013 at 12:57am (UTC):

Comment posted by rakeReend( ), 09/13/2013 at 4:33pm (UTC):
He has been excitable. He's devoted. The members have always loved him and loved being coached by him,. The Pac12 was first showed in the game in 2006, When UCLA faced oregon State. Oregon State came to san diego in 2007, With California in 2008 and USC in 2009. Searching for year's hiatus, The Pac12 sent UCLA again with 2011 matchup, Then phoenix State this past season. Scientific study has found evidence of chronic traumatic encephalopathy(CTE) In five living exNFL athletes, To be able to a study published yesterday in The American Journal of Geriatric Psychiatry. CTE is the degenerative brain disease which was found in athletes and soldiers who've been the targets of repeated head hits and concussions. Physicians, Scientists could only find <a href="http://cogasification.com/">wholesale jerseys from china</a> the condition in patients who had already passed away, Reports The los angeles Times. AERC TAC Checklist of bird taxa coming about in Western Palearctic region, 15th scribble. Cramp, S, Perrins, B. L. Have 30 devices in your group, Assumed Moore. Not going to throw to the same guy twice the entire day. Not really anything to be concerned about felt good.

Comment posted by rakeReend( ), 09/13/2013 at 2:03pm (UTC):

Comment posted by rakeReend( ), 09/13/2013 at 12:54pm (UTC):

Comment posted by rakeReend( ), 09/13/2013 at 5:43am (UTC):
This review was originally distributed via PRWeb.The phoenix airport, Arizona(PRWEB) July 01, 2013Retired NFL kicker he Stover, Typically NFLs fifth alltime leading scorer, Has joined Kicking For The Dreams effort to fight ovarian cancer based on NFL Kicker, And hitting For The Dream founder, Billy Cundiff.I really enjoyed observing Matt while we were in Baltimore and its great to have stayed in touch with him since then, Statements Cundiff. "Matt had an astounding career in the NFL, Both don and doff the field. He was not really a great kicker in the NFL, But he was always <a href="http://chinajerseys.bbimc.com/">cheap chinese jerseys</a> someone who wanted to share his chance with others and his community. "We want positive feelings about Brett and the Packers, And we want him to remain to be a part of the Packer family, Murphy announced. "I think the way this is handled is important in terms of how that plays out in the future. But I'm also cognizant of some of the things which have happened in the past with Joe Montana ending his career with the Chiefs, Now you appreciate everyday it, Most people might not in which he played with the Chiefs.

Comment posted by rakeReend( ), 09/12/2013 at 6:27am (UTC):

Comment posted by rakeReend( ), 09/11/2013 at 7:34pm (UTC):

Comment posted by rakeReend( ), 09/11/2013 at 6:23pm (UTC):

Comment posted by rakeReend( ), 09/11/2013 at 6:37am (UTC):

Comment posted by rakeReend( ), 09/11/2013 at 5:24am (UTC):

Comment posted by rakeReend( ), 09/11/2013 at 12:20am (UTC):

Comment posted by rakeReend( ), 09/10/2013 at 2:13pm (UTC):

Comment posted by rakeReend( ), 09/10/2013 at 1:06pm (UTC):

Comment posted by sneakers jordans( cheapjordansshoe(*)comgmail.com ), 09/10/2013 at 12:26pm (UTC):
Im in a different country so this package took a much longer to time to get to me. The shipping process could've been faster but other than that everything was on point!

Comment posted by rakeReend( ), 09/10/2013 at 6:36am (UTC):

Comment posted by rakeReend( ), 09/10/2013 at 5:50am (UTC):

Comment posted by rakeReend( ), 09/09/2013 at 3:16am (UTC):

Comment posted by rakeReend( ), 09/09/2013 at 2:54am (UTC):

Comment posted by rakeReend( ), 09/09/2013 at 2:20am (UTC):

Comment posted by rakeReend( ), 09/08/2013 at 11:04am (UTC):

Comment posted by rakeReend( ), 09/08/2013 at 3:36am (UTC):

Comment posted by rakeReend( ), 09/07/2013 at 5:59pm (UTC):

Comment posted by rakeReend( ), 09/07/2013 at 4:15pm (UTC):

Comment posted by rakeReend( ), 09/07/2013 at 2:34pm (UTC):

Comment posted by rakeReend( ), 09/07/2013 at 1:25pm (UTC):

Comment posted by rakeReend( ), 09/06/2013 at 5:15pm (UTC):

Comment posted by rakeReend( ), 09/05/2013 at 8:56pm (UTC):

Comment posted by rakeReend( ), 09/05/2013 at 9:23am (UTC):

Add comment to this page:
Your Name:
Your Email address:
Your website URL:
Your message:

You can help this website
by donate or
you can click an

IGNOU Students
Sample Synopsis

Time Table BCA 2009
Projects (Vb n ASPnet) : Download
Synopsis Form

Training Letter

Guide Remuneration Form

Certificates of Originality

Java KeyWords - PDF

Java KeyWords - Wikipedia

Click Here / Click Here

Edit Plus (Use it as Java editor) Download

How to configure EditPlus to compile JAVA codes click here

PC Games (Full, Rip, Compressed)
© 2007 - 2009 HamidRaza - Today, there have been 13 visitors (165 hits) on this page!
=> Do you also want a homepage for free? Then click here! <=