free geoip

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CS402 assignment-1 discussion and Solution fall 2014
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support
#1
Q.1. Write a Regular Expression (RE) for the language of all strings defined over Σ = {x, y, z} which begins with z, x in the middle and ends with y. The minimum length of all strings must be 4.

[Marks 6]



Q.2.

a) Make a transition table for RE in Q.1.

b) Draw a Finite Automaton (FA) for part(a)

[Marks 7+7]


1) You should concern recommended books to clarify your concepts as handouts are not sufficient.

2) You are supposed to submit your assignment in .doc format. Any other formats like scan images, PDF, zip, rar, bmp etc will not be accepted.



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.
Reply
#2
As the given condition dictates: "begins with z, x in the middle and ends with y" and the min_length = 4 characters...

Here is your regex without commas:
RE = ( z x x y )*

The language over Σ = {x, y, z} according to this RE will be:
L = { ^, zxxy, zxxyzxxy, zxxyzxxyzxxy, ... }

The length of first string is ZERO because null string doesn't have any characters in it i.e. condition violated...

Second string is okay...
Third string has y and z along with x's in it...
Fourth string also has y's and z's along with x's in it...
And, so on...

It is quite obvious that the RE: ( z x x y )* cannot generate the required language as described in the problem statement...

i hav found ds solutn. if there is any mstak plz reply

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply
#3
this expression will generate strings as below
^, z x x y, z x x yz x x y, z x x yz x x yz x x y, z x x yz x x yz x x yz x x y, .......and so on that is why seems faulty
Reply
#4
because it is not creating all strings defined over x,y,z
Reply
#5
you want discussion i can help..................its not that much hard....simple assignment. But instead of giving solution if u do discussion i will help u.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  SEO in Simple Words: How a VU Student Can Write a Clearer Assignment or Blog Post admin 0 24 11-01-2026, 05:11 AM
Last Post: admin
  Cs403 Assignment 3 Helping material May 8,2010 viki 1 5,241 04-28-2020, 03:19 PM
Last Post: ClaireBeauc
  cs301 assignment no 3 Solution 20 January 2016 Vuhelper 0 11,117 01-20-2016, 03:32 PM
Last Post: Vuhelper
  CS201 Assignment vo 3 Solution 20th January 2016 Vuhelper 2 2,631 01-20-2016, 03:28 PM
Last Post: Vuhelper
  CS101 Assignment no 3 Solution 20th January 2016 Vuhelper 0 2,313 01-20-2016, 03:25 PM
Last Post: Vuhelper
  SOC101 INTRODUCTION TO SOCIOLOGY assignment no 3 Solution 20 January 2016 Vuhelper 0 1,902 01-20-2016, 03:19 PM
Last Post: Vuhelper
  CS402 Assignment No 4 Solution & Discussion Xpert 0 2,132 08-01-2015, 02:33 AM
Last Post: Xpert
  cs101 Assignment No. 1 Solution 21 may spring 2015 semester Xpert 0 2,943 05-21-2015, 12:41 AM
Last Post: Xpert
  Assignment solution eng 301 due date 20 may 2015 rumesa khan 3 4,563 05-20-2015, 01:34 AM
Last Post: Xpert
  PHY301 Circuit Theory Assignment No. 1 idea Solution spring may 2015 semester Xpert 0 1,594 05-15-2015, 03:52 AM
Last Post: Xpert

Forum Jump:


Users browsing this thread: 1 Guest(s)
VU Help • House Banner VU Help Virtual University Students - Assignments, Solved Papers, GDB & Exam Help Student Help Forum • Collaborative • Free Support