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 vivek9837
4
answers
1
Computer Science - UGC NET 2021 [ Question ID = 2353 ]
How many ways are there to assign 5 different jobs to 4 different employees if every employee is assigned at least 1 job ? 1024 625 240 20
How many ways are there to assign 5 different jobs to 4 different employees if every employee is assigned at least 1 job ?1024 625 240 20
827
views
commented
Sep 17, 2023
Combinatory
discrete-mathematics
permutation-and-combination
engineering-mathematics
+
–
1
answer
2
UGC NET CSE | December 2019 | Part 2 | Question: 25
Which of the following is not needed by an encryption algorithm used in Cryptography? $\text{KEY}$ Message Ciphertext User details
Which of the following is not needed by an encryption algorithm used in Cryptography?$\text{KEY}$MessageCiphertextUser details
506
views
answered
Jun 7, 2021
Others
ugcnetcse-dec2019-paper2
+
–
1
answer
3
MAX-HEAP increase key procedure
In the max heap Increase key procedure IncreaseKey(int pos, int newValue) { heap[pos] = newValue; while(left(pos) < heap.Length) { int smallest = left(pos); if(heap[right(pos)] < heap[left(pos)]) smallest = right(pos); if(heap[ ... property is violated at a node x, we dont call MAX-HEAPIFY procedure to mend the Max-heap property, What is the reason behind it?
In the max heap Increase key procedureIncreaseKey(int pos, int newValue) { heap[pos] = newValue; while(left(pos) < heap.Length) { int smallest = left(pos); if(heap[right(...
1.6k
views
asked
Sep 14, 2017
DS
data-structures
binary-heap
descriptive
+
–
0
answers
4
Self Doubt
Is there any method to check equivalence of two regular expressions other than checking all strings of two set? I mean sometimes I may miss a string.
Is there any method to check equivalence of two regular expressions other than checking all strings of two set?I mean sometimes I may miss a string.
411
views
commented
Sep 14, 2017
Theory of Computation
theory-of-computation
regular-expression
+
–
1
answer
5
Time Complexity
What will be the time complexity of a function f(n) = n^-2 i.e. pow (n,-2) ?
What will be the time complexity of a function f(n) = n^-2 i.e. pow (n,-2) ?
528
views
commented
Sep 12, 2017
Algorithms
time-complexity
algorithms
asymptotic-notation
+
–
1
answer
6
cormen page 157-159
While proving that the running time of the BUILD-MAX-HEAP to be O(n) and not O(n lgn), the have considered the number of nodes or elements at some height 'h' to be n/2^(h+1). How? All I know is that 2^h alone can give you number of nodes at some heigh h. I do not understand this. Can someone explain in detail?
While proving that the running time of the BUILD-MAX-HEAP to be O(n) and not O(n lgn), the have considered the number of nodes or elements at some height 'h' to be n/2^(h...
307
views
commented
Sep 12, 2017
DS
data-structures
binary-heap
+
–
0
answers
7
Self Doubt (Graphs)
How to understand this: For a connected graph, V = O(E)) SOURCE http://www.geeksforgeeks.org/greedy-algorithms-set-5-prims-mst-for-adjacency-list-representation/ prims algorithm time complexity for adjacency list representation. Also same is given in CLRS but no reason
How to understand this: For a connected graph, V = O(E))SOURCE http://www.geeksforgeeks.org/greedy-algorithms-set-5-prims-mst-for-adjacency-list-representation/prims algo...
412
views
commented
Sep 12, 2017
Algorithms
prims-algorithm
clrs
+
–
1
answer
8
Graph
The problem of finding the set of vertices reachable from a given vertex in a graph can be solved in time A. O(|V|^2) B. O(|V| + |E|) C. O(|V||E|) D. none of these
The problem of finding the set of vertices reachable from a given vertex in a graph can be solved in timeA. O(|V|^2)B. O(|V| + |E|)C. O(|V||E|)D. none of these
555
views
commented
Jul 16, 2017
Algorithms
graph-theory
graph-algorithms
+
–
1
answer
9
# Probability
What is the expected no. of heads that come up when fair coin is flipped five times?
What is the expected no. of heads that come up when fair coin is flipped five times?
351
views
answered
Jul 14, 2017
Mathematical Logic
engineering-mathematics
probability
+
–
6
answers
10
Related to time complexity
Which one is greater in asymptomatic notation? 1)n 2)(log n)100
Which one is greater in asymptomatic notation?1)n 2)(log n)100
2.0k
views
answered
May 11, 2017
Algorithms
algorithms
time-complexity
+
–
1
answer
11
Picked from other question
If there are 2 functions say f(x) and g(x) then is it possible that both conditions: 1) f = o(g) ............small-oh 2) f = $\omega$(g) ......little omega are satisfied at the same time? The example which I thought of is let f(x)=x ... 2.g(x) This means I can have c1.g < f < c2.g for which we have no asymptotic notation. Please help if I am going wrong somewhere.
If there are 2 functions say f(x) and g(x) then is it possible that both conditions:1) f = o(g) ............small-oh2) f = $\omega$(g) ......little omegaare satisfie...
737
views
commented
Nov 6, 2016
Algorithms
algorithms
asymptotic-notation
+
–
2
answers
12
Sweet Distribution
During the festival of Diwali, as a popular custom, people distribute sweets among their friends and neighbour. Many a times, because of growing number of sweet boxes to distribute, people generally gift the boxes they recieve to someother person :). This is benificial ... of them gift sweet boxes to every other family, and are left with atleast one sweet box $?$. HAPPY DIWALI !!
During the festival of Diwali, as a popular custom, people distribute sweets among their friends and neighbour. Many a times, because of growing number of sweet boxes to ...
2.0k
views
commented
Oct 29, 2016
Combinatory
combinatory
+
–
1
answer
13
Probability
There are two sets of Alphabets $S_{1} = \{ a, c, f, d, e\}$ and $S_{2} = \{ a, c, g, d, b\}$. An alphabet is picked from the first set and then a second albhabet from the second set, randomly. What is the probability that the same alphbet is picked in both the pickings. a) 5/25 b)3/25 c) 4/25 d)6/25
There are two sets of Alphabets $S_{1} = \{ a, c, f, d, e\}$ and $S_{2} = \{ a, c, g, d, b\}$. An alphabet is picked from the first set and then a second albhabet from th...
540
views
asked
Oct 28, 2016
Probability
probability
engineering-mathematics
+
–
4
answers
14
GATE CSE 2005 | Question: 68
A $5$ stage pipelined CPU has the following sequence of stages: IF - instruction fetch from instruction memory RD - Instruction decode and register read EX - Execute: ALU operation for data and address computation MA - Data memory access - for write access, the ... taken to complete the above sequence of instructions starting from the fetch of $I_1$? $8$ $10$ $12$ $15$
A $5$ stage pipelined CPU has the following sequence of stages:IF – instruction fetch from instruction memoryRD – Instruction decode and register readEX – Execute: ...
46.4k
views
commented
Oct 28, 2016
CO and Architecture
gatecse-2005
co-and-architecture
pipelining
normal
+
–
1
answer
15
ace test series
how many times middle loops execute for bound =1,2,......n.
how many times middle loops execute for bound =1,2,......n.
762
views
commented
Oct 26, 2016
Algorithms
algorithms
ace-test-series
time-complexity
+
–
1
answer
16
Stall Cycles-Without Forwarding
anyone elaborate the reason for each stall cycles.
anyone elaborate the reason for each stall cycles.
2.0k
views
commented
Oct 26, 2016
CO and Architecture
stall
cycle
+
–
1
answer
17
Combinatorics
A Sequence of nos. $<1, 2, 3, 4, ..... 10 $> is permuted randomly. What is the probability that all odd nos. appear before all even nos. I am getting $\frac{5! * 5!}{10!}$, is it correct
A Sequence of nos. $<1, 2, 3, 4, ..... 10 $ is permuted randomly. What is the probability that all odd nos. appear before all even nos. I am getting $\frac{5! * 5!}{10!}$...
298
views
asked
Oct 26, 2016
Combinatory
combinatory
discrete-mathematics
probability
+
–
2
answers
18
what is the time complexity ?
sum=0; for(i=0;i<n;i++) for(j=0;j<i*i;j++) for(k=0;k<j;k++) sum++;
sum=0; for(i=0;i<n;i++) for(j=0;j<i*i;j++) for(k=0;k<j;k++) sum++;
2.8k
views
answered
Oct 25, 2016
Algorithms
algorithms
time-complexity
+
–
1
answer
19
matrix multiplication
consider 3 matrices A[100*200] B[200*50]] C[50*30] Suppose a computer takes 1) 1 microsecond to multiply 2 numbers. 2) almost 0 second to perform Addition. Then find out how much time the computer will take to Multiply matrices in All possible ways. Assume the ... to be continuous without any time delay. options are-- 1) 0.5 seconds 2) 1.5 seconds 3) 2 seconds 4) 3 seconds
consider 3 matricesA[100*200]B[200*50]]C[50*30]Suppose a computer takes1) 1 microsecond to multiply 2 numbers.2) almost 0 second to perform Addition. Then find out ...
1.0k
views
commented
Oct 25, 2016
1
answer
20
Team selection
A team of 11 needs to be selected from 8 bolwers and 8 batsmen, a random selection is made. What is the probablility that the selected team has more bowlers than bastsmen $?$
A team of 11 needs to be selected from 8 bolwers and 8 batsmen, a random selection is made. What is the probablility that the selected team has more bowlers than bastsmen...
547
views
asked
Oct 25, 2016
Probability
probability
discrete-mathematics
combinatory
+
–
3
answers
21
graph
Assume undirected graph G is connected . G has 6 vertices and 10 edges. Find the minimum number of edges whose deletion from graph G is always guaranteee that it will become disconnected
Assume undirected graph G is connected . G has 6 vertices and 10 edges. Find the minimum number of edges whose deletion from graph G is always guaranteee that it will bec...
3.8k
views
commented
Oct 25, 2016
3
answers
22
COA -Cache memory
What is the use of Valid bit if we have a TAG comparator in Direct Mapped cache ?
What is the use of Valid bit if we have a TAG comparator in Direct Mapped cache ?
1.1k
views
commented
Oct 24, 2016
1
answer
23
Existence of small theta
Why doesn't the small $\theta$ notation exists ?
Why doesn't the small $\theta$ notation exists ?
3.0k
views
commented
Oct 18, 2016
Algorithms
algorithms
asymptotic-notation
+
–
1
answer
24
Little oh
f(n)=o(g(n)) if and only if a) g(n)=Ω(f(n)) b) g(n)=ω(f(n)) c)g(n)=Ω(f(n)) and g(n)=ω(f(n))
f(n)=o(g(n)) if and only ifa) g(n)=Ω(f(n))b) g(n)=ω(f(n))c)g(n)=Ω(f(n)) and g(n)=ω(f(n))
1.4k
views
answered
Oct 18, 2016
Algorithms
algorithms
asymptotic-notation
+
–
2
answers
25
Doubt
A $\phi$ (empty) relation on any set $A$ is not reflexive because for every $ a \in A$, $(a, a) \notin \phi$, but $\phi$ is a symmetric as well as transitive relation on $A$, how is that possible $?$
A $\phi$ (empty) relation on any set $A$ is not reflexive because for every $ a \in A$, $(a, a) \notin \phi$, but $\phi$ is a symmetric as well as transitive relation on ...
586
views
asked
Oct 17, 2016
Set Theory & Algebra
engineering-mathematics
discrete-mathematics
relations
+
–
1
answer
26
mathematics
Let f : A → B and g : B → C denote two functions. If the function gof : A → C is a surjection and g is an injection, then function f is ______. (a)injection (b)surjection (c)bijection (d)none of these
Let f : A → B and g : B → C denote two functions. If the function gof : A → C is a surjection and g is an injection, then function f is ______.(a)injection(b)surjec...
419
views
answer edited
Oct 17, 2016
0
answers
27
Self thought
We know that radix sort's run time is $\Theta (d(n +k))$ where n is the no. of elements to be sorted, k is the range of individual digit of the elements ($k =O(n)$) and $d$ is the no. of digits in every element, which is assumed to be constant. I am ... and also $k= O(n)$ (0 to 9) We can do this with any random arrangement of numbers and achieve a linear time, Where am I wrong $?$
We know that radix sort's run time is $\Theta (d(n +k))$ where n is the no. of elements to be sorted, k is the range of individual digit of the elements ($k =O(n)$) and $...
314
views
asked
Oct 16, 2016
Algorithms
algorithms
radix-sort
+
–
1
answer
28
algorithm
Two alternative packages A and B are available for processing a database having 10^k records. Package A requires 0.0001n^2 time units and package B requires 10nlog n time (base 10) units to process n records . What is the smallest value of k for which package B will be preferd over A? A) 12 B) 10 C) 6 D)5
Two alternative packages A and B are available for processing a database having 10^k records. Package A requires 0.0001n^2 time units and package B requires 10nlog n t...
466
views
commented
Oct 16, 2016
0
answers
29
Pipelining
In a pipelined processor, for some no, of instructions, the entire execution took 16 clock cycles. Assume that operand forwarding occured between two consecutive stages of the pipeline in successive clock cycles and there were 4 such instances. What is the performance enhancement (in percent) if operand forwarding took place in the same clock cycle ?
In a pipelined processor, for some no, of instructions, the entire execution took 16 clock cycles. Assume that operand forwarding occured between two consecutive stages o...
422
views
asked
Oct 15, 2016
CO and Architecture
co-and-architecture
pipelining
+
–
1
answer
30
War raw waw
(common data q-30_31) A pipelined processor uses a 4- stages instruction pipeline with the following stages. Instructions fetch (IF) , instruction decode (ID), execute (EX) and write back (WB). The arithmetic operations as well as the load and store ... available in rhe resisters ro, r1, r2 and r4 respectively; before the execution of the instruction sequence. Add r5,r0,r1 r5
(common data q-30_31)A pipelined processor uses a 4- stages instruction pipeline with the following stages. Instructions fetch (IF) , instruction decode (ID), execute (EX...
1.5k
views
commented
Oct 15, 2016
CO and Architecture
co-and-architecture
pipelining
data-hazards
+
–
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register