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
Recent activity by Mr_22B
8
answers
1
GATE CSE 2006 | Question: 34
Consider the regular language $L=(111+11111)^{*}.$ The minimum number of states in any DFA accepting this languages is: $3$ $5$ $8$ $9$
Consider the regular language $L=(111+11111)^{*}.$ The minimum number of states in any DFA accepting this languages is:$3$$5$$8$$9$
34.3k
views
commented
Jan 22, 2018
Theory of Computation
gatecse-2006
theory-of-computation
finite-automata
normal
minimal-state-automata
+
–
4
answers
2
GATE CSE 2017 Set 1 | Question: 49
Consider a RISC machine where each instruction is exactly $4$ bytes long. Conditional and unconditional branch instructions use PC-relative addressing mode with Offset specified in bytes to the target location of the branch instruction. Further the Offset is ... $i,$ then the decimal value of the Offset is ____________ .
Consider a RISC machine where each instruction is exactly $4$ bytes long. Conditional and unconditional branch instructions use PC-relative addressing mode with Offset sp...
14.6k
views
commented
Jan 8, 2018
CO and Architecture
gatecse-2017-set1
co-and-architecture
normal
numerical-answers
instruction-execution
+
–
11
answers
3
GATE CSE 2017 Set 1 | Question: 43
Consider the following grammar: stmt $\rightarrow$ if expr then expr else expr; stmt | $Ò$ expr $\rightarrow$ term relop term | term term $\rightarrow$ id | number id $\rightarrow$ a | b | c number $\rightarrow [0-9]$ where relop is a relational ... program if $e_1$ then $e_2$ else $e_3$ has $2$ control flow paths. $e_1 \rightarrow e_2$ and $e_1 \rightarrow e_3$.
Consider the following grammar:stmt $\rightarrow$ if expr then expr else expr; stmt | $Ò$expr $\rightarrow$ term relop term | termterm $\rightarrow$ id | numberid $\righ...
20.4k
views
commented
Jan 8, 2018
Compiler Design
gatecse-2017-set1
compiler-design
parsing
normal
numerical-answers
+
–
2
answers
4
BST(Test Series)
Consider a Binary Search Tree is created using element 1 to n in following order: 3, 2, 1, 6, 5, 4, 9, 8, 7, 12, 11, 10, ....., n – 3, n – 4, n – 5, n – 2, n – 1, n What is the worst time complexity of searching a number in the Binary Search Tree?
Consider a Binary Search Tree is created using element 1 to n in following order: 3, 2, 1, 6, 5, 4, 9, 8, 7, 12, 11, 10, ....., n – 3, n – 4, n �...
834
views
answered
Jan 3, 2018
DS
data-structures
binary-search-tree
made-easy-test-series
+
–
1
answer
5
doubt view serializability
anyone who can solve this by this methos i think it has some mistakes ?
anyone who can solve this by this methos i think it has some mistakes ?
1.5k
views
commented
Dec 27, 2017
1
answer
6
LR(1) Grammar State
$S \rightarrow aBA$ $A \rightarrow \epsilon$ $B \rightarrow a$ Here in the given grammar, what will be the look ahead of B's production:- $S \rightarrow a.BA , \$ $ $B \rightarrow .a \text{ , X}$ What will come at the place of X, I think it should be "\$", As $ A \rightarrow \epsilon$, So, B's lookahead should be \$. right?
$S \rightarrow aBA$$A \rightarrow \epsilon$$B \rightarrow a$Here in the given grammar, what will be the look ahead of B's production:-$S \rightarrow a.BA , \$ $$B \right...
392
views
answered
Dec 27, 2017
Compiler Design
compiler-design
parsing
+
–
1
answer
7
ace test series 2018
Boolean expression Y+(X+Y)+(X+Y')(X'+Y) IS equivalent to A)X'Y B) XY' C)Y D)X'Y' please explain i think ans is 1 but ans is given as C
Boolean expression Y+(X+Y)+(X+Y')(X'+Y) IS equivalent toA)X'YB) XY'C)YD)X'Y'please explain i think ans is 1 but ans is given as C
255
views
commented
Dec 27, 2017
1
answer
8
#Toc
I read some where that if thier is one comparision at any time then only CFL otherwise CSL? plz give proof.
I read some where that if thier is one comparision at any time then only CFL otherwise CSL?plz give proof.
583
views
commented
Dec 25, 2017
Theory of Computation
context-free-language
+
–
2
answers
9
DFS , how to slove it?
1.5k
views
commented
Dec 13, 2017
DS
depth-first-search
algorithms
graph-algorithms
+
–
2
answers
10
Ace Test Series: Programming & DS - Linked Lists
What is the time complexity to insert a new Node in a singly circular linked list at Starting ? (Number of nodes in list = N) A. O(1) B. O(N)
What is the time complexity to insert a new Node in a singly circular linked list at Starting ? (Number of nodes in list = N)A. O(1)B. O(N)
2.3k
views
commented
Dec 13, 2017
Programming in C
ace-test-series
linked-list
data-structures
+
–
1
answer
11
ace test
The number of ways we can insert 11, 12, 13, 14, 15, 16, 17 in empty binary search tree such that resulting tree has the height of 6 = ___________ [height of a tree with single node is 0.]
The number of ways we can insert 11, 12, 13, 14, 15, 16, 17 in empty binary search tree such that resulting tree has the height of 6 = ___________ [height of a tree with ...
399
views
asked
Dec 10, 2017
Programming in C
binary-search-tree
combinatory
+
–
1
answer
12
[DS] Graph reversal
What will be complexity to reverse the directed graph?(By reverse i mean reverse direction of all edges).Assume graph is represented by adjacency list. i) No extra space ii)May use extra space
What will be complexity to reverse the directed graph?(By reverse i mean reverse direction of all edges).Assume graph is represented by adjacency list.i) No extra spaceii...
453
views
answered
Nov 23, 2017
Programming in C
data-structures
+
–
2
answers
13
ace test series
E-->TE/a T-->ET/b first set of E and T??
E >TE/aT >ET/bfirst set of E and T??
285
views
answered
Nov 23, 2017
Compiler Design
compiler-design
parsing
first-and-follow
descriptive
ace-test-series
+
–
1
answer
14
doubt in branching method
https://www.youtube.com/watch?v=Z4rgivgkNVc&t=1s anyone please tell me if i choose f instead of b at 7:21 then answer will be different there are so many different answers possible here ??
https://www.youtube.com/watch?v=Z4rgivgkNVc&t=1s anyone please tell me if i choose f instead of b at 7:21 then answer will be different there are so many different a...
269
views
answered
Nov 17, 2017
0
answers
15
general gate preparation doubt.
When should one stop preparing a subject? Gate has a huge syllabus. Even in a single subject a lot of topics are there. Obviously one must understand the basics of all topics. But my question is at what point should one be satisfied with a ... more questions to solve. This question is specially for people who had sat for gate before and secured a good rank. Thanks.
When should one stop preparing a subject?Gate has a huge syllabus. Even in a single subject a lot of topics are there. Obviously one must understand the basics of all to...
493
views
commented
Nov 17, 2017
Revision
preparation
+
–
2
answers
16
Testbook Test Series: Algorithms - Graph Algorithms
(1). Both BFS and DFS require $\Omega (N)$ storage for their operation. (2). If we double the weight of every edge in the Graph shortest path between any two vertices will not change. Which of the following is/are True ? (and in every question of shortest path we have to think about negative weight ?)
(1). Both BFS and DFS require $\Omega (N)$ storage for their operation.(2). If we double the weight of every edge in the Graph shortest path between any two vertices will...
1.4k
views
commented
Nov 14, 2017
Algorithms
algorithms
testbook-test-series
graph-algorithms
+
–
2
answers
17
Recurrance Relations
483
views
commented
Nov 13, 2017
Linear Algebra
recurrence-relation
+
–
2
answers
18
Time complexity of algorithms
In an unweighted, undirected connected graph, the shortest path from a node S to every other node is computed most efficiently, in terms of time complexity by (A) Dijkstra's algorithm starting from S (B) Warshall's algorithm (C) performing a DFS starting from S (D) performing a BFS starting from S
In an unweighted, undirected connected graph, the shortest path from a node S to every other node is computed most efficiently, in terms of time complexity by (A) Dij...
664
views
answered
Nov 13, 2017
Algorithms
time-complexity
algorithms
+
–
3
answers
19
mock test
Consider n elements that are equally distributed in k stacks. In each stack, elements of it are arranged in ascending order (min is at the top in each of the stack and then increasing downwards). Given a queue of size n in which we have to put all n elements in increasing order. What will be the time complexity of the best known algorithm?
Consider n elements that are equally distributed in k stacks. In each stack, elements of it are arranged in ascending order (min is at the top in each of the stack and th...
2.9k
views
answered
Nov 4, 2017
DS
stack
algorithms
data-structures
+
–
3
answers
20
TIFR CSE 2012 | Part B | Question: 14
Consider the quick sort algorithm on a set of $n$ ... $\Theta (n^{2})$. None of the above.
Consider the quick sort algorithm on a set of $n$ numbers, where in every recursive subroutine of the algorithm, the algorithm chooses the median of that set as the pivot...
3.7k
views
commented
Nov 4, 2017
Algorithms
tifr2012
algorithms
sorting
quick-sort
time-complexity
+
–
1
answer
21
self doubt apply
can masters theorem be used when base condition is given in a recurrence ? can we directly apply masters theorem to any recurrence ?
can masters theorem be used when base condition is given in a recurrence ?can we directly apply masters theorem to any recurrence ?
359
views
commented
Nov 3, 2017
Algorithms
algorithms
master-theorem
+
–
6
answers
22
TIFR CSE 2016 | Part B | Question: 7
Let $n = m!$. Which of the following is TRUE? $m = \Theta (\log n / \log \log n)$ $m = \Omega (\log n / \log \log n)$ but not $m = O(\log n / \log \log n)$ $m = \Theta (\log^2 n)$ $m = \Omega (\log^2 n)$ but not $m = Ο(\log^2 n)$ $m = \Theta (\log^{1.5} n)$
Let $n = m!$. Which of the following is TRUE?$m = \Theta (\log n / \log \log n)$$m = \Omega (\log n / \log \log n)$ but not $m = O(\log n / \log \log n)$$m = \Theta (\log...
6.1k
views
commented
Nov 3, 2017
Algorithms
tifr2016
algorithms
asymptotic-notation
+
–
10
answers
23
GATE CSE 2000 | Question: 2.17
Consider the following functions $f(n) = 3n^{\sqrt{n}}$ $g(n) = 2^{\sqrt{n}{\log_{2}n}}$ $h(n) = n!$ Which of the following is true? $h(n)$ is $O(f(n))$ $h(n)$ is $O(g(n))$ $g(n)$ is not $O(f(n))$ $f(n)$ is $O(g(n))$
Consider the following functions$f(n) = 3n^{\sqrt{n}}$$g(n) = 2^{\sqrt{n}{\log_{2}n}}$$h(n) = n!$Which of the following is true?$h(n)$ is $O(f(n))$$h(n)$ is $O(g(n))$$g(n...
22.9k
views
commented
Nov 3, 2017
Algorithms
gatecse-2000
algorithms
asymptotic-notation
normal
+
–
2
answers
24
C Programming
Which of the following is the correct output for the program given below? #include<stdio.h> void fun(int); int main() { int a; a=3; fun(a); printf("\n"); return 0; } void fun(int n) { if(n>0) { fun(--n); printf("%d",n); fun(--n); } } (a) 0 2 1 0 (b) 1 1 2 0 (c) 0 1 0 2 (d) 0 1 2 0
Which of the following is the correct output for the program given below?#include<stdio.h void fun(int); int main() { int a; a=3; fun(a); printf("\n"); return 0; } void f...
386
views
answered
Oct 31, 2017
1
answer
25
Hashing
The average number of probe required when inserting an element with load factor alpha (assume uniform hashing) 1 / 1-alpha how? Please explain
The average number of probe required when inserting an element with load factor alpha (assume uniform hashing) 1 / 1-alpha how? Please explain
895
views
answered
Oct 31, 2017
Algorithms
hashing
uniform-hashing
+
–
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register