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 Prashant.
0
votes
521
Implementing Queue with only one pointer
Which of the following statement is/are correct? 1. If we use only Front pointer in queue, then insertion takes O(n) time while deletion in O(1) time. 2. If we use only Rear pointer in queue, then insertion is O(1) and deletion is not possible.
Which of the following statement is/are correct?1. If we use only Front pointer in queue, then insertion takes O(n) time while deletion in O(1) time.2. If we use only Rea...
2.4k
views
answered
Dec 7, 2015
DS
queue
data-structures
+
–
0
votes
522
what is the time complexity
429
views
answered
Dec 5, 2015
Algorithms
algorithms
time-complexity
made-easy-test-series
+
–
2
votes
523
TOC -Number of Equivalence Classes
The number of equivalence classes which exist for the following regular expression R are ______. $R=(a+b)^*b(a+b+\epsilon )$ what is the meaning of equivalence classes here...
The number of equivalence classes which exist for the following regular expression R are ______. $R=(a+b)^*b(a+b+\epsilon )$ what is the meaning of equivale...
12.0k
views
answered
Dec 5, 2015
Theory of Computation
theory-of-computation
equivalence-class
myhill-nerode
+
–
3
votes
524
Question on checking equality of boolean expresssions?
Which of the following relation is not true? (A) $AB+\overline{A}C+BC=AB+\overline{A}C$ (B) $XY+\overline{Y}Z=(Y+Z)(\overline{Y}+X)$ (C) $\overline{A.B.C}=\overline{A}+\overline{B}+\overline{C}$ (D) $AB+\overline{A}B=A+\overline{B}C$ Given answer: D Except C I couldn't prove other options as equal.
Which of the following relation is not true?(A) $AB+\overline{A}C+BC=AB+\overline{A}C$ (B) $XY+\overline{Y}Z=(Y+Z)(\overline{Y}+X)$(C) $\overline{A.B.C}=...
634
views
answered
Dec 4, 2015
Digital Logic
digital-logic
boolean-algebra
ace-test-series
+
–
0
votes
525
When LALR(1) is constructed form CLR(1) does not contain any shift reduce conflicts?
6.9k
views
answered
Dec 4, 2015
Compiler Design
compiler-design
parsing
lr-parser
+
–
4
votes
526
MadeEasy Test Series: Algorithms - Time Complexity
Q.19 Consider the following function. What is the worst case running time of the function f for any positive value of n? O(1) O(n) O(n2) O(n3)
Q.19Consider the following function.What is the worst case running time of the function f for any positive value of n?O(1)O(n)O(n2)O(n3)
506
views
answered
Dec 4, 2015
Algorithms
algorithms
time-complexity
made-easy-test-series
+
–
2
votes
527
what is the union of DCFL with a regular language ?
Consider the following languages $L_1$ and $L_2$ $L_1=\{a^mb^n\, |\, m,n\geq 0 \}$ $L_2=\{a^mb^n\, |\, m=n \}$ if$(L_1\cup\overline{L_2})=L$ then what is the language $L$? a. $L=\{a^mb^n\, |\, m,n\geq 0 \}$ b. $L=\{a^mb^n\, |\, m !=n \}$ c. $L=(a+b)^*-\{a^nb^n\}$ d. $L=(a+b)^*-\{a^mb^n \, | \, m!=n\}$
Consider the following languages $L_1$ and $L_2$$L_1=\{a^mb^n\, |\, m,n\geq 0 \}$$L_2=\{a^mb^n\, |\, m=n \}$if$(L_1\cup\overline{L_2})=L$ then what is the language $L$?a....
2.6k
views
answered
Dec 3, 2015
Theory of Computation
theory-of-computation
+
–
1
votes
528
huffman coding
we use huffman encoding to encode a b c with frequency fa fb fc.Which of the following code sequence is not possible? code 1={0,10,11} code 2={0,00,1} code 3={10,00,01}
we use huffman encoding to encode a b c with frequency fa fb fc.Which of the following code sequence is not possible?code 1={0,10,11}code 2={0,00,1}code 3={10,00,01}
3.0k
views
answered
Dec 3, 2015
Algorithms
huffman-code
+
–
0
votes
529
deadlock
if system is in unsafe state then deadlock may or may not occur but in bankers algorithm if system found in unsafe state how to check further for deadlock. explain with example
if system is in unsafe state then deadlock may or may not occurbut in bankers algorithm if system found in unsafe state how to check further for deadlock. explain with e...
476
views
answered
Dec 3, 2015
Operating System
deadlock-prevention-avoidance-detection
+
–
20
votes
530
GATE CSE 2008 | Question: 50
Which of the following statements are true? Every left-recursive grammar can be converted to a right-recursive grammar and vice-versa All $\epsilon$-productions can be removed from any context-free grammar by suitable transformations The language generated by a context-free grammar all ... trees I, II, III and IV II, III and IV only I, III and IV only I, II and IV only
Which of the following statements are true?Every left-recursive grammar can be converted to a right-recursive grammar and vice-versaAll $\epsilon$-productions can be remo...
13.8k
views
answered
Dec 3, 2015
Compiler Design
gatecse-2008
normal
compiler-design
grammar
+
–
0
votes
531
statistics
Q) Let $x$ be normal variable with mean $8$ and standard deviation $4$ then $p(X\leq5)$ is A). Greater than zero but less than $0.5$ B). Greater than $0.75$ C). Greater than $0.5$ but less than $1$ D). Equal to $0.5$
Q) Let $x$ be normal variable with mean $8$ and standard deviation $4$ then $p(X\leq5)$ is A). Greater than zero but less than $0.5$B). Greater than $0.75$C). Greater tha...
1.1k
views
answered
Dec 3, 2015
Probability
statistics
+
–
1
votes
532
deadlock
what is meant by satisfy deadlock? free from deadlock OR not free from deadlock
what is meant by satisfy deadlock?free from deadlockORnot free from deadlock
246
views
answered
Dec 3, 2015
Operating System
deadlock-prevention-avoidance-detection
+
–
1
votes
533
Viable Prefix
2.8k
views
answered
Dec 2, 2015
Compiler Design
compiler-design
parsing
viable-prefix
test-series
+
–
9
votes
534
GATE CSE 2014 Set 2 | Question: 42
Consider the C function given below. int f(int j) { static int i = 50; int k; if (i == j) { printf("something"); k = f(i); return 0; } else return 0; } Which one of the following is TRUE? The function returns $0$ for all ... . The function returns $0$ when $j = 50$. The function will exhaust the runtime stack or run into an infinite loop when $j = 50$.
Consider the C function given below.int f(int j) { static int i = 50; int k; if (i == j) { printf("something"); k = f(i); return 0; } else return 0; }Which one of the fol...
9.0k
views
answered
Dec 2, 2015
Programming in C
gatecse-2014-set2
programming
programming-in-c
+
–
2
votes
535
What is return value of BSR Routine ?
Consider the following function. Assume that the array contains list of all the numbers from 1 to k –1. What is the return value of function BSR? Sum of all numbers Repeated number in the list Average of all the numbers None of these ------------- ... from it which is also (k-1*k) /2 . So it will always return 0. Q 37 Made Easy FLT 6-Practice Test 14
Consider the following function.Assume that the array contains list of all the numbers from 1 to k –1. What is the return value of function BSR?Sum of all numbersRe...
1.0k
views
answered
Dec 1, 2015
Programming in C
programming
loop
functions
+
–
2
votes
536
Given no of vertex & edges how to find no of Non Isomorphic graphs possible ?
Assume that ‘e’ is the number of edges and n is the number of vertices. The number of non-isomorphic graphs possible with n-vertices such that graph is 3-regular graph and e = 2n – 3 are ... ? , this is real question ! Is there any algorithm for this ? From Made Easy FLT 6-Practice Test 14
Assume that ‘e’ is the number of edges and n is the number of vertices. The number of non-isomorphic graphs possible with n-vertices such that graph is 3-regu...
2.3k
views
answered
Dec 1, 2015
Graph Theory
graph-theory
graph-isomorphism
+
–
2
votes
537
Data Link Layer
Compute the fraction of the bandwidth that is wasted on overhead (headers and retransmissions) for protocol 6 on a heavily loaded 50 kbps satellite channel with data frames consisting of 40 header and 3960 data bits. Assume that the signal propagation time from the ... error rate for data frames is 1% and the error rate for NAK frames is negligible. The sequence numbers are 8 bits.
Compute the fraction of the bandwidth that is wasted on overhead (headers and retransmissions) for protocol 6 on a heavily loaded 50 kbps satellite channel with data fram...
1.5k
views
answered
Nov 29, 2015
Computer Networks
computer-networks
+
–
1
votes
538
Number of rows
305
views
answered
Nov 29, 2015
1
votes
539
C program
how it is compiler error int main() { extern int i; printf("%d ", i); { int i = 10; printf("%d ", i); } } (a) 0 10 (b) Compiler Error (c) 0 0 (d) 10 10 ans b
how it is compiler errorint main(){extern int i;printf("%d ", i);{int i = 10;printf("%d ", i);}}(a) 0 10 (b) Compiler Error(c) 0 0 (d) 10 10ans b
5.1k
views
answered
Nov 29, 2015
1
votes
540
C program
as i is initialized with 5 in main then how it becomes 0 please explain ? int main() { static int i=5; if(--i) { main(); printf("%d ",i); } } op = 0000
as i is initialized with 5 in main then how it becomes 0 please explain ?int main(){static int i=5;if( i){main();printf("%d ",i);}}op = 0000
406
views
answered
Nov 29, 2015
4
votes
541
Algorithms:Which of the following statements is/are true?
Which of the following statements is/are true? S1: Dijkstra's algorithm is not affected by negative edge weight cycles in the graph and gives correct shortest path. S2: Bellman ford algorithm finds all negative edge weight cycles present in the graph. a) ... Only S1 c) Both S1 and S2 d) Neither S1 and nor S2 Ans) D how ? But My ans only s2
Which of the following statements is/are true?S1: Dijkstra’s algorithm is not affected by negative edge weight cycles in the graph and gives correct shortest path.S2: B...
5.1k
views
answered
Nov 29, 2015
Algorithms
dijkstras-algorithm
bellman-ford
shortest-path
+
–
1
votes
542
pointer array
What it means ? int (*p)[R][C];
What it means ?int (*p)[R][C];
536
views
answered
Nov 28, 2015
80
votes
543
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 27, 2015
Algorithms
gatecse-2000
algorithms
graph-algorithms
normal
+
–
1
votes
544
Write equivalent first order expression
There are worms inside some ripe mangoes.
There are worms inside some ripe mangoes.
551
views
answered
Nov 27, 2015
2
votes
545
logic
Translate each of these statements into logical expressions using predicates, quantifiers, and logical connectives. a) No one is perfect. b) Not everyone is perfect. c) All your friends are perfect. d) At least one of your friends is perfect.
Translate each of these statements into logical expressionsusing predicates, quantifiers, and logical connectives.a) No one is perfect.b) Not everyone is perfect.c) All y...
12.2k
views
answered
Nov 27, 2015
4
votes
546
check the question
consider unspanned blocking with 20 byte blocks. A file contains records of sizes 2,5,3,7,4,20 bytes. the percentage of space wasted if blocks are allocated for file is? my answer is 47.5.but they are given 31.66.please explain it.
consider unspanned blocking with 20 byte blocks. A file contains records of sizes 2,5,3,7,4,20 bytes.the percentage of space wasted if blocks are allocated for file is?my...
3.6k
views
answered
Nov 26, 2015
8
votes
547
GATE CSE 2007 | Question: 22
Let $\text{ Graph}(x)$ be a predicate which denotes that $x$ is a graph. Let $\text{ Connected}(x)$ be a predicate which denotes that $x$ ... $\forall x \, \Bigl ( \text{ Graph}(x) \implies \lnot \text{ Connected}(x) \Bigr )$
Let $\text{ Graph}(x)$ be a predicate which denotes that $x$ is a graph. Let $\text{ Connected}(x)$ be a predicate which denotes that $x$ is connected. Which of the follo...
9.0k
views
answered
Nov 26, 2015
Mathematical Logic
gatecse-2007
mathematical-logic
easy
first-order-logic
+
–
14
votes
548
GATE IT 2007 | Question: 26
Consider $n$ jobs $J_1, J_2 \dots J_n$ such that job $J_i$ has execution time $t_i$ and a non-negative integer weight $w_i$ ... the jobs? Non-decreasing order of $t_i$ Non-increasing order of $w_i$ Non-increasing order of $w_it_i$ Non-increasing order of $w_i/t_i$
Consider $n$ jobs $J_1, J_2 \dots J_n$ such that job $J_i$ has execution time $t_i$ and a non-negative integer weight $w_i$. The weighted mean completion time of the jobs...
14.6k
views
answered
Nov 26, 2015
Operating System
gateit-2007
operating-system
process-scheduling
normal
+
–
1
votes
549
Program
Explain the line : t = (p += sizeof(int))[-1]; in following program : #include <stdio.h> void f(char**); int main() { char *argv[] = { "ab", "cd", "ef", "gh", "ij", "kl" }; f(argv); return 0; } void f(char **p) { char *t; t = (p += sizeof(int))[-1]; printf("%s\n", t); }
Explain the line :t = (p += sizeof(int))[-1];in following program :#include <stdio.h void f(char ); int main() { char *argv[] = { "ab", "cd", "ef", "gh", "ij", "kl" }; f(...
3.6k
views
answered
Nov 26, 2015
Programming in C
programming-in-c
+
–
4
votes
550
GATE CSE 2015 Set 3 | Question: 5
The number of $4$ digit numbers having their digits in non-decreasing order (from left to right) constructed by using the digits belonging to the set $\{1, 2, 3\}$ is ________.
The number of $4$ digit numbers having their digits in non-decreasing order (from left to right) constructed by using the digits belonging to the set $\{1, 2, 3\}$ is ___...
15.7k
views
answered
Nov 24, 2015
Combinatory
gatecse-2015-set3
combinatory
normal
numerical-answers
+
–
Page:
« prev
1
...
13
14
15
16
17
18
19
20
21
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register