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
Questions by targate2018
1
votes
1
answer
1
Graph Book
The maximum number of edges in a n-node undirected graph WITH self-loops is?
The maximum number of edges in a n-node undirected graph WITH self-loops is?
1.2k
views
asked
Apr 7, 2018
Graph Theory
graph-theory
graph-connectivity
+
–
0
votes
1
answer
2
website
#include <stdio.h> int main() { int a = 1, b = 1, d = 1; printf("%d, %d, %d", ++a + ++a+a++, a++ + ++b, ++d + d++ + a++); }
#include <stdio.h>int main(){int a = 1, b = 1, d = 1;printf("%d, %d, %d", ++a + ++a+a++, a++ + ++b, ++d + d++ + a++);}
259
views
asked
Mar 17, 2018
2
votes
2
answers
3
Algorithm - Extern Variable
extern int i; int i = 10; i = 5; int main() { printf("%d", i); return 0; } The output for the above code is _______
extern int i; int i = 10; i = 5; int main() { printf("%d", i); return 0; }The output for the above code is _______
1.5k
views
asked
Jan 15, 2018
Programming in C
programming-in-c
extern-variable
output
+
–
0
votes
0
answers
4
class test
Given an array of n numbers, a median x exists such that x is larger than at least n/20 of the numbers and smaller than at lest n/20 numbers. If this x is used as a pivot in quick sort. What is the worst case running time of this algorithm? a. O(n) b. O(n11/10) 3. O(nlogn) 4.O(n2) 5. O(n10/11 log n)
Given an array of n numbers, a median x exists such that x is larger than at least n/20 of the numbers and smaller than at lest n/20 numbers. If this x is used as a pivot...
619
views
asked
Dec 5, 2017
Algorithms
algorithms
time-complexity
+
–
0
votes
1
answer
5
class test
Which of the following strings will match the linux regex a?b*? 1. (empty string) 2. b,bb,bbb.... and ab,abb,abbb...... 3. both a and b 4. acbd, acbde and acbdef
Which of the following strings will match the linux regex a?b*?1. (empty string)2. b,bb,bbb.... and ab,abb,abbb......3. both a and b4. acbd, acbde and acbdef
269
views
asked
Dec 5, 2017
Theory of Computation
theory-of-computation
regular-expression
test-series
+
–
0
votes
3
answers
6
class test
m=1; for i=1 to n do begin m=m*3; for j=1 to m do {Something which is O(1)} What is the complexity of above algorithm? 1. O(n*m3) 2. O(n3) 3. O(3n) 4. O(3m)
m=1;for i=1 to n do begin m=m*3; for j=1 to m do {Something which is O(1)}What is the complexity of above algorithm?1. O(n*m3)2. O(n3)3. O(3n)...
656
views
asked
Dec 5, 2017
Algorithms
algorithms
time-complexity
test-series
+
–
0
votes
1
answer
7
Test Series
Are MST and shortest path tree identical? T/F? with reasoning.
Are MST and shortest path tree identical?T/F? with reasoning.
332
views
asked
Dec 5, 2017
Algorithms
graph-theory
minimum-spanning-tree
+
–
0
votes
0
answers
8
Testbook
Which of the following graph corresponds to given adjacency matrix $\begin{bmatrix} 0 1 0 0 0 1\\ 1 0 1 0 0 0 \\ 0 1 0 1 0 1 \\ 0 0 1 0 1 0\\ 0 0 0 1 0 1 \\ 1 0 1 0 1 0 \end{bmatrix}$
Which of the following graph corresponds to given adjacency matrix$\begin{bmatrix} 0 1 0 0 0 1\\ 1 0 1 0 0 0 \\ 0 1 0 1 0 1 \\ 0 0 1 0 1 0\\ 0 0 0 1 0 1 \\ 1 0 1 0 1 0 \e...
263
views
asked
Nov 18, 2017
Algorithms
graph-theory
+
–
1
votes
0
answers
9
test series
Given a problem X we want to determine whether X is NP-hard. Therefore, a. We construct a reduction from instances of problem X to instances of SAT that runs in polynomial time. b. We construct a reduction from instances of problem X to instances of SAT that runs in ... are mapped to YES instances of problem X, and NO instances of pi are mapped to NO instances of X. e. None of the above
Given a problem X we want to determine whether X is NP-hard. Therefore,a. We construct a reduction from instances of problem X to instances of SAT that runs in polynomia...
397
views
asked
Nov 9, 2017
Theory of Computation
theory-of-computation
+
–
1
votes
1
answer
10
Recurrence Relation
The solution for the recurrence: T(1)=1 T(n) = T(n-1) + T(n-2) + 1 a. log(n) <= T(n)=n b. n<=T(n)<=n2 c. n2 <= T(n)<= 2n d. 2n <= T(n) <=n!
The solution for the recurrence:T(1)=1T(n) = T(n-1) + T(n-2) + 1a. log(n) <= T(n)=nb. n<=T(n)<=n2c. n2 <= T(n)<= 2nd. 2n <= T(n) <=n!
550
views
asked
Nov 9, 2017
Algorithms
algorithms
recurrence-relation
+
–
0
votes
1
answer
11
online
Explain the behaviour of following code: int main() { int *j=0; { int i=10; j=&i; } printf("%d",*j); } a. output is 10. j pointed to address of i, so it was not freed. b. output may be 10 or garbage in given execution c. output is 10. i becomes invisible outside of its block scope, but lives as long as function scope d. output is 0.
Explain the behaviour of following code:int main(){int *j=0;{int i=10;j=&i;}printf("%d",*j);} a. output is 10. j pointed to address of i, so it was not freed.b. output ma...
278
views
asked
Nov 9, 2017
Programming in C
programming
programming-in-c
bad-question
+
–
0
votes
2
answers
12
Engineering Mathematics - Linear Algebra
If the equations (λ+1)x + 8y = 4λ and λx + (λ+3)y = 3λ-1 have no solution, then the number of values of λ is : (A) one (B) two (C) three (D) more than three
If the equations (λ+1)x + 8y = 4λ and λx + (λ+3)y = 3λ-1 have no solution, then the number of values of λ is :(A) one (B) two (C) three (D) more than three
645
views
asked
Nov 5, 2017
Linear Algebra
engineering-mathematics
linear-algebra
+
–
2
votes
2
answers
13
Computer Networks
Consider a network system consisting of three networks connected with two routers. Network-A has MTU of 1500 bytes, Network-B has MTU of 620 bytes, Network-C has MTU of 1500 bytes (MTU includes header size). Station-1 needs to send a segment of1380 bytes. The Total size of the packets received at Network-C is _________ bytes if the header size is 20 B.
Consider a network system consisting of three networks connected with two routers. Network-A has MTU of 1500 bytes, Network-B has MTU of 620 bytes, Network-C has MTU of 1...
2.1k
views
asked
Nov 4, 2017
Computer Networks
computer-networks
network
+
–
0
votes
0
answers
14
Computer Networks - Congestion Control
Consider the effect of using slow start on a line with 10 msec round trip time. The receiver window and the size of congestion window are set to 38 KB and 36 KB respectively. Sender side threshold is set to 18 KB. After 8 transmission a time- ... first full window of 18 KB is____________ (in msec). Assume window size at the start of slow start phase is 2 KB.
Consider the effect of using slow start on a line with 10 msec round trip time. The receiver window and the size of congestion window are set to 38 KB and 36 KB respectiv...
457
views
asked
Nov 4, 2017
Computer Networks
computer-networks
congestion-control
made-easy-test-series
network
+
–
15
votes
13
answers
15
Minimum number of tables to represent ER-Diagram
How many minimum relations required for given ER diagram ?
How many minimum relations required for given ER diagram ?
8.9k
views
asked
Aug 12, 2017
Databases
er-diagram
databases
er-to-relational
relational
+
–
11
votes
4
answers
16
Minimum number of tables to represent ER-Diagram
The minimum number of tables to represent ER-Diagram such that the relational database satisfies 1NF.
The minimum number of tables to represent ER-Diagram such that the relational database satisfies 1NF.
11.7k
views
asked
Aug 11, 2017
Databases
er-diagram
databases
er-to-relational
relational
+
–
1
votes
3
answers
17
Computer Networks Tanenbaum
A noiseless 4-kHz channel is sampled every 1 msec. What is the maximum data rate? How does the maximum data rate change if the channel is noisy, with a signal-to-noise ratio of 30 dB?
A noiseless 4-kHz channel is sampled every 1 msec. What is the maximum data rate? How does the maximum data rate change if the channel is noisy, with a signal-to-noise ra...
5.6k
views
asked
Jul 20, 2017
Computer Networks
computer-networks
tanenbaum
network
+
–
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register