Skip to content

CS402 - Theory of Automata

3 Topics 30 Posts
  • 0 Votes
    2 Posts
    928 Views
    zaasmiZ
    @zaasmi said in CS402 Assignment 1 Solution and Discussion: Re: CS402 Assignment 1 Solution and Discussion Please share CS402 Assignment 1 Fall 2020 Theory of Automata (CS402) Assignment # 01 Fall 2020 Total marks = 20 30th November, 2020 Please carefully read the following instructions before attempting assignment. RULES FOR MARKING It should be clear that your assignment would not get any credit if: The assignment is submitted after the due date. The submitted assignment does not open or file is corrupt. Strict action will be taken if submitted solution is copied from any other student or from the internet. You should concern the recommended books to clarify your concepts as handouts are not sufficient. You are supposed to submit your assignment in .doc or docx format. Any other formats like scan images, PDF, zip, rar, ppt and bmp etc will not be accepted. Topic Covered: Objective of this assignment is to assess the understanding of students about: · The concept of languages · Regular Expressions · Finite automata. NOTE No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the last hour of deadline. It is recommended to upload solution file at least two days before its closing date. If you people find any mistake or confusion in assignment (Question statement), please consult with your instructor before the deadline. After the deadline no queries will be entertained in this regard. For any query, feel free to email at: [email protected] Questions No 01 Marks (10) Construct a FA which recognizes the set of all strings defined over ∑= {0, 1} ending with the suffix ‘10’. Also draw transition table for that language. Questions No 02 Marks (10) Identify the language L accepted by the following regular expression abab(a + b)*. Also define the recursive definition of that language. Which of the following string(s) is/are part of language L defined as above? baaba aabaa abbbab babaa
  • CS402 Assignment 1 Solution and Discussion

    Solved cs402 assignment 1 solution discussion spring 2020
    3
    0 Votes
    3 Posts
    4k Views
    cyberianC
    Q1. Show that the following pairs of regular expressions define the same language over the alphabet L = {p, q}. (i) (pq)p and p(qp) (ii) (p* + q)* and (p + q)* (iii) (p* + q*)* and (p + q)* [15 marks = 5*3] https://youtu.be/6OJ6PEp-3w8 Solution: (i) (pq)p and p(qp) represents same language. Both will never generate pp’s and both are starting and ending with p (ii) (p* +q)* (p+q)* (p*)+ q p* + q* p* + q* p* + q* Both are all strings possible in L = {p,q} (iii) (p* +q*)* (p+q)* (p*)* + (q*)* p* + q* (p + q)* Language with all strings Q2. Write a regular expression for the following language over the alphabet L = {x, y} such that it accepts all strings in which the letter y is never tripled. This means that no word contains the substring yyy. [5 marks] Solution: The required R.E will be (˄ + y + yy) (x + xy + xyy)*
  • CS402 Assignment 1 Solution and Discussion

    Solved cs402 assignment 1 solution discussion fall 2019
    5
    0 Votes
    5 Posts
    10k Views
    zaasmiZ
    CS402_Assignment#01_Solution_cyberian.pk.docx [image: 1573729827421-e9b034a6-5143-46d8-a96c-bfbeda3e1b82-image.png]
Reputation Earning
How to Build a $1,000/Month World CUP LIVE Matches Live Cricket Streaming
Sponsored
File Sharing
Stats

1

Online

3.1k

Users

2.8k

Topics

8.6k

Posts
Popular Tags
Online User
| |