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 goxul
50
votes
1
GATE CSE 2020 | Question: 31
Let $G = (V, E)$ be a weighted undirected graph and let $T$ be a Minimum Spanning Tree (MST) of $G$ maintained using adjacency lists. Suppose a new weighed edge $(u, v) \in V \times V$ is added to $G$. The worst case time complexity of determining if $T$ is still an MST ... $\Theta (\mid E \mid \mid V \mid) \\$ $\Theta(E \mid \log \mid V \mid) \\$ $\Theta( \mid V \mid)$
Let $G = (V, E)$ be a weighted undirected graph and let $T$ be a Minimum Spanning Tree (MST) of $G$ maintained using adjacency lists. Suppose a new weighed edge $(u, v) ...
19.3k
views
answered
Feb 12, 2020
Algorithms
gatecse-2020
algorithms
minimum-spanning-tree
graph-algorithms
2-marks
+
–
48
votes
2
GATE CSE 2020 | Question: 47
Consider the array representation of a binary min-heap containing $1023$ elements. The minimum number of comparisons required to find the maximum in the heap is ___________.
Consider the array representation of a binary min-heap containing $1023$ elements. The minimum number of comparisons required to find the maximum in the heap is _________...
15.2k
views
answered
Feb 12, 2020
DS
gatecse-2020
numerical-answers
binary-heap
2-marks
+
–
0
votes
3
GATE CSE 2019 | Question: 25
Consider a sequence of $14$ elements: $A=[-5, -10, 6, 3, -1, -2, 13, 4, -9, -1, 4, 12, -3, 0]$. The sequence sum $S(i,j) = \Sigma_{k=i}^j A[k]$. Determine the maximum of $S(i,j)$, where $0 \leq i \leq j <14$. (Divide and conquer approach may be used.) Answer: ___________
Consider a sequence of $14$ elements: $A=[-5, -10, 6, 3, -1, -2, 13, 4, -9, -1, 4, 12, -3, 0]$. The sequence sum $S(i,j) = \Sigma_{k=i}^j A[k]$. Determine the maximum of ...
19.5k
views
answered
Jul 4, 2019
Algorithms
gatecse-2019
numerical-answers
algorithms
algorithm-design
1-mark
+
–
0
votes
4
Cormen Edition 3 Exercise 6.1 Question 5 (Page No. 154)
Is an array that is in sorted order a min-heap ?
Is an array that is in sorted order a min-heap ?
367
views
answered
Apr 14, 2019
Algorithms
data-structures
binary-heap
cormen
descriptive
+
–
0
votes
5
Michael Sipser Edition 3 Exercise 0 Question 5 (Page No. 26)
If C is a set with c elements, how many elements are in the power set of C? Explain your answer.
If C is a set with c elements, how many elements are in the power set of C? Explain your answer.
2.7k
views
answered
Apr 14, 2019
Theory of Computation
michael-sipser
theory-of-computation
set-theory
easy
+
–
0
votes
6
Michael Sipser Edition 3 Exercise 0 Question 13 (Page No. 27)
Show that every graph with two or more nodes contains two nodes that have equal degrees.
Show that every graph with two or more nodes contains two nodes that have equal degrees.
569
views
answered
Apr 14, 2019
Theory of Computation
michael-sipser
theory-of-computation
graph-theory
proof
+
–
0
votes
7
MOCK TEST
Consider an array consisting of –ve and +ve numbers. What would be the worst time comparisons an algorithm can take in order to segregate the numbers having same sign altogether i.e all +ve on one side and then all -ve on the other? a)N-1 b)N c)N+1 d) (N*(N-1))/2 answer given is a)
Consider an array consisting of –ve and +ve numbers. What would be the worst time comparisons an algorithm can take in order to segregate the numbers having same sign a...
403
views
answered
Mar 22, 2019
Algorithms
time-complexity
algorithm-design
test-series
+
–
0
votes
8
Gateforum Test Series: Algorithms - Asymptotic Notations
Which of the following is not true in the function $f(n)=2^{n-4}$? $f(n)$=Θ($2^{n+3}$) $f(n)$=Ω($n^{1000}$) $f(n)$=Ο($2^{n-10}$) $f(n)$=$None$
Which of the following is not true in the function $f(n)=2^{n-4}$?$f(n)$=Θ($2^{n+3}$)$f(n)$=Ω($n^{1000}$)$f(n)$=Ο($2^{n-10}$)$f(n)$=$None$
583
views
answered
Dec 7, 2018
Algorithms
gateforum-test-series
algorithms
asymptotic-notation
+
–
1
votes
9
Gateforum Test Series: Algorithms - Asymptotic Notations
Consider the following function $f(x)$ = $x^8$+6$x^7$-9$x^5$-$x^4$+2$x^2$-18. Which of the following is true if x is greater than 56? $f(x)$ = O($x^8$) $f(x)$ = Ω($x^8$) $f(x)$ = θ($x^8$) $f(x)$ = None of the above.
Consider the following function $f(x)$ = $x^8$+6$x^7$-9$x^5$-$x^4$+2$x^2$-18. Which of the following is true if x is greater than 56?$f(x)$ = O($x^8$)$f(x)$ = Ω($x^8$)$f...
720
views
answered
Dec 7, 2018
Algorithms
gateforum-test-series
algorithms
asymptotic-notation
+
–
1
votes
10
OS-Virtual Memory
A computer system has a page size of 1024 bytes and maintains page table for each process in the main memory.The overhead required for doing a lookup in the page table is $500ns$.To reduce this overhead, the computer has a TLB that caches 32 ... mappings.A TLB lookup requires $100ns$.What TLB hit-rate is required to ensure an average virtual address translation time of $200ns$?
A computer system has a page size of 1024 bytes and maintains page table for each process in the main memory.The overhead required for doing a lookup in the page table is...
1.2k
views
answered
Dec 2, 2018
Operating System
operating-system
virtual-memory
paging
+
–
2
votes
11
Doubt on probability
15 students among whom are A and B arranged randomly in a row. Obtain the probability that there will be 3 students between A and B?
15 students among whom are A and B arranged randomly in a row. Obtain the probability that there will be 3 students between A and B?
382
views
answered
Nov 30, 2018
Probability
probability
engineering-mathematics
+
–
1
votes
12
Doubt : TC
How the limits are reduced. Please explain in simpler way.
How the limits are reduced. Please explain in simpler way.
366
views
answered
Nov 29, 2018
Algorithms
time-complexity
+
–
2
votes
13
Probability
The probability of a student passing an exam is 0.1. What is the probability that he passes the exam in the 3rd attempt? Please explain in details. I am confused about these two approaches: Approach 1: P(passing in 3rd attempt)=P(failed in 1st)*P(failed in 2nd ... pass rate will always remain constant no matter on which attempt he is trying. ie. Answer = 0.1 Which one is wrong and why?
The probability of a student passing an exam is 0.1. What is the probability that he passes the exam in the 3rd attempt? Please explain in details. I am confused about th...
345
views
answered
Nov 28, 2018
Probability
probability
+
–
0
votes
14
Time Complexity
605
views
answered
Nov 28, 2018
Algorithms
time-complexity
asymptotic-notation
made-easy-test-series
+
–
0
votes
15
GATEBOOK_CN_20
Let M be a confidential email that Alice wants to send to Bob, $K_B$ be Bob's encryption public key, and $K_A^{-1}$ be Alice's private key for signing. Which of the following options would be the best choice for protecting confidential ... message, Alice should sign the encrypted message and then should send this signature along with the encrypted message to BOB. Please help.
Let M be a confidential email that Alice wants to send to Bob, $K_B$ be Bob’s encryption public key, and $K_A^{-1}$ be Alice’s private key for signing. Which of the...
2.1k
views
answered
Nov 27, 2018
Computer Networks
network-security
computer-networks
+
–
1
votes
16
How to solve this series which is in both AP and GP?
how to solve this series:
how to solve this series:
6.3k
views
answered
Nov 24, 2018
0
votes
17
Turing machine
what is co-turing recognizable language?
what is co-turing recognizable language?
211
views
answered
Nov 24, 2018
Theory of Computation
theory-of-computation
+
–
0
votes
18
Self-Doubt
Consider Main memory M and Cache C. 1. When we say the access time of main memory is T what parameters does it include?Is it . just obtaining data from M or .obt data from M and Transfer it to cache(I understood as this) or . Obt data from M, ... which scenario do we take? Pls, help me with these finer aspects. I understood the overall idea. In NATs, I'm missing by small margins.
Consider Main memory M and Cache C.1. When we say the access time of main memory is T what parameters does it include?Is it. just obtaining data from M or.obt data from M...
262
views
answered
Nov 24, 2018
CO and Architecture
co-and-architecture
cache-memory
general-topic-doubt
+
–
1
votes
19
IIT Delhi
575
views
answered
Nov 22, 2018
Algorithms
minimum-spanning-tree
kruskals-algorithm
test-series
+
–
0
votes
20
Probability - Gravner-33.a
An urn contains 10 black and 10 white balls. Draw 3 a) without replacement
An urn contains 10 black and 10 white balls. Draw 3a) without replacement
338
views
answered
Nov 22, 2018
Probability
probability
gravner
engineering-mathematics
conditional-probability
+
–
0
votes
21
Probability - Gravner-15.a
A tennis tournament has $2n$ participants, $n$ Swedes and n Norwegians. First, $n$ people are chosen at random from the $2n$ (with no regard to nationality) and then paired randomly with the other $n$ people. Each pair proceeds to play one match. An ... $n$ (ordered) pairs, giving the winner and the loser in each of the $n$ matches. (a) Determine the number of outcomes.
A tennis tournament has $2n$ participants, $n$ Swedes and n Norwegians. First, $n$ people are chosen at random from the $2n$ (with no regard to nationality) and then pair...
525
views
answered
Nov 22, 2018
Probability
probability
gravner
engineering-mathematics
+
–
4
votes
22
T(n) = sqrt(n) * T(sqrt(n)) + n
T(n) = sqrt(n) * T(sqrt(n)) + n Given solution is O(log log n). But my solution is O(n log log n). 'wolframalpha'' shows the answer same as mine. You can find the solution here. Can anyone confirm the solution and provide an explantion?
T(n) = sqrt(n) * T(sqrt(n)) + n Given solution is O(log log n). But my solution is O(n log log n).'wolframalpha'' shows the answer same as mine. You can find the solution...
11.8k
views
answered
Nov 22, 2018
Algorithms
algorithms
recurrence-relation
time-complexity
+
–
1
votes
23
METest_Algo
I think the past cost to G from A as computed by Dijkstra should be 2 instead of 8. Please help me verify it.
I think the past cost to G from A as computed by Dijkstra should be 2 instead of 8.Please help me verify it.
752
views
answered
Nov 18, 2018
Algorithms
algorithms
dijkstras-algorithm
made-easy-test-series
numerical-answers
+
–
10
votes
24
GATE CSE 2006 | Question: 44
Station $A$ uses $32\; \text{byte}$ packets to transmit messages to Station $B$ using a sliding window protocol. The round trip delay between A and $B$ is $80\; \text{milliseconds}$ and the bottleneck bandwidth on the path between $A$ and $B$ is $128\; \text{kbps}$ . What is the optimal window size that $A$ should use? $20$ $40$ $160$ $320$
Station $A$ uses $32\; \text{byte}$ packets to transmit messages to Station $B$ using a sliding window protocol. The round trip delay between A and $B$ is $80\; \text{mil...
27.2k
views
answered
Nov 17, 2018
Computer Networks
gatecse-2006
computer-networks
sliding-window
normal
+
–
1
votes
25
Self Doubt
A polygon has 12 edges , How many diagonals does it have? How to find the number of diagonals?
A polygon has 12 edges , How many diagonals does it have?How to find the number of diagonals?
205
views
answered
Nov 16, 2018
0
votes
26
ibps2014
the run time for traversing all the nodes of a binary search tree with n nodes and printing them in an order is 1. o (n log n) 2. o (n) 3. o(sqrt(n)) 4. o (log n)
the run time for traversing all the nodes of a binary search tree with n nodes and printing them in an order is1. o (n log n)2. o (n)3. o(sqrt(n))4. o (log n)
293
views
answered
Nov 16, 2018
1
votes
27
compiler design
One of the purposes of using intermediate code in compilers is to increase the chances of reusing the machine-independent code optimizer in other compilers. eleborate this ??
One of the purposes of using intermediate code in compilers is to increase the chances of reusing the machine-independent code optimizer in other compilers.eleborate this...
556
views
answered
Nov 15, 2018
Compiler Design
compiler-design
intermediate-code
+
–
2
votes
28
Made easy test series
What is the difference between (ii) and (iv). I understood (ii) as "All the engineers like at least some doctor" What will be the translation for (iv) ?
What is the difference between (ii) and (iv). I understood (ii) as "All the engineers like at least some doctor"What will be the translation for (iv) ?
351
views
answered
Nov 15, 2018
1
votes
29
CN-Doubt
Which classful subnet mask is useful for need of subnet a network that has 5 subnet each with at least 20 hosts. A.255.255.255.192 B.255.255.255.248 C.255.255.255.240 D.255.255.255.224
Which classful subnet mask is useful for need of subnet a network that has 5 subnet each with at least 20 hosts.A.255.255.255.192B.255.255.255.248C.255.255.255.240D.255.2...
499
views
answered
Nov 12, 2018
Page:
1
2
3
4
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register