Home /UOS — University of Sargodha /Main Campus /Theory of Automata and Formal Languages

Theory of Automata and Formal Languages BS 5 Semester/Term UOS — University of Sargodha 2015

Theory of Automata and Formal Languages BS 5 Semester/Term UOS — University of Sargodha 2015 — page 1

Discussion

Ask a question about this paper, or help someone else with theirs. Answers are emailed to whoever asked.

Your email is only used to send you replies and occasional Ustadni updates. It is never shown publicly.

Log in to post under your name

No questions yet — be the first to ask.

Need Paper? See all →

Need a paper or stuck on a question? Ask here — students reply and you get an email.

Ask about a paper
  • Ayesha Mustafa· 1 day ago

    BS ZOOLOGY first semester Animal diversity ZOOL 101 - university of Punjab 2025

    0 replies Reply →
  • Abubakar· 1 day ago

    Literary criticism

    1 reply Reply →
  • Guest· 2 days ago

    this paper consists of 60 marks but now we have 35 marks paper.

    1 reply Reply →
  • Annie· 2 days ago

    Can you please tell me more past papers please because my exams are starting from next week

    1 reply Reply →
  • Ahmed· 6 days ago

    Did you provide the past papers of the science of society uos?

    1 reply Reply →

More Theory of Automata and Formal Languages papers

See all

Paper text

University of Sargodha

BS(CS), 5th Term Exam 2015

Time Allowed: 2:30 Hrs

Paper: Theory of Automats & Formal Languages (C1:211)

Max. Marks: 60

Objective Part (Compalsory)

Q.No.J. Write short answers for the following questions. (16x2-32)

1. What is the Principle of Mathematical Induction?

* Define Regular Languages?

* What is a Regular Expression? Shortly discuss it with an example?

4. What is a Finite Automata? Shortly discuss it with an example?

Which language, this regular expresson (00+01 + 10+11)* presents?

6. Define NFA with an example?

* Give an example of an NFA accepting (0)(1)"

a Define A-Closure of a set of states regarding NFA.

9: Define Non-regular languages?

I. What does PDA mean? Provide an example?

A. Define Context Free Grammars?

Y2. Define Chomsky's Normal form?

43. Discuss Turing Machines shortly with an example?

14. What is Minimal Finite Automata?

15. What is Universal Turing Machines?

1G, What does Context Sensitive Grammar mean?

Subjective Part

Gx16m45)

Note: Attempt any o3 questions.

Q.No.2. Provide regular expressions of the following. where I - (0.1):.

Strings of length six or less

11.

Strings with Next-to-Last symbol is 0

Strings ending with O

iv.

Strings with even number of O's and odd number of I's

Q.No.3. If Li™ (a, ab) and La" (ab) then find the Union, Intersection and Complement

between Ly and Lj. Also draw their respective nutomats and explain each step properly

(0,1)"(10)

iv.

Strings containing either ab or bha

Q.No.5. Convert the following NFA to DFA using Subset Construction Method, where

Q4 is the accepting state.

Q.No.6. Prove that the language I. = 1ª% is a non-regular Innguage, where n ≥ 0.