100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
COS3701 Assignment 2 (COMPLETE ANSWERS) 2024 (365071) - DUE 27 June 2024 R50,00
Add to cart

Exam (elaborations)

COS3701 Assignment 2 (COMPLETE ANSWERS) 2024 (365071) - DUE 27 June 2024

 96 views  9 purchases

COS3701 Assignment 2 (COMPLETE ANSWERS) 2024 (365071) - DUE 27 June 2024 ;100% TRUSTED workings, explanations and solutions. for assistance Whats-App.......0.6.7..1.7.1..1.7.3.9....... Question 1 [15] Build a DPDA to show that the language L = {(ba)na(ab)n-2 | n > 2} is deterministic context fr...

[Show more]

Preview 1 out of 11  pages

  • April 21, 2024
  • 11
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
book image

Book Title:

Author(s):

  • Edition:
  • ISBN:
  • Edition:
All documents for this subject (1)
avatar-seller
iStudy
033701 ©
Assignment 2 2024
Detailed Solutions, References & Explanations

Unique number: 365071

Due Date: 27 June 2024
Question 1 [15]
Build a DPDA to show that the language L = {(ba)"a(ab)"? | n > 2} is deterministic context free.
Question 2 [15]
Prove that the language L = {ba"b2"a™" | n > 0} over the alphabet ¥ = {a, b} is non-context free.
Use the pumping lemma with length.

Question 3 [10]

Let Li be the grammar generating (aa)*. Let L2 be the grammar generating (a+b) *ba(atb)*.
First provide the grammars generating Li and L2 respectively. Then apply the applicable theorem of
Chapter 17 to determine LiLo.

Question 4 [10]

Decide whether the grammar given below generates any words.

S— XY
X— SY
Y— SX
X—a
Yoob


Terms of use
By making use of this document you agree to:
e Use this document as a guide for learning, comparison and reference purpose,
e Not to duplicate, reproduce and/or misrepresent the contents of this document as your own work,
e Fully accept the consequences should you plagiarise or misuse this document.


Disclaimer
Extreme care has been used to create this document, however the contents are provided “as is” without
any representations or warranties, express or implied. The author assumes no liability as a result of
“reliance and use of the contents of this document. This document is to be used for comparison, research
and reference purposes ONLY. No part of this document may be reproduced, resold or transmitted in any
form or by any means.

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through EFT, credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying this summary from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller iStudy. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy this summary for R50,00. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

49160 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy summaries for 14 years now

Start selling
R50,00  9x  sold
  • (0)
Add to cart
Added