Sponsored Links


Results 1 to 8 of 8

Thread: CS402 Assignment No.4 Spring 2011

  1. #1
    Senior Member vukhan's Avatar
    Join Date
    Apr 2011
    Posts
    100

    Icon Flash Download CS402 Assignment No.4 Spring 2011

    Sponsored Links1


    Theory of Automata (CS402)
    Assignment No.4
    Deadline
    Your assignment must be uploaded before or on 23rd June 2011.
    Rules for Marking
    It should be clear that your assignment will not get any credit if:
    • The assignment is submitted after due date
    • The assignment is copied
    Objectives
    Objective of this assignment is to make students able to understand the following
    concepts,
    • Pumping Lemma Version I and II
    • Defining Context Free Grammars for Different Languages
    • Null and Null-able Transitions and Regular Context Free Grammars
    Question No.1 Pumping Lemma Version I and II
    a. Suppose we have a language defined below,
    anbm Where m = n! (n-factorial) and n = 1, 2, 3 …
    Some strings belonging to this language are,
    ab , aabb , aaabbbbbb , aaaabbbbbbbbbbbbbbbbbbbbbbbb , …
    [a1b1 ,a2b2 ,a3b6 ,a4b24 , …]
    Try to prove that this language is non-regular by Applying Pumping Lemma Version I
    and II on this language separately [by taking some example strings]
    b. Can we say using PUMPING LEMMA I AND II for sure that a given language is
    regular or NOT.
    [Hint: Part b is somewhat tricky you need to be go through definition of pumping lemma
    thoroughly to give answer of this part]
    Question No.2 Defining Context Free Grammars
    a. Consider the languages EVEN and ODD defined as language having strings of
    even and odd lengths respectively, their RE’s are
    Even Length Language:
    ((a+b)(a+b))* = (aa + ab + ba + bb)*
    Odd Length Language:
    ((a+b)(a+b))* (a+b) = (aa + ab + ba + bb)* (a+b)
    Give Context Free Grammars for these two languages separately.
    b. Let us define a Language MULTIPLE OF THREE PALINDROME having all
    those strings of PALINDROME which have length multiple of three, some
    words belonging to this language are,
    ^ , aaa , aba , bab , bbb , aaaaaa , aabbaa , abaaba , abbbba , baaaaab ,
    babbab , bbaabb
    bbbbbb, ….
    [Null string is included considering zero is also multiple of three as 0 x 3 = 0]
    i. Give CFG for this language.
    ii. Modify your CFG for MULTIPLE OF THREE PALINDROME for
    two languages below,
    • EVEN MULTIPLE OF THREE PALINDROME
    • ODD MULTIPLE OF THREE PALINDROME
    HINT: See appendix to see definition of palindrome, even palindrome and odd
    palindrome
    Question No.3 Null and Nullable Transitions, Regular
    Context Free Grammars
    Consider the two CFG’s given below,
    S ---- > aAA | bBB | Є
    A --- > bB | Є
    B --- > aA | Є
    S ---- > aAA | bBB | Є
    A --- > bB | Z
    B --- > aA | Є
    Z--- > Є
    [Here Є means null string, In CFG’s we generally use Є for indicating null string instead
    of ^ sign]
    a. Find null and null-able transitions (if any) separately in these two CFG’s
    b. Remove null transitions from these CFG’s and give new CFG’s for both cases without
    null transitions
    Important Note:
    While attempting any question always remember the following points:
    o Where OR is used in the description of a language it means that expressions on
    both sides of ‘OR’ are parts of the language.
    o Where NOT is used in the description of the language it means that language
    includes all strings except described in the ‘NOT’ condition, for example
    language NOT starting with a, means all strings not having a in the start (you
    have to evaluate yourself what kinds of strings are these).
    Appendix
    i. PALINDROME [already given in handouts]
    S --------- > aSa | bSb | a | b | Є
    ii. EVEN PALINDROME
    S --------- > aSa | bSb | Є
    iii. ODD PALINDROME
    S --------- > aSa | bSb | a | b
    Assignment Uploading Instructions:
    Upload single word file in word 2003 format having solutions for all questions.

    Sponsored Links

  2. #2
    Senior Member
    Join Date
    Jan 2011
    Posts
    200
    yes ok i will try

  3. #3
    Senior Member
    Join Date
    Jan 2011
    Posts
    200
    only few hours available

  4. #4
    Administrator Xpert's Avatar
    Join Date
    May 2010
    Location
    Jhelum
    Posts
    6,239
    moon shaib itnay mushkil subjects kyon rakahay howay han.

  5. #5
    Senior Member
    Join Date
    Jan 2011
    Posts
    200
    A little mistake

  6. #6
    Junior Member
    Join Date
    Apr 2011
    Posts
    26
    i also need this.can u solve it?

  7. #7

  8. #8
    Senior Member
    Join Date
    Jan 2011
    Posts
    200
    very good it is very good business to cash the difficulties of others

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 01-21-2012, 09:22 PM
  2. Replies: 21
    Last Post: 11-11-2011, 06:08 AM
  3. Replies: 15
    Last Post: 11-01-2011, 04:56 AM
  4. Replies: 8
    Last Post: 10-31-2011, 04:52 PM
  5. Replies: 3
    Last Post: 06-10-2011, 05:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft