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 Sunny Mukherjee
1
answer
1
GATE 2019 PREPARATION
I am not sure that i can ask this question here or not but let me ask!!! Anyone 2019 serious GATE aspirant residing in "Kolkata" if interested for "Group Study" (self not coaching) who already has prepared for GATE 2018 please comment below!!! I need a Study Buddy !!!
I am not sure that i can ask this question here or not but let me ask!!!Anyone 2019 serious GATE aspirant residing in "Kolkata" if interested for "Group Study" (self not ...
1.8k
views
commented
Mar 1, 2018
Revision
gate-preparation
study-resources
+
–
10
answers
2
GATE CSE 2017 Set 1 | Question: 48
Let $A$ be an array of $31$ numbers consisting of a sequence of $0$'s followed by a sequence of $1$'s. The problem is to find the smallest index $i$ such that $A\left [i \right ]$ is $1$ by probing the minimum number of locations in $A$. The worst case number of probes performed by an optimal algorithm is ____________.
Let $A$ be an array of $31$ numbers consisting of a sequence of $0$'s followed by a sequence of $1$'s. The problem is to find the smallest index $i$ such that $A\left [i ...
22.0k
views
commented
Feb 28, 2018
Algorithms
gatecse-2017-set1
algorithms
normal
numerical-answers
searching
+
–
6
answers
3
GATE CSE 1995 | Question: 1.16
For merging two sorted lists of sizes $m$ and $n$ into a sorted list of size $m+n$, we require comparisons of $O(m)$ $O(n)$ $O(m+n)$ $O(\log m + \log n)$
For merging two sorted lists of sizes $m$ and $n$ into a sorted list of size $m+n$, we require comparisons of$O(m)$$O(n)$$O(m+n)$$O(\log m + \log n)$
48.1k
views
commented
Feb 14, 2018
Algorithms
gate1995
algorithms
sorting
normal
merging
+
–
6
answers
4
GATE CSE 2000 | Question: 1.15
Let $S$ be a sorted array of $n$ integers. Let $T(n)$ denote the time taken for the most efficient algorithm to determined if there are two elements with sum less than $1000$ in $S$. Which of the following statement is true? $T (n)$ is $O(1)$ $n \leq T(n) \leq n \log_2 n$ $n \log_2 n ≤ T(n) < \frac{n}{2}$ $T(n) = \left (\frac{n}{2} \right)$
Let $S$ be a sorted array of $n$ integers. Let $T(n)$ denote the time taken for the most efficient algorithm to determined if there are two elements with sum less than $1...
16.2k
views
commented
Feb 13, 2018
Algorithms
gatecse-2000
easy
algorithms
time-complexity
+
–
15
answers
5
GATE CSE 2005 | Question: 39
Suppose there are $\lceil \log n \rceil$ sorted lists of $\lfloor n /\log n \rfloor$ elements each. The time complexity of producing a sorted list of all these elements is: (Hint:Use a heap data structure) $O(n \log \log n)$ $\Theta(n \log n)$ $\Omega(n \log n)$ $\Omega\left(n^{3/2}\right)$
Suppose there are $\lceil \log n \rceil$ sorted lists of $\lfloor n /\log n \rfloor$ elements each. The time complexity of producing a sorted list of all these elements i...
26.7k
views
commented
Feb 13, 2018
Algorithms
gatecse-2005
algorithms
sorting
normal
+
–
4
answers
6
TIFR CSE 2011 | Part B | Question: 31
Given a set of $n=2^{k}$ distinct numbers, we would like to determine the smallest and the second smallest using comparisons. Which of the following statements is TRUE? Both these elements can be determined using $2k$ comparisons. ... $nk$ comparisons are necessary to determine these two elements.
Given a set of $n=2^{k}$ distinct numbers, we would like to determine the smallest and the second smallest using comparisons. Which of the following statements is TRUE?Bo...
7.8k
views
commented
Feb 12, 2018
Algorithms
tifr2011
algorithms
sorting
+
–
7
answers
7
TIFR CSE 2014 | Part B | Question: 9
Given a set of $n$ distinct numbers, we would like to determine the smallest three numbers in this set using comparisons. Which of the following statements is TRUE? These three elements can be determined using $O\left(\log^{2}n\right)$ ... $O(n)$ comparisons. None of the above.
Given a set of $n$ distinct numbers, we would like to determine the smallest three numbers in this set using comparisons. Which of the following statements is TRUE?These ...
10.1k
views
commented
Feb 11, 2018
Algorithms
tifr2014
algorithms
maximum-minimum
+
–
3
answers
8
Gate 2018
Which of the following is true In slow start phase cwnd 1)Increase by 2mss after every successfull ack 2) approximately double after every rtt 3) increase by 1mss after every successfull ack 4) approximately double after every rtt I am not sure but question was something like that
Which of the following is trueIn slow start phase cwnd1)Increase by 2mss after every successfull ack2) approximately double after every rtt3) increase by 1mss after every...
1.3k
views
commented
Feb 5, 2018
3
answers
9
GATE 2018
Maximum no of min spanning trees,.... taking a value of x I answered 2 Is it correct?
Maximum no of min spanning trees,.... taking a value of xI answered 2 Is it correct?
1.6k
views
answered
Feb 4, 2018
2
answers
10
GATE 2018
Value of Global variable counter in C program is ----------.
Value of Global variable counter in C program is .
1.4k
views
commented
Feb 4, 2018
2
answers
11
Gate 2018
1.5k
views
commented
Feb 4, 2018
1
answer
12
Gate18
Dbms query question, Which query is superset of other query
Dbms query question,Which query is superset of other query
507
views
answered
Feb 4, 2018
1
answer
13
gate cs 2018
three processes and four resouces.minimum number of resouces required to avoid deadlock?given that each process take all resources at once and release all resources at once
three processes and four resouces.minimum number of resouces required to avoid deadlock?given that each process take all resources at once and release all resources at on...
884
views
answered
Feb 4, 2018
3
answers
14
Gate 2018
What is the ans of last question if no is divided then reminder is 7
What is the ans of last question if no is divided then reminder is 7
967
views
commented
Feb 4, 2018
4
answers
15
GATE CSE 2018 | Question: 38
Consider the following parse tree for the expression a#b$\$c$\$d#e#f, involving two binary operators $\$ ... has higher precedence and is right associative; # is left associative
Consider the following parse tree for the expression a#b$\$$c$\$$d#e#f, involving two binary operators $\$$ and #.Which one of the following is correct for the given par...
9.5k
views
commented
Feb 4, 2018
Compiler Design
gatecse-2018
compiler-design
parsing
normal
2-marks
+
–
4
answers
16
GATE CSE 2016 Set 2 | Question: 13
Assume that the algorithms considered here sort the input sequences in ascending order. If the input is already in the ascending order, which of the following are TRUE? Quicksort runs in $\Theta (n^2)$ time Bubblesort runs in $\Theta (n^2)$ time Mergesort runs ... Insertion sort runs in $\Theta (n)$ time I and II only I and III only II and IV only I and IV only
Assume that the algorithms considered here sort the input sequences in ascending order. If the input is already in the ascending order, which of the following are TRUE?Qu...
14.5k
views
answer edited
Feb 3, 2018
Algorithms
gatecse-2016-set2
algorithms
sorting
time-complexity
normal
ambiguous
+
–
4
answers
17
GATE IT 2004 | Question: 56
Consider the undirected graph below: Using Prim's algorithm to construct a minimum spanning tree starting with node A, which one of the following sequences of edges represents a possible order in which the edges would be added to construct the minimum spanning tree? ... $\text{(A, D), (A, B), (D, F), (F, C), (F, G), (G, E)}$
Consider the undirected graph below:Using Prim's algorithm to construct a minimum spanning tree starting with node A, which one of the following sequences of edges repres...
14.4k
views
commented
Feb 1, 2018
Algorithms
gateit-2004
algorithms
graph-algorithms
normal
prims-algorithm
+
–
4
answers
18
GATE CSE 2005 | Question: 84a
We are given $9$ tasks $T_1, T_2, \dots, T_9$. The execution of each task requires one unit of time. We can execute one task at a time. Each task $T_i$ has a profit $P_i$ and a deadline $d_i$. Profit $P_i$ is earned if the task is completed before ... profit? All tasks are completed $T_1$ and $T_6$ are left out $T_1$ and $T_8$ are left out $T_4$ and $T_6$ are left out
We are given $9$ tasks $T_1, T_2, \dots, T_9$. The execution of each task requires one unit of time. We can execute one task at a time. Each task $T_i$ has a profit $P_i$...
14.0k
views
commented
Feb 1, 2018
Algorithms
gatecse-2005
algorithms
greedy-algorithm
process-scheduling
normal
+
–
7
answers
19
GATE CSE 2006 | Question: 12
To implement Dijkstra’s shortest path algorithm on unweighted graphs so that it runs in linear time, the data structure to be used is: Queue Stack Heap B-Tree
To implement Dijkstra’s shortest path algorithm on unweighted graphs so that it runs in linear time, the data structure to be used is:QueueStackHeapB-Tree
31.8k
views
commented
Jan 31, 2018
Algorithms
gatecse-2006
algorithms
graph-algorithms
easy
dijkstras-algorithm
+
–
5
answers
20
GATE CSE 2007 | Question: 41
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 Dijkstra’s algorithm starting from $S$. Warshall’s algorithm. Performing a DFS starting from $S$. 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, byDijkstra�...
18.7k
views
commented
Jan 31, 2018
Algorithms
gatecse-2007
algorithms
graph-algorithms
easy
shortest-path
+
–
3
answers
21
GATE CSE 2009 | Question: 38
Consider the following graph: Which one of the following is NOT the sequence of edges added to the minimum spanning tree using Kruskal’s algorithm? $\text{(b, e) (e, f) (a, c) (b, c) (f, g) (c, d)}$ $\text{(b, e) (e, f) (a, c) (f, g) (b, c) (c, d)}$ $\text{(b, e) (a, c) (e, f) (b, c) (f, g) (c, d)}$ $\text{(b, e) (e, f) (b, c) (a, c) (f, g) (c, d)}$
Consider the following graph:Which one of the following is NOT the sequence of edges added to the minimum spanning tree using Kruskal’s algorithm?$\text{(b, e) (e, f) (...
9.2k
views
commented
Jan 31, 2018
Algorithms
gatecse-2009
algorithms
minimum-spanning-tree
normal
+
–
10
answers
22
GATE CSE 2011 | Question: 54
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. ... spanning tree (MST) of such a graph with $n$ nodes? $\frac{1}{12} (11n^2 - 5 n)$ $n^2-n+1$ $6n-11$ $2n+1$
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 ...
17.4k
views
commented
Jan 30, 2018
Algorithms
gatecse-2011
algorithms
graph-algorithms
minimum-spanning-tree
normal
+
–
2
answers
23
GATE CSE 2013 | Question: 6
Which one of the following is the tightest upper bound that represents the number of swaps required to sort $n$ numbers using selection sort? $O(\log n$) $O(n$) $O(n \log n$) $O(n^{2}$)
Which one of the following is the tightest upper bound that represents the number of swaps required to sort $n$ numbers using selection sort?$O(\log n$)$O(n$)$O(n \log n$...
10.2k
views
commented
Jan 30, 2018
Algorithms
gatecse-2013
algorithms
sorting
easy
selection-sort
+
–
9
answers
24
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.9k
views
commented
Jan 30, 2018
Algorithms
gateit-2005
algorithms
minimum-spanning-tree
normal
+
–
6
answers
25
GATE CSE 2016 Set 1 | Question: 40
$G=(V, E)$ is an undirected simple graph in which each edge has a distinct weight, and $e$ is a particular edge of $G$. Which of the following statements about the minimum spanning trees $(MSTs)$ of $G$ is/are TRUE? If $e$ is the lightest edge of some ... some cycle in $G$, then every MST of $G$ excludes $e$. I only. II only. Both I and II. Neither I nor II.
$G=(V, E)$ is an undirected simple graph in which each edge has a distinct weight, and $e$ is a particular edge of $G$. Which of the following statements about the minimu...
26.4k
views
commented
Jan 30, 2018
Algorithms
gatecse-2016-set1
algorithms
minimum-spanning-tree
normal
+
–
5
answers
26
GATE CSE 2015 Set 1 | Question: 43
The graph shown below has $8$ edges with distinct integer edge weights. The minimum spanning tree (MST) is of weight $36$ and contains the edges: $\{(A, C), (B, C), (B, E), (E, F), (D, F)\}$. The edge weights of only ... which are in the MST are given in the figure shown below. The minimum possible sum of weights of all $8$ edges of this graph is_______________.
The graph shown below has $8$ edges with distinct integer edge weights. The minimum spanning tree (MST) is of weight $36$ and contains the edges: $\{(A, C), (B, C), (B, E...
17.9k
views
comment edited
Jan 30, 2018
Algorithms
gatecse-2015-set1
algorithms
minimum-spanning-tree
normal
numerical-answers
+
–
6
answers
27
GATE CSE 2001 | Question: 2.24
Which of the following relational calculus expression is not safe? $\left\{t \mid \exists u \in R_1\left(t[A] = u[A]\right) \land \neg \exists s \in R_2 \left(t[A] = s[A]\right)\right\}$ ...
Which of the following relational calculus expression is not safe?$\left\{t \mid \exists u \in R_1\left(t[A] = u[A]\right) \land \neg \exists s \in R_2 \left(t[A] = s[A]\...
8.8k
views
commented
Jan 29, 2018
Databases
gatecse-2001
relational-calculus
normal
databases
+
–
18
answers
28
GATE CSE 2016 Set 1 | Question: 39
Let $G$ be a complete undirected graph on $4$ vertices, having $6$ edges with weights being $1, 2, 3, 4, 5,$ and $6$. The maximum possible weight that a minimum weight spanning tree of $G$ can have is __________
Let $G$ be a complete undirected graph on $4$ vertices, having $6$ edges with weights being $1, 2, 3, 4, 5,$ and $6$. The maximum possible weight that a minimum weight s...
35.8k
views
commented
Jan 29, 2018
Algorithms
gatecse-2016-set1
algorithms
minimum-spanning-tree
normal
numerical-answers
+
–
2
answers
29
GATE IT 2006 | Question: 48
The characters $a$ to $h$ have the set of frequencies based on the first $8$ Fibonacci numbers as follows $a : 1$, $b : 1$, $c : 2$, $d : 3$, $e : 5$, $f : 8$, $g : 13$, $h : 21$ A Huffman code is used to represent the characters. What is the sequence of characters corresponding to the following code? $110111100111010$ $fdheg$ $ecgdf$ $dchfg$ $fehdg$
The characters $a$ to $h$ have the set of frequencies based on the first $8$ Fibonacci numbers as follows$a : 1$, $b : 1$, $c : 2$, $d : 3$, $e : 5$, $f : 8$, $g : 13$, $...
13.2k
views
commented
Jan 29, 2018
Algorithms
gateit-2006
algorithms
greedy-algorithm
normal
huffman-code
+
–
4
answers
30
GATE CSE 2017 Set 2 | Question: 50
A message is made up entirely of characters from the set $X=\{P, Q, R, S, T\}$ ... message of $100$ characters over $X$ is encoded using Huffman coding, then the expected length of the encoded message in bits is ______.
A message is made up entirely of characters from the set $X=\{P, Q, R, S, T\}$. The table of probabilities for each of the characters is shown below:$$\begin{array}{|c|c|...
21.6k
views
commented
Jan 29, 2018
Algorithms
gatecse-2017-set2
huffman-code
numerical-answers
algorithms
+
–
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register