Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
College aantekeningen

theory of computation

Beoordeling
-
Verkocht
-
Pagina's
5
Geüpload op
03-04-2023
Geschreven in
2022/2023

Topics include regular and context-free languages, decidable and undecidable problems, reducibility, recursive function theory, time and space measures on computation, completeness, hierarchy theorems, inherently complex problems, oracles, probabilistic computation, and interactive proof systems.

Meer zien Lees minder
Instelling
Vak

Voorbeeld van de inhoud

“The Language of a Grammar, Inferences and Ambiguity”.

1. Which of the following is not a notion of Context free grammars?
a) Recursive Inference
b) Derivations
c) Sentential forms
d) All of the mentioned
Answer: d

Explanation: The following are the notions to express Context free grammars:


a) Recursive Inferences


b) Derivations


c) Sentential form


d) Parse trees


2. State true or false:
Statement: The recursive inference procedure determines that string w is in the language of
the variable A, A being the starting variable.
a) true
b) false
Answer: a

Explanation: We apply the productions of CFG to infer that certain strings are in the
language of a certain variable.


3. Which of the following is/are the suitable approaches for inferencing?
a) Recursive Inference
b) Derivations
c) Recursive Inference and Derivations
d) None of the mentioned
Answer: c

, Explanation: Two inference approaches:


1. Recursive inference, using productions from body to head


2. Derivations, using productions from head to body


4. If w belongs to L(G), for some CFG, then w has a parse tree, which defines the syntactic
structure of w. w could be:
a) program
b) SQL-query
c) XML document
d) All of the mentioned
Answer: d

Explanation: Parse trees are an alternative representation to derivations and recursive
inferences. There can be several parse trees for the same string.


5. Is the following statement correct?
Statement: Recursive inference and derivation are equivalent.
a) Yes
b) No
Answer: a

Explanation: Yes, they are equivalent. Both the terminologies represent the two
approaches of recursive inferencing.6. A->aA| a| b
The number of steps to form aab:
a) 2
b) 3
c) 4
d) 5
Answer: b


Explanation: A->aA=>aaA=>aab


7. An expression is mentioned as follows. Figure out number of incorrect notations or
symbols, such that a change in those could make the expression correct.
L(G)={w in T*|S→*w}
a) 0 Errors
b) 1 Error

Geschreven voor

Vak

Documentinformatie

Geüpload op
3 april 2023
Aantal pagina's
5
Geschreven in
2022/2023
Type
College aantekeningen
Docent(en)
Onbekend
Bevat
Alle colleges

Onderwerpen

$8.49
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper
Seller avatar
prachiyadav

Maak kennis met de verkoper

Seller avatar
prachiyadav Sipna College OEngineering And Technology
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
-
Lid sinds
3 jaar
Aantal volgers
0
Documenten
35
Laatst verkocht
-

0.0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Bezig met je bronvermelding?

Maak nauwkeurige citaten in APA, MLA en Harvard met onze gratis bronnengenerator.

Bezig met je bronvermelding?

Veelgestelde vragen