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 Bhagirathi
5
votes
61
GATE CSE 2007 | Question: 59
Information about a collection of students is given by the relation $\text{studInfo(}\underline{\text{studId}},\text{ name, sex)}$. The relation $\text{enroll(}{\text{studId}},{\text{ courseId}})$ gives which student has enrolled for ... Courses in which a proper subset of female students are enrolled. Courses in which only male students are enrolled. None of the above
Information about a collection of students is given by the relation $\text{studInfo(}\underline{\text{studId}},\text{ name, sex)}$. The relation $\text{enroll(}{\text{stu...
20.8k
views
answered
Jan 22, 2015
Databases
gatecse-2007
databases
relational-algebra
normal
+
–
1
votes
62
consider relation R1(A,B) and R2(C,D) ,where R1 contain 'm' tuples and R2 contain 'n' tuples and R1,R2 contain no common attribute and attribute B have NULL values then what is the number of tuples in cartesian product of R1 and R2?
890
views
answered
Jan 16, 2015
Databases
cartesian-product
+
–
0
votes
63
GATE IT 2006 | Question: 15
Which of the following relational query languages have the same expressive power? Relational algebra Tuple relational calculus restricted to safe expressions Domain relational calculus restricted to safe expressions II and III only I and II only I and III only I, II and III
Which of the following relational query languages have the same expressive power?Relational algebraTuple relational calculus restricted to safe expressionsDomain relation...
9.1k
views
answered
Jan 15, 2015
Databases
gateit-2006
databases
relational-algebra
relational-calculus
easy
+
–
1
votes
64
State true or false with explanation.Larger time quantum gives more efficiency than smaller time quantum used in RR scheduling
604
views
answered
Jan 13, 2015
6
votes
65
GATE IT 2006 | Question: 32
Let $L$ be a context-free language and $M$ a regular language. Then the language $L ∩ M$ is always regular never regular always a deterministic context-free language always a context-free language
Let $L$ be a context-free language and $M$ a regular language. Then the language $L ∩ M$ isalways regularnever regularalways a deterministic context-free languagealways...
9.9k
views
answered
Dec 2, 2014
Theory of Computation
gateit-2006
theory-of-computation
closure-property
easy
+
–
0
votes
66
is it context free?
is it cfl L = { a^n b^n c^m | n>=1 , m=2n } ? i did like for stack push and pop " a & b " are coverd and later we are having stack empty? can we write this language as a^n b^n c^2n ?
is it cfl L = { a^n b^n c^m | n>=1 , m=2n } ?i did like for stack push and pop " a & b " are coverd and later we are having stack empty? can we write this language ...
4.5k
views
answered
Dec 1, 2014
Theory of Computation
theory-of-computation
context-free-language
+
–
3
votes
67
How many 2K x 8 RAM chips are needed?
We want to build a memory with 4-byte words and a capacity of 221 bits. How many 2K x 8 RAM chips are needed? How many address lines are needed for the memory? How many of these address lines are connected to the address inputs of the RAM chips? How many of these address lines ... to 32 256, 16, 11, 5, 5 to 32 128, 16, 10, 6, 6 to 64 512, 15, 10, 5, 5 to 32
We want to build a memory with 4-byte words and a capacity of 221 bits. How many 2K x 8 RAM chips are needed? How many address lines are needed for the memory? How many o...
20.0k
views
answered
Dec 1, 2014
CO and Architecture
memory-interfacing
ram
+
–
11
votes
68
TIFR CSE 2014 | Part B | Question: 3
Consider the following directed graph. Suppose a depth-first traversal of this graph is performed, assuming that whenever there is a choice, the vertex earlier in the alphabetical order is to be chosen. Suppose the number of tree edges is $T$, the number of back edges is $B$ and the number of ... $B = 1$, $C = 2$, and $T = 3$. $B = 2$, $C = 2$, and $T = 1$.
Consider the following directed graph.Suppose a depth-first traversal of this graph is performed, assuming that whenever there is a choice, the vertex earlier in the alph...
5.3k
views
answered
Dec 1, 2014
Algorithms
tifr2014
algorithms
graph-algorithms
+
–
0
votes
69
Matching in graph theory
Can anone please explain what is a perfect matching in graph theory?
Can anone please explain what is a perfect matching in graph theory?
1.2k
views
answered
Dec 1, 2014
–1
votes
70
Omega notation
Is sqrt(n)+ log n = omega(log n)? If yes then please explain why...?
Is sqrt(n)+ log n = omega(log n)? If yes then please explain why...?
417
views
answered
Nov 26, 2014
Algorithms
algorithms
recurrence-relation
+
–
54
votes
71
GATE CSE 2009 | Question: 16, ISRO2017-12
Which one of the following is FALSE? There is a unique minimal DFA for every regular language Every NFA can be converted to an equivalent PDA. Complement of every context-free language is recursive. Every nondeterministic PDA can be converted to an equivalent deterministic PDA.
Which one of the following is FALSE?There is a unique minimal DFA for every regular languageEvery NFA can be converted to an equivalent PDA.Complement of every context-fr...
15.8k
views
answered
Nov 25, 2014
Theory of Computation
gatecse-2009
theory-of-computation
easy
isro2017
pushdown-automata
+
–
11
votes
72
GATE CSE 2009 | Question: 2
What is the chromatic number of an $n$ vertex simple connected graph which does not contain any odd length cycle? Assume $n > 2$. $2$ $3$ $n-1$ $n$
What is the chromatic number of an $n$ vertex simple connected graph which does not contain any odd length cycle? Assume $n 2$.$2$$3$$n-1$ $n$
13.3k
views
answered
Nov 25, 2014
Graph Theory
gatecse-2009
graph-theory
graph-coloring
normal
+
–
3
votes
73
GATE IT 2004 | Question: 54
Which one of the following binary trees has its inorder and preorder traversals as $BCAD$ and $ABCD$, respectively?
Which one of the following binary trees has its inorder and preorder traversals as $BCAD$ and $ABCD$, respectively?
4.9k
views
answered
Nov 20, 2014
DS
gateit-2004
binary-tree
easy
data-structures
+
–
4
votes
74
Is it option A ?
709
views
answered
Nov 16, 2014
DS
data-structures
binary-tree
+
–
16
votes
75
GATE CSE 2000 | Question: 2.19
Let $G$ be an undirected graph. Consider a depth-first traversal of $G$, and let $T$ be the resulting depth-first search tree. Let $u$ be a vertex in $G$ and let $v$ be the first new (unvisited) vertex visited after visiting $u$ in the traversal. Which of the following ... in $T$ If $\{u, v\}$ is not an edge in $G$ then $u$ and $v$ must have the same parent in $T$
Let $G$ be an undirected graph. Consider a depth-first traversal of $G$, and let $T$ be the resulting depth-first search tree. Let $u$ be a vertex in $G$ and let $v$ be t...
18.6k
views
answered
Nov 16, 2014
Algorithms
gatecse-2000
algorithms
graph-algorithms
normal
+
–
2
votes
76
try to print this in one loop itself.
try to print this in one loop itself.i have already done this in two loops(one nested into another).so please try to do in one loop itself. 1 2 4 3 6 9 4 8 12 16 5 10 15 20 25
try to print this in one loop itself.i have already done this in two loops(one nested into another).so please try to do in one loop itself.12 43 6 94 8 12 165 ...
909
views
answered
Nov 15, 2014
Programming in C
programming
programming-in-c
+
–
5
votes
77
GATE IT 2008 | Question: 6
Let $N$ be an NFA with $n$ states and let $M$ be the minimized DFA with m states recognizing the same language. Which of the following in NECESSARILY true? $m \leq 2^n$ $n \leq m$ $M$ has one accept state $m = 2^n$
Let $N$ be an NFA with $n$ states and let $M$ be the minimized DFA with m states recognizing the same language. Which of the following in NECESSARILY true?$m \leq 2^n$$...
10.8k
views
answered
Nov 13, 2014
Theory of Computation
gateit-2008
theory-of-computation
finite-automata
normal
minimal-state-automata
+
–
2
votes
78
GATE IT 2005 | Question: 47
$(34.4)_{8} × \left ( 23.4 \right )_{8}$ evaluates to $(1053.6)_{8}$ $(1053.2)_{8}$ $(1024.2)_{8}$ None of these
$(34.4)_{8} × \left ( 23.4 \right )_{8}$ evaluates to$(1053.6)_{8}$$(1053.2)_{8}$$(1024.2)_{8}$None of these
8.1k
views
answered
Nov 12, 2014
Digital Logic
gateit-2005
digital-logic
number-representation
normal
+
–
1
votes
79
GATE IT 2005 | Question: 48
The circuit shown below implements a $\text{2-input}$ NOR gate using two $2-4$ MUX (control signal $1$ selects the upper input). What are the values of signals $x, y$ and $z$? $1, 0, B$ $1, 0, A$ $0, 1, B$ $0, 1, A$
The circuit shown below implements a $\text{2-input}$ NOR gate using two $2-4$ MUX (control signal $1$ selects the upper input). What are the values of signals $x, y$ and...
7.7k
views
answered
Nov 12, 2014
Digital Logic
gateit-2005
digital-logic
normal
multiplexer
+
–
–4
votes
80
GATE IT 2005 | Question: 1
A bag contains $10$ blue marbles, $20$ green marbles and $30$ red marbles. A marble is drawn from the bag, its colour recorded and it is put back in the bag. This process is repeated $3$ ... $\left(\dfrac{1}{6}\right)$ $\left(\dfrac{1}{4}\right)$ $\left(\dfrac{1}{3}\right)$
A bag contains $10$ blue marbles, $20$ green marbles and $30$ red marbles. A marble is drawn from the bag, its colour recorded and it is put back in the bag. This process...
8.3k
views
answered
Nov 12, 2014
Probability
gateit-2005
probability
normal
+
–
–2
votes
81
GATE IT 2008 | Question: 11
For problems X and Y, Y is NP-complete and X reduces to Y in polynomial time. Which of the following is TRUE? If X can be solved in polynomial time, then so can Y X is NP-complete X is NP-hard X is in NP, but not necessarily NP-complete
For problems X and Y, Y is NP-complete and X reduces to Y in polynomial time. Which of the following is TRUE?If X can be solved in polynomial time, then so can YX is NP-c...
7.1k
views
answered
Nov 8, 2014
Algorithms
gateit-2008
algorithms
p-np-npc-nph
normal
out-of-syllabus-now
+
–
6
votes
82
GATE IT 2004 | Question: 55
Let $f(n)$, $g(n)$ and $h(n)$ be functions defined for positive integers such that $f(n) = O(g(n))$, $g(n) \neq O(f(n))$, $g(n) = O(h(n))$, and $h(n) = O(g(n))$. Which one of the following statements is FALSE? $f(n) + g(n) = O(h(n) + h(n))$ $f(n) = O(h(n))$ $h(n) \neq O(f(n))$ $f(n)h(n) \neq O(g(n)h(n))$
Let $f(n)$, $g(n)$ and $h(n)$ be functions defined for positive integers such that $f(n) = O(g(n))$, $g(n) \neq O(f(n))$, $g(n) = O(h(n))$, and $h(n) = O(g(n))$.Which one...
13.3k
views
answered
Nov 8, 2014
Algorithms
gateit-2004
algorithms
asymptotic-notation
normal
+
–
4
votes
83
GATE IT 2005 | Question: 15
In the following table, the left column contains the names of standard graph algorithms and the right column contains the time complexities of the algorithms. Match each algorithm with its time complexity. ... $\text{1→ B, 2 → A, 3 → C, 4 → D}$
In the following table, the left column contains the names of standard graph algorithms and the right column contains the time complexities of the algorithms. Match each ...
5.2k
views
answered
Nov 8, 2014
Algorithms
gateit-2005
algorithms
graph-algorithms
match-the-following
easy
+
–
39
votes
84
GATE IT 2005 | Question: 51
Let $T(n)$ be a function defined by the recurrence $T(n) = 2T(n/2) + \sqrt n$ for $n \geq 2$ and $T(1) = 1$ Which of the following statements is TRUE? $T(n) = \Theta(\log n)$ $T(n) = \Theta(\sqrt n)$ $T(n) = \Theta(n)$ $T(n) = \Theta(n \log n)$
Let $T(n)$ be a function defined by the recurrence$T(n) = 2T(n/2) + \sqrt n$ for $n \geq 2$ and$T(1) = 1$Which of the following statements is TRUE?$T(n) = \Theta(\log n)$...
9.4k
views
answered
Nov 8, 2014
Algorithms
gateit-2005
algorithms
recurrence-relation
easy
+
–
14
votes
85
GATE IT 2005 | Question: 52
Let $G$ be a weighted undirected graph and e be an edge with maximum weight in $G$. Suppose there is a minimum weight spanning tree in $G$ containing the edge $e$. Which of the following statements is always TRUE? There exists a cutset in $G$ having ... $e$ cannot be contained in a cycle. All edges in $G$ have the same weight.
Let $G$ be a weighted undirected graph and e be an edge with maximum weight in $G$. Suppose there is a minimum weight spanning tree in $G$ containing the edge $e$. Which ...
20.7k
views
answered
Nov 8, 2014
Algorithms
gateit-2005
algorithms
spanning-tree
normal
+
–
6
votes
86
GATE IT 2006 | Question: 72
An array $X$ of $n$ distinct integers is interpreted as a complete binary tree. The index of the first element of the array is $0$. If only the root node does not satisfy the heap property, the algorithm to convert the complete binary tree into a heap has the best asymptotic time complexity of $O (n)$ $O (\log n)$ $O (n \log n)$ $O (n \log \log n)$
An array $X$ of $n$ distinct integers is interpreted as a complete binary tree. The index of the first element of the array is $0$. If only the root node does not satisfy...
7.6k
views
answered
Nov 3, 2014
DS
gateit-2006
data-structures
binary-heap
easy
+
–
23
votes
87
GATE IT 2006 | Question: 73
An array $X$ of n distinct integers is interpreted as a complete binary tree. The index of the first element of the array is $0$. If the root node is at level $0$, the level of element $X[i]$, $i \neq 0$, is $\left \lfloor \log _2 i \right \rfloor$ ... $\left \lfloor \log _2 (i+1) \right \rfloor$ $\left \lceil \log _2 i \right \rceil$
An array $X$ of n distinct integers is interpreted as a complete binary tree. The index of the first element of the array is $0$. If the root node is at level $0$, the le...
9.1k
views
answered
Nov 3, 2014
DS
gateit-2006
data-structures
binary-tree
normal
+
–
–6
votes
88
GATE IT 2005 | Question: 38
Let $P$ be a non-deterministic push-down automaton (NPDA) with exactly one state, $q$, and exactly one symbol, $Z$, in its stack alphabet. State $q$ is both the starting as well as the accepting state of the PDA. The stack is initialized with one $Z$ before the start of ... $L(P)$ and $N(P)$ are necessarily $Σ^*$. Neither $L(P)$ nor $N(P)$ are necessarily $Σ^*$
Let $P$ be a non-deterministic push-down automaton (NPDA) with exactly one state, $q$, and exactly one symbol, $Z$, in its stack alphabet. State $q$ is both the starting ...
12.4k
views
answered
Nov 3, 2014
Theory of Computation
gateit-2005
theory-of-computation
pushdown-automata
normal
+
–
33
votes
89
GATE IT 2005 | Question: 40
A language $L$ satisfies the Pumping Lemma for regular languages, and also the Pumping Lemma for context-free languages. Which of the following statements about $L$ is TRUE? $L$ is necessarily a regular language. $L$ is necessarily a context-free language, but not necessarily a regular language. $L$ is necessarily a non-regular language. None of the above
A language $L$ satisfies the Pumping Lemma for regular languages, and also the Pumping Lemma for context-free languages. Which of the following statements about $L$ is TR...
15.6k
views
answered
Nov 3, 2014
Theory of Computation
gateit-2005
theory-of-computation
pumping-lemma
easy
+
–
0
votes
90
GATE CSE 1995 | Question: 2.4
What is the value of $X$ printed by the following program? program COMPUTE (input, output); var X:integer; procedure FIND (X:real); begin X:=sqrt(X); end; begin X:=2 FIND(X); writeln(X); end. $2$ $\sqrt{2}$ Run time error None of the above
What is the value of $X$ printed by the following program?program COMPUTE (input, output); var X:integer; procedure FIND (X:real); begin X:=sqrt(X); end; begin X:=2 FIND(...
7.1k
views
answered
Oct 16, 2014
Compiler Design
gate1995
compiler-design
parameter-passing
runtime-environment
easy
+
–
Page:
« prev
1
2
3
4
5
6
7
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register