Professional Documents
Culture Documents
TOC 2076 - Ankit Pangeni
TOC 2076 - Ankit Pangeni
TOC 2076 - Ankit Pangeni
Tribhuvan University
Institute of Science and Technology
2076
Candidates are required to give their answers in their own words as for as practicable.
All figures in the margin indicate full marks.
3. Define a Turing machine. Construct a TM that accept L = { wcw" | we {0,1} and cis E or O or 1.
Show that string 0110 is accepted by this TM with sequence of Instantaneous Description (1D).
(2+6+2)
Section B
Short Answer Questions
Attempt any Eight questions. (8x5-40)
4. Give the formal definition of DFA. Construct a DFA accepting all strings of (0,1) with even number
of Os and even number of 1s. (2+3)
5. Define Chomsky Normal Form and Greibach Normal Form in reference to CFG. Give a suitable
example of each. (2.5+2.5)
6. Give the regular expressions for following language over alphabet f0,1) (2.5+2.5)
a. Set of all strings with 2rd symbol from right is 1.
b. Set of all strings starting with 00 or 11 and ending with 10 or 01.
8. Describe the Turing machines with mutiple tape, multiple track and storage in state. (5)
IOST,TU 1
CSC 257-2076
9. Construct NFA
a
accepting language of {0,1} with each string ending with 01 and convert it into
equivalent DFA.
(2+3)
10.Construct a PDA
accepting language over {0,1} representing strings with equal
Show by sequence of IDs that 0101 is accepted by this PDA.
no
of Os and 1s.
(3+2)
11. Define complexity of a Turing machine. Explain about big Oh, big Omega and big Theta notation
used for complexity measurement.
(1+4)
12. What do you mean by tractable and intractable problems? Explain with reference to TM. (5)
IOST,TU
2
heoyompbahn -oa
-Ankt PargeiIOID
Sechion A
elassmate PAGE
DATE O I I N
#
op-2:Kopeak Xhe sououn u by Cona rdeminy tho
WO0spg
pgecadenty equlas pnekh0n Operadov JA
Oparatp s1e he enpreh»
ProLcodene eopenatos h Togulan
a_eNpera depnad
Ontn 2 Coakenatn&klun "loru
oe
2 TE Thres Only one tntominy edje a
2E la4b)_(aab)otb)
aib
elassmod Coeip onding EwFAIs PAGE
DATE
.9.Mow Can_you dekne heanguae aapal
by_PDA Eplan vhow a_PDA_aiuephng
anguageby empty &Aaek_s_Lonverlal inh
an4uvaLont PDA aluphry by_finas tabe _
Vic0-Ve0.
oh dawn automada
hat aoopBs utha ConletPs_a_?nite_ausomah4
PDACan aceup! fhe_hringt reanguaje
languag by
HcaupBance by fna Aa
ven a PDAP Uhe languase
tna ae 21 fswl (9 20) aF* ccpte by
Lwhene PEP a Yer (P t,Y)}
by_kna
lasSMate
PAGE T
DATE IIN
eXolE
P
XelE
Slake to 0cph
nv.eosion a_PDA aepfiry by hoal
Py emphy_Hatk
e dene ag oloue
he Conghnchn ef Pw m
elassMate PAGE
DATE UON
(ubene dN Ps doknedk
1. lPo,6 Xo)_( 90, 20 Xo)
2. ale qES Pnpuk o &2_0T 0:6, and diax
hymbauYer Sw 9,4 Y) Contatn au the
(P
( ans
ATE UIOID
Narh
3.oe
a ugin
Con&roc!a TH That a@ap
o jOLJo
0 Ps acooptea by This TH w'th
n a n t a r v e u
Descaipha (D) Segvone a
no matbine 19 am wbmahn uh
h ATey
0aacoA ob an n{nite_1ape omau,
f depned bu Sexen tupla M:{0 2J. Jo»P, ,aT
B
ni ke &ek,f Siakes
: Fnike sek of npok 3umboe
o:_inak_dhale 966@
P Set o Enai_lade FS
Tape Sqmbois 2 g uays 8ubse of
B: Blank mb B6r but BE
Tan s?han nchon desned by
Lwhov, R,2,s Ähe movenart head
je. RRghe 1lep or labonar
4venangva_ l:Wc E /0u aw c foroo
0l0)R
B/B2
O/BR B/B2 olB nol0
20
BIBK
o 0WoE B Jo
B 2,10
BI BD
BD124 RD
B43RRI
B 1o R
HalE_aAd aupt
Hones 0o acopB es by the
en oring mal hine.
DATE ON
Sechon B
the_ kormal_dhtinihon D
ve
onkinud a_DeA_acuphny_au 84rings
Wh_even_nómber f_0S andevg
O
DUmber o J
artbt
A DEA Ra kentte _awbomala (Ohou e
e tuplog_&1,20,P)
ive
: enile se! o stde(alphabel)
2 Sek of Ipu symbou
ansPhan o h n d : YS>8
2hihat &ae
ESet al Finat kdate Peg9
iven:0J
he DFAtn_acaepha au &rings wPh
ven num ber of'oG and even nomber efis
, 001JJ 00JJ OJ0/, 0Jj0, -~~
P:2o
sdebnad as d0,0) 2,
S90): 22 2,o)>21
elassmte
&(, 123 I23,0) 4PAGE
DATE OIII
9hoe, b s a emnae
X
XAB (DE ae Nn-farnina
PAGE
elassmate
DATE UN
aivenT:0y
hoho Tegulan epesbun a the sed o)L
ib d Symbo Hang
m riht 1s R
classMate
DATEDOIND
.2 o1naE Languayo 1 doMJm
egulaslanguahe
2 Aol I1}
aye 2Y pan
000 JJ X ooo
D 00JJ 0o?
PAGE
clasSMAte
DATE LN
Cae:
000 011
Sna, no-o os 7 n0-0 's Jo, y2zd
Cago 2
y 2 : 00oL1JL
hn n0o os #no of J's So.92 EL
Cago 3
ecofbe Tho
|tape, mvkple Turg malhing wh
toa and mulkpu
&torage fn Hate
Ung Machine wh
muHpte tape
Aturng
Ono tape malhiae Can have more
ddirq
poumen o The an endaa entra tape more than
than
tape addg no
adds no
tho abi.lih p CoMpUdabonal modo,
acoap buE onu
ncrease.sed.A MUl8pe LhaJanguape
Ofne tape TH ConssP&
7H
fapes e0th Contml andfn1be Cons
ealh CoLL Can tape fe dtvfded_ nuMbor
iolo POto_ceu ad
ape uphabeds:
ude blank the o_cape
Jhe anyJymban
ymba okok_ kintte
kinlte
opot ymbrymbais
npot symb
PAGE
DATE UIUII
finie Co
ape -
Ente Contr
PAGE
elassMate
DATE U
Ps desnod
C A byx ) JyA ma
A The ymb o
ate ard_data Porhon o
Rcanneg_m_Lha, dape fs onsrdened to be pie
Capiey
Pab ha_Seiad Canmporont Aale 2 Mava
The &late a
he Semh
Uigh enkering_&ale 1 8 Yeplaung bn by
9(pn&trucka_NEA_acepkhng_lanauage lo,1
lwMh _each_tring erdingwn oand mued
mue
t egutvatet DPA
nPven 520
Lots Convend the NFA tD DFA
NEH &trings_endino wfth oJ i
nshon tablo
alasSMAte
02
0
PAGE
DATE JL
Cmplomo
tTattasD LIntraetate)
NP
racake
Paublam Nontroabla
Prtbgpa
elasSMAte