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 srestha
0
votes
0
answers
281
Transport Layer-Self doubt
Here A,B,C are 3 networks and a packet sends from A to C . When packet 180 B sends from A to B it is connected with 20B IP header as well as 20 B TCP header. In network B we are segmenting data packet as 100 B and we are removing IP header ... destination C. My question is if IP header are different for network A, B,C then how TCP header will be same for network A,B,C?
Here A,B,C are 3 networks and a packet sends from A to C . When packet 180 B sends from A to B it is connected with 20B IP header as well as 20 B TCP header. In network B...
371
views
asked
Jul 10, 2018
Computer Networks
transport-layer
computer-networks
+
–
2
votes
1
answer
282
Semaphore
Let m[0]....m[4] be mutexes (binary semaphores) and P[0].......P[4] be processes. Suppose each process P[i] executes the following: wait (m[i]; wait (m(i+1) mode 3]); ........... release (m[i]); release (m(i+1) mod 3]); Will it cause Starvation and deadlock? If the ... (m(i+1) mode 5]); ........... release (m[i]); release (m(i+1) mod 5]); Is there any change in answer in this question?
Let m[0]....m[4] be mutexes (binary semaphores) and P[0].......P[4] be processes. Suppose each process P[i] executes the following:wait (m[i]; wait (m(i+1) mode 3]); ......
5.5k
views
asked
Jul 9, 2018
Operating System
semaphore
operating-system
process-synchronization
+
–
0
votes
2
answers
283
File allocation
1) Search time for file in linked allocation is more than in contiguous allocation. 2)Contiguous allocation scheme efficiently implement fixed size file. Plz explain which one true and which one false? (In answer they considered in linked allocation external fragmentation not exist but contiguous allocation it exists)
1) Search time for file in linked allocation is more than in contiguous allocation.2)Contiguous allocation scheme efficiently implement fixed size file. Plz explain which...
2.1k
views
asked
Jul 7, 2018
DS
operating-system
file-system
+
–
0
votes
0
answers
284
DMA Controller
DMA is mainly used to control faster processor activity. Then how processor time slows down by a DMA activity?
DMA is mainly used to control faster processor activity.Then how processor time slows down by a DMA activity?
512
views
asked
Jul 3, 2018
CO and Architecture
dma
co-and-architecture
+
–
0
votes
1
answer
285
Binary Tree
Can a binary tree or BST can be constructed with dynamic programming? Can it be constructed through greedy method? Plz give some algorithm and explain
Can a binary tree or BST can be constructed with dynamic programming? Can it be constructed through greedy method?Plz give some algorithm and explain
531
views
asked
Jun 30, 2018
DS
data-structures
binary-search-tree
+
–
0
votes
2
answers
286
BFS Traversal
How through a BFS we can find graph is connected or disconnected? Plz give some example and explain
How through a BFS we can find graph is connected or disconnected? Plz give some example and explain
927
views
asked
Jun 30, 2018
Algorithms
breadth-first-search
algorithms
graph-algorithms
+
–
1
votes
1
answer
287
Kruskal Algorithm
Complexity of Kruskal's algorithm for finding the minimum spanning tree of an undirected graph containing n vertices and m edges if the edges are unsorted is _______ ______________________________________________________________________________ If elements are sorted we do with Union Find algo with ... is $log^{*}V$ Now from here can we derive it for unsorted edges? for ref: here
Complexity of Kruskal’s algorithm for finding the minimum spanning tree of an undirected graph containing n vertices and m edges if the edges are unsorted is __________...
1.6k
views
asked
Jun 30, 2018
Algorithms
algorithms
minimum-spanning-tree
kruskals-algorithm
+
–
1
votes
2
answers
288
Stack
What is difference between $pop\left ( \right )$,$empty Stack\left ( \right )$,$delete Stack\left ( \right )$? Can all be performed in $O\left ( 1 \right )$ time?
What is difference between $pop\left ( \right )$,$empty Stack\left ( \right )$,$delete Stack\left ( \right )$?Can all be performed in $O\left ( 1 \right )$ time?
463
views
asked
Jun 22, 2018
Programming in C
stack
data-structures
+
–
0
votes
0
answers
289
Asymptotic Complexity
$T\left ( n,c \right )=\Theta \left ( n \right )$ for $c\leq 2$ $T\left ( c,n \right )=\Theta \left ( n \right )$ for $c\leq 2$ $T\left ( n,n \right )=\Theta \left ( n \right )+T\left ( n,\frac{n}{2} \right )$ How to find complexity for this recurrence relation?
$T\left ( n,c \right )=\Theta \left ( n \right )$ for $c\leq 2$$T\left ( c,n \right )=\Theta \left ( n \right )$ for $c\leq 2$$T\left ( n,n \right )=\Theta \left ( n \rig...
461
views
asked
Jun 22, 2018
Algorithms
algorithms
time-complexity
asymptotic-notation
+
–
4
votes
2
answers
290
DCFL or Not
$\left \{ a^{m+n}b^{m+n}c^{n}|m,n\geq 1 \right \}$ $\left \{ a^{m+n}b^{m+n}c^{k} |m,n,k\geq 1\right \}$ $\left \{ a^{m+n}b^{m+k}c^{n+k} |m,n,k\geq 1\right \}$ Which one DCFL, CFL or CSL?
$\left \{ a^{m+n}b^{m+n}c^{n}|m,n\geq 1 \right \}$$\left \{ a^{m+n}b^{m+n}c^{k} |m,n,k\geq 1\right \}$$\left \{ a^{m+n}b^{m+k}c^{n+k} |m,n,k\geq 1\right \}$Which one DCFL...
1.6k
views
asked
Jun 22, 2018
Theory of Computation
theory-of-computation
dcfl
context-free-language
pushdown-automata
+
–
1
votes
1
answer
291
SR conflict in LALR(1)
$A→ b.a , \left \{ b \right \}$ $B→ b.,\left \{ a \right \}$ It is a SR conflict in LALR(1). Now how reduce state operated on $a$ for non terminal $B$(and not $b$) ?
$A→ b.a , \left \{ b \right \}$ $B→ b.,\left \{ a \right \}$It is a SR conflict in LALR(1). Now how reduce state operated on $a$ for non terminal $B$(and not $b$) ?...
1.4k
views
asked
Jun 17, 2018
Compiler Design
parsing
compiler-design
+
–
0
votes
0
answers
292
Fibonacci number
How "a fibonacci algorithm runs in polynomial time in n but the optimal running time is exponential in n."? Is it possible to running same algorithm in both polynomial and exponential time?
How "a fibonacci algorithm runs in polynomial time in n but the optimal running time is exponential in n."?Is it possible to running same algorithm in both polynomial and...
460
views
asked
Jun 15, 2018
Algorithms
algorithms
+
–
1
votes
1
answer
293
Decidable or not
Now define D , the diagonal set of strings: $D=\left \{ w\epsilon \Sigma ^{*} \right \}$ where $w$ is not in $f\left ( w \right )$ Call the correspondence $f$ is countable set $\Sigma ^{*}$ For example $f\left ( \varepsilon \right )=L_{0}$ ,i. ... for all even length string of infinite language etc. Now, the question is 1) is D countable? 2) is D decidable?
Now define D , the diagonal set of strings:$D=\left \{ w\epsilon \Sigma ^{*} \right \}$ where $w$ is not in $f\left ( w \right )$Call the correspondence $f$ is countable...
235
views
asked
Jun 15, 2018
Theory of Computation
decidability
theory-of-computation
+
–
0
votes
1
answer
294
L-Value Error
#include <stdio.h> int make_it(int *x,int *y, int *z){ *x *= *y+*z; *y=*x<<1; *z=*x+*y; } int main(void) { int a=5, b=10; printf("%d%d",a,b); make_it(&b,&a,&(a+b)); printf("%d%d",a,b); return 0; } Why this code is giving lvalue error?
#include <stdio.h int make_it(int *x,int *y, int *z){ *x *= *y+*z; *y=*x<<1; *z=*x+*y; } int main(void) { int a=5, b=10; printf("%d%d",a,b); make_it(&b,&a,&(a+b)); printf...
332
views
asked
Jun 14, 2018
Programming in C
programming-in-c
+
–
0
votes
1
answer
295
Overflow in 2's complement
A 8-bit CPU has an arithmetic unit that adds bytes and then sets its V, C and Z flag bits. The V bit is set if arithmetic overflow occurs in 2's complement arithmetic. The C-bit is set if a carry out is generated from the most significant bit during an ... . If the decimal numbers 204 and 143 are added using 8-bit addition, what are the values of the V, C and Z flag bits?
A 8-bit CPU has an arithmetic unit that adds bytes and then sets its V, C and Z flag bits. The V bit is set if arithmetic overflow occurs in 2’s complement arithmetic. ...
927
views
asked
Jun 13, 2018
Digital Logic
digital-logic
+
–
0
votes
1
answer
296
Branch Instruction
What is meaning of offset in Branch instruction? Is this offset same as conditional instruction offset? What is meaning of offset in virtual address? Where is actual difference between these two?
What is meaning of offset in Branch instruction? Is this offset same as conditional instruction offset?What is meaning of offset in virtual address? Where is actual diffe...
504
views
asked
Jun 10, 2018
CO and Architecture
co-and-architecture
branch-conditional-instructions
+
–
0
votes
1
answer
297
Cache memory
Consider a scenario, where there is 2 level cache in a memory hierarchy. 1)Now here if we take 1.4 memory accesses per instruction, that means if there are 100 instructions, then there will be 140 memory accesses. Here my question is how memory accesses can ... What miss rate is for L1,L2 and total in this memory hierarchy? Is it not number of misses in total number of instructions?
Consider a scenario, where there is 2 level cache in a memory hierarchy.1)Now here if we take 1.4 memory accesses per instruction, that means if there are 100 instruction...
709
views
asked
Jun 10, 2018
CO and Architecture
co-and-architecture
cache-memory
multilevel-cache
+
–
1
votes
2
answers
298
Distributive Lattice
Is below diagram is distributive lattice?
Is below diagram is distributive lattice?
8.3k
views
asked
Jun 9, 2018
Set Theory & Algebra
lattice
discrete-mathematics
+
–
0
votes
1
answer
299
Operating System
In a computer system, three files of size 11052 B, 4992 B and 5172 B need to be stored. For storing these files on disk, we can use either 100 B disk block or 200 B disk block. For each block used to store a file, 2 bytes of book ... data from a file, but not both. What is the total space required for storing the files using 100 B and 200 B disk blocks respectively___________
In a computer system, three files of size 11052 B, 4992 B and 5172 B need to be stored. For storing these files on disk, we can use either 100 B disk block or 200 B disk ...
386
views
asked
Jun 9, 2018
Operating System
operating-system
disk
+
–
1
votes
1
answer
300
Circuit switching
If two host are connected by a link and in middle of the link there is a switch between them, then transmission and propagation time both doubled. But if for the same link, there is no switch between that two hosts, then propagation time and ... once Why that happens? Though both are operating on same link, why only a switch doubles propagation delay and transmission delay time?
If two host are connected by a link and in middle of the link there is a switch between them, then transmission and propagation time both doubled.But if for the same link...
1.0k
views
asked
Jun 8, 2018
Computer Networks
computer-networks
network-switching
+
–
Page:
« prev
1
...
10
11
12
13
14
15
16
17
18
19
20
...
35
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register