Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Filter
Profile
Wall
Recent activity
All questions
All answers
Exams Taken
All Blogs
Answers by Ankita87077
0
votes
1
#self doubt
Every unambiguous grammar is LR(0) grammar?
Every unambiguous grammar is LR(0) grammar?
1.3k
views
answered
Nov 18, 2021
Compiler Design
compiler-design
lr-parser
+
–
2
votes
2
GATE Overflow | Mock GATE | Test 1 | Question: 37
Consider the context switch of a CPU from the context of process $P1$ to that of process $P2$. Consider the following two events in the chronological order of the events during the context switch. (P) The Stack Pointer (SP) shifts ... via an atomic hardware instruction The relative ordering of $P$ and $Q$ varies from one context switch to the other
Consider the context switch of a CPU from the context of process $P1$ to that of process $P2$. Consider the following two events in the chronological order of the events ...
1.1k
views
answered
Oct 30, 2021
Operating System
go-mockgate-1
context-switch
operating-system
+
–
3
votes
3
Made Easy Test series
Consider the following language : P1 : {<M, x, k>| M is a TM and M does not halt on x within k steps} P2 : {<M>| M is TM and L(M) = $\phi$} P3 : {<M>| M is a TM and L(M) = finite language} The number of problems which are not RE is/are _______ ?
Consider the following language :P1 : {<M, x, k>| M is a TM and M does not halt on x within k steps}P2 : {<M>| M is TM and L(M) = $\phi$}P3 : {<M>| M is a TM and L(M) = f...
652
views
answered
Oct 26, 2021
Theory of Computation
made-easy-test-series
theory-of-computation
turing-machine
+
–
0
votes
4
Find number of variables in optimized code
Consider following 3 address code t1 = t+e t2 = g+a t3 = t1*t2 t4 = t2+t2 t5 = t4+t3 The minimum number of temporary variables that can be used in equivalent 3-address code of above code is Approach: t = t+e, g = g+a, t = t*g, g = g+g,t = t+g. Hence 4 temporary variables are needed. Is this right?
Consider following 3 address codet1 = t+et2 = g+at3 = t1*t2t4 = t2+t2t5 = t4+t3The minimum number of temporary variables that can be used in equivalent 3-address code of ...
2.4k
views
answered
Oct 26, 2021
Compiler Design
compiler-design
intermediate-code
three-address-code
+
–
3
votes
5
3-Address Code Generation
Hi Everyone, For this the Given Answer is 5, I got 4. I am now confused about how the 3 address code is generated here.
Hi Everyone,For this the Given Answer is 5, I got 4. I am now confused about how the 3 address code is generated here.
1.5k
views
answered
Oct 15, 2021
Compiler Design
compiler-design
three-address-code
static-single-assignment
test-series
+
–
0
votes
6
Peter Linz Edition 4 Exercise 7.1 Question 9 (Page No. 183)
Is it possible to find a dfa that accepts the same language as the pda $M= (${$q_0,q_1$},{$a,b$},{$z$},$\delta,q_0,z,${$q_1$}), with $\delta(q_0,a,z)=${$(q_1,z)$}, $\delta(q_0,b,z)=${$(q_0,z)$}, $\delta(q_1,a,z)=${$(q_1,z)$}, $\delta(q_1,b,z)=${$(q_0,z)$} ?
Is it possible to find a dfa that accepts the same language as the pda $M= (${$q_0,q_1$},{$a,b$},{$z$},$\delta,q_0,z,${$q_1$}),with ...
527
views
answered
Sep 17, 2021
Theory of Computation
peter-linz
peter-linz-edition4
theory-of-computation
pushdown-automata
npda
+
–
0
votes
7
Chomskey Normal Form
State true/false In CNF , S-> espilon and Start symbol can appear on RHS side of production.
State true/falseIn CNF , S- espilon and Start symbol can appear on RHS side of production.
2.9k
views
answered
Sep 16, 2021
Theory of Computation
theory-of-computation
conjunctive-normal-form
+
–
0
votes
8
Peter Linz Edition 4 Exercise 5.2 Question 5 (Page No. 145)
Let $G = (V, T, S, P)$ be an s-grammar. Give an expression for the maximum size of $P$ in terms of $|V|$ and $|T|$.
Let $G = (V, T, S, P)$ be an s-grammar. Give an expression for the maximum size of $P$ in terms of $|V|$ and $|T|$.
197
views
answered
Sep 13, 2021
Theory of Computation
peter-linz
peter-linz-edition4
theory-of-computation
grammar
+
–
0
votes
9
Peter Linz Edition 4 Exercise 4.2 Question 14 (Page No. 114)
Find an algorithm for determining whether a regular language $L$ contains an infinite number of even-length strings.
Find an algorithm for determining whether a regular language $L$ contains an infinite number of even-length strings.
371
views
answered
Sep 11, 2021
Theory of Computation
peter-linz
peter-linz-edition4
theory-of-computation
regular-language
+
–
0
votes
10
GATE CSE 2010 | Question: 39
Let $L=\{ w \in \:(0+1)^* \mid w\text{ has even number of }1s \}$. i.e., $L$ is the set of all the bit strings with even numbers of $1$s. Which one of the regular expressions below represents $L$? $(0^*10^*1)^*$ $0^*(10^*10^*)^*$ $0^*(10^*1)^*0^*$ $0^*1(10^*1)^*10^*$
Let $L=\{ w \in \:(0+1)^* \mid w\text{ has even number of }1s \}$. i.e., $L$ is the set of all the bit strings with even numbers of $1$s. Which one of the regular express...
22.3k
views
answered
Sep 5, 2021
Theory of Computation
gatecse-2010
theory-of-computation
regular-expression
normal
+
–
0
votes
11
GATE CSE 2011 | Question: 55
An undirected graph $G(V,E)$ contains $n \: (n>2)$ nodes named $v_1,v_2, \dots, v_n$. Two nodes $v_i, v_j$ are connected if and only if $ 0 < \mid i-j\mid \leq 2$. Each edge $(v_i,v_j)$ is assigned a weight $i+j$. A sample graph with $n=4$ is shown below. The length of the path from $v_5$ to $v_6$ in the MST of previous question with $n=10$ is $11$ $25$ $31$ $41$
An undirected graph $G(V,E)$ contains $n \: (n>2)$ nodes named $v_1,v_2, \dots, v_n$. Two nodes $v_i, v_j$ are connected if and only if $ 0 < \mid i-j\mid \leq 2$. Each ...
11.7k
views
answered
Aug 27, 2021
Algorithms
gatecse-2011
algorithms
graph-algorithms
spanning-tree
normal
+
–
2
votes
12
GATE Overflow Test Series | Computer Organization and Architecture | Test 1 | Question: 16
Which option is the correct order for transfer of a block of data? The peripheral device (such as disk controller) will request the service of DMA by pulling DREQ high CPU will finish the present bus cycle (not necessary the present instruction) and respond ... $(a)(b)(c)(d)(e)(f)(g)$ $(c)(b)(a)(d)(e)(f)(g)$
Which option is the correct order for transfer of a block of data?The peripheral device (such as disk controller) will request the service of DMA by pulling DREQ highCPU ...
202
views
answered
Oct 13, 2020
CO and Architecture
go2025-coa-1
normal
dma
+
–
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register