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 nikunj
1
answer
1
UGC NET CSE | September 2013 | Part 2 | Question: 10
Suppose that the splits at every level of Quicksort are in proportion $1-\beta \text{ to } \beta$, where $0 < \beta \leq 0.5$ is a constant. The number of elements in an array is n. The maximum depth is approximately 0.5 $\beta$ Ig n 0.5 (1-$\beta$) Ig n -(Ig n)/(Ig $\beta$) -(Ig n)/Ig (1-$\beta$)
Suppose that the splits at every level of Quicksort are in proportion $1-\beta \text{ to } \beta$, where $0 < \beta \leq 0.5$ is a constant. The number of elements in an ...
7.6k
views
commented
Oct 22, 2019
DS
ugcnetsep2013ii
data-structures
sorting
algorithms
quick-sort
+
–
5
answers
2
#Regular Expression
The regular expression 0*(10*)* denotes the same set as (A) (1*0)*1* (B) 0 + (0 + 10)* (C) (0 + 1)* 10(0 + 1)* (D) none of these
The regular expression 0*(10*)* denotes the same set as(A) (1*0)*1*(B) 0 + (0 + 10)*(C) (0 + 1)* 10(0 + 1)*(D) none of these
2.5k
views
commented
Sep 15, 2017
Theory of Computation
theory-of-computation
regular-expression
+
–
1
answer
3
Stack
How many permutations can be obtained in the output using a stack assuming that the input 1,2,3,4,5,6 such that 3 will be popped out from stack at 3rd position ?
How many permutations can be obtained in the output using a stack assuming that the input 1,2,3,4,5,6 such that 3 will be popped out from stack at 3rd position ?
1.6k
views
commented
Sep 13, 2017
Programming in C
stack
data-structures
+
–
1
answer
4
Dining philosophers problem
In dining philosophers Algorithm the minimum number of forks or chopsticks to avoid deadlock is (assume there are 5 philosophers) a. 5 b. 6 c. 10 d. None of these
In dining philosophers Algorithm the minimum number of forks or chopsticks to avoid deadlock is (assume there are 5 philosophers)a. 5b. 6c. 10d. None of these
4.5k
views
commented
Sep 13, 2017
Operating System
operating-system
+
–
2
answers
5
Finite Automata to Regular Expression.Can this be solved further?
Convert the given Finite Automata to Regular Expression.
Convert the given Finite Automata to Regular Expression.
3.2k
views
answered
Sep 13, 2017
Theory of Computation
finite-automata
regular-expression
theory-of-computation
+
–
6
answers
6
GATE CSE 1999 | Question: 20-a
A certain processor provides a 'test and set' instruction that is used as follows: TSET register, flag This instruction atomically copies flag to register and sets flag to $1$. Give pseudo-code for implementing the entry and exit code to a critical region using this instruction.
A certain processor provides a 'test and set' instruction that is used as follows:TSET register, flagThis instruction atomically copies flag to register and sets flag to ...
4.5k
views
commented
Sep 13, 2017
Operating System
gate1999
operating-system
process-synchronization
normal
descriptive
+
–
3
answers
7
GATE CSE 1998 | Question: 25-a
Free disk space can be used to keep track of using a free list or a bit map. Disk addresses require $d$ bits. For a disk with $B$ blocks, $F$ of which are free, state the condition under which the free list uses less space than the bit map.
Free disk space can be used to keep track of using a free list or a bit map. Disk addresses require $d$ bits. For a disk with $B$ blocks, $F$ of which are free, state the...
5.3k
views
commented
Sep 13, 2017
Operating System
gate1998
operating-system
disk
descriptive
+
–
2
answers
8
GATE CSE 1992 | Question: 12-a
Draw the precedence graph for the concurrent program given below S1 parbegin begin S2:S4 end; begin S3; parbegin S5; begin S6:S8 end parend end; S7 parend; S9
Draw the precedence graph for the concurrent program given belowS1 parbegin begin S2:S4 end; begin S3; parbegin S5; begin S6:S8 end parend end; S7 parend; S9
3.5k
views
commented
Sep 12, 2017
Operating System
gate1992
operating-system
normal
concurrency
precedence-graph
descriptive
+
–
2
answers
9
GATE CSE 1990 | Question: 2-iii
Match the pairs:$\begin{array}{|ll|ll|}\hline (a) & \text{Critical region} & (p) & \text{Hoare's monitor} \\ (b) & \text{Wait/Signal} & (q) & \text{Mutual exclusion} \\ (c) & \text{Working Set} & (r) & \text{Principle of locality} \\ (d) & \text{Deadlock} & (s) & \text{Circular Wait} \\\hline \end{array}$
Match the pairs:$$\begin{array}{|ll|ll|}\hline (a) & \text{Critical region} & (p) & \text{Hoare's monitor} \\ (b) & \text{Wait/Signal} & (q) & \text{Mutual exclusion} \\ ...
6.1k
views
commented
Sep 12, 2017
Operating System
match-the-following
gate1990
operating-system
process-synchronization
+
–
4
answers
10
GATE IT 2004 | Question: 62
A disk has $200$ tracks (numbered $0$ through $199$). At a given time, it was servicing the request of reading data from track $120$, and at the previous request, service was for track $90$ ... Time First) and FCFS (First Come First Serve)? $2$ and $3$ $3$ and $3$ $3$ and $4$ $4$ and $4$
A disk has $200$ tracks (numbered $0$ through $199$). At a given time, it was servicing the request of reading data from track $120$, and at the previous request, service...
10.4k
views
commented
Sep 12, 2017
Operating System
gateit-2004
operating-system
disk-scheduling
normal
+
–
6
answers
11
GATE IT 2004 | Question: 67
In a particular Unix OS, each data block is of size $1024$ bytes, each node has $10$ direct data block addresses and three additional addresses: one for single indirect block, one for double indirect block and one for triple indirect block. Also, each block can ... following is approximately the maximum size of a file in the file system? $512$ MB $2$ GB $8$ GB $16$ GB
In a particular Unix OS, each data block is of size $1024$ bytes, each node has $10$ direct data block addresses and three additional addresses: one for single indirect b...
9.3k
views
commented
Sep 12, 2017
Operating System
gateit-2004
operating-system
file-system
normal
+
–
2
answers
12
GATE IT 2008 | Question: 52
C program is given below: # include <stdio.h> int main () { int i, j; char a [2] [3] = {{'a', 'b', 'c'}, {'d', 'e', 'f'}}; char b [3] [2]; char *p = *b; for (i = 0; i < 2; i++) { for (j = 0; j < ... $\text{b e}$ $\text{c f}$ $\text{a c}$ $\text{e b}$ $\text{d f}$ $\text{a e}$ $\text{d c}$ $\text{b f}$
C program is given below:# include <stdio.h int main () { int i, j; char a [3] = {{'a', 'b', 'c'}, {'d', 'e', 'f'}}; char b [3] ; char *p = *b; for (i = 0; i < 2; i++)...
10.5k
views
commented
Sep 11, 2017
Programming in C
gateit-2008
programming
programming-in-c
normal
array
+
–
13
answers
13
GATE CSE 2009 | Question: 33
The enter_CS() and leave_CS() functions to implement critical section of a process are realized using test-and-set instruction as follows: void enter_CS(X) { while(test-and-set(X)); } void leave_CS(X) { X = 0; } In the above solution, $X$ is a memory location ... at the same time Which of the above statements are TRUE? (I) only (I) and (II) (II) and (III) (IV) only
The enter_CS() and leave_CS() functions to implement critical section of a process are realized using test-and-set instruction as follows:void enter_CS(X) { while(test-an...
25.0k
views
answered
Sep 10, 2017
Operating System
gatecse-2009
operating-system
process-synchronization
normal
+
–
3
answers
14
GATE CSE 2009 | Question: 31
Consider a disk system with $100$ cylinders. The requests to access the cylinders occur in following sequence: $4, 34, 10, 7, 19, 73, 2, 15, 6, 20$ Assuming that the head is currently at cylinder $50$ ... seek time first policy is used? $95 \;\text{ms}$ $119\;\text{ms}$ $233\;\text{ms}$ $276\;\text{ms}$
Consider a disk system with $100$ cylinders. The requests to access the cylinders occur in following sequence:$4, 34, 10, 7, 19, 73, 2, 15, 6, 20$Assuming that the head i...
8.5k
views
commented
Sep 9, 2017
Operating System
gatecse-2009
operating-system
disk-scheduling
normal
+
–
4
answers
15
GATE CSE 2001 | Question: 2.20
Which of the following does not interrupt a running process? A device Timer Scheduler process Power failure
Which of the following does not interrupt a running process?A deviceTimerScheduler processPower failure
24.6k
views
comment edited
Sep 9, 2017
Operating System
gatecse-2001
operating-system
easy
process
+
–
15
answers
16
GATE CSE 2003 | Question: 78
A processor uses $2-level$ page tables for virtual to physical address translation. Page tables for both levels are stored in the main memory. Virtual and physical addresses are both $32$ bits wide. The memory is byte addressable. For virtual to physical address translation, the ... virtual address is approximately (to the nearest $0.5$ ns) $1.5$ ns $2$ ns $3$ ns $4$ ns
A processor uses $2-level$ page tables for virtual to physical address translation. Page tables for both levels are stored in the main memory. Virtual and physical addres...
50.0k
views
commented
Sep 9, 2017
Operating System
gatecse-2003
operating-system
normal
virtual-memory
+
–
4
answers
17
GATE CSE 2003 | Question: 77
A uni-processor computer system only has two processes, both of which alternate $10$ $\text{ms}$ CPU bursts with $90$ $\text{ms}$ I/O bursts. Both the processes were created at nearly the same time. The I/O of both processes ... Static priority scheduling with different priorities for the two processes Round robin scheduling with a time quantum of $5$ $\text{ms}$
A uni-processor computer system only has two processes, both of which alternate $10$ $\text{ms}$ CPU bursts with $90$ $\text{ms}$ I/O bursts. Both the processes were crea...
19.8k
views
commented
Sep 9, 2017
Operating System
gatecse-2003
operating-system
process-scheduling
normal
+
–
3
answers
18
GATE CSE 2008 | Question: 9
Which of the following is true for the language $\left\{ a^p \mid p \text{ is a prime } \right \}?$ It is not accepted by a Turing Machine It is regular but not context-free It is context-free but not regular It is neither regular nor context-free, but accepted by a Turing machine
Which of the following is true for the language$$\left\{ a^p \mid p \text{ is a prime } \right \}?$$It is not accepted by a Turing MachineIt is regular but not context-fr...
8.2k
views
commented
Sep 7, 2017
Theory of Computation
gatecse-2008
theory-of-computation
easy
identify-class-language
+
–
5
answers
19
GATE CSE 2014 Set 2 | Question: 35
Let $\langle M \rangle$ be the encoding of a Turing machine as a string over $\Sigma=\left\{0,1\right\}$ ... $L$ is: decidable and recursively enumerable undecidable but recursively enumerable undecidable and not recursively enumerable decidable but not recursively enumerable
Let $\langle M \rangle$ be the encoding of a Turing machine as a string over $\Sigma=\left\{0,1\right\}$. Let $$L=\left\{\langle M \rangle \mid M \text{ is a Turing machi...
27.8k
views
answered
Sep 7, 2017
Theory of Computation
gatecse-2014-set2
theory-of-computation
turing-machine
normal
+
–
7
answers
20
GATE CSE 2016 Set 2 | Question: 44
Consider the following languages. $L_{1} = \left\{\left\langle M \right\rangle \mid M \text{ takes at least 2016 steps on some input} \right\}$ ... not recursive $L_{1}, L_{2}$ are recursive and $L_{3}$ is not recursive $L_{1}, L_{2}, L_{3}$ are recursive
Consider the following languages.$L_{1} = \left\{\left\langle M \right\rangle \mid M \text{ takes at least 2016 steps on some input} \right\}$,$L_{2} = \left\{\left\langl...
33.6k
views
commented
Sep 7, 2017
Theory of Computation
gatecse-2016-set2
theory-of-computation
recursive-and-recursively-enumerable-languages
+
–
2
answers
21
GATE CSE 1987 | Question: 2m
State whether the following statements are TRUE or FALSE: The problem as to whether a Turing machine $M$ accepts input $w$ is undecidable.
State whether the following statements are TRUE or FALSE:The problem as to whether a Turing machine $M$ accepts input $w$ is undecidable.
3.9k
views
commented
Sep 7, 2017
Theory of Computation
gate1987
theory-of-computation
turing-machine
decidability
true-false
+
–
5
answers
22
GATE CSE 1987 | Question: 2h
State whether the following statements are TRUE or FALSE: Regularity is preserved under the operation of string reversal.
State whether the following statements are TRUE or FALSE:Regularity is preserved under the operation of string reversal.
3.7k
views
answered
Sep 7, 2017
Theory of Computation
gate1987
theory-of-computation
regular-language
true-false
+
–
1
answer
23
CFL or not
L={ wε(a+b)* | #a - #b <=10 } CFL or Reg ?
L={ wε(a+b)* | #a - #b <=10 }CFL or Reg ?
500
views
commented
Sep 6, 2017
Theory of Computation
theory-of-computation
+
–
2
answers
24
Regular or CFL
L={w| length of w is odd and its middle symbol is 0, wε{0,1}* } Reg or CFL?
L={w| length of w is odd and its middle symbol is 0, wε{0,1}* }Reg or CFL?
1.2k
views
answered
Sep 5, 2017
Theory of Computation
theory-of-computation
+
–
7
answers
25
GATE CSE 2003 | Question: 50
Consider the following deterministic finite state automaton $M$. Let $S$ denote the set of seven bit binary strings in which the first, the fourth, and the last bits are $1$. The number of strings in $S$ that are accepted by $M$ is $1$ $5$ $7$ $8$
Consider the following deterministic finite state automaton $M$.Let $S$ denote the set of seven bit binary strings in which the first, the fourth, and the last bits are $...
15.0k
views
commented
Sep 5, 2017
Theory of Computation
gatecse-2003
theory-of-computation
finite-automata
normal
+
–
3
answers
26
GATE CSE 2014 Set 1 | Question: 15
Which one of the following is TRUE? The language $L = \left\{a^nb^n \mid n \geq 0\right\}$ is regular. The language $L = \left\{a^n \mid n \text{ is prime }\right\}$ is regular. The language $L$ ... is regular. The language $L = \left\{ww \mid w \in \Sigma^* \text{ with } \Sigma = \left\{0,1\right\}\right\}$ is regular.
Which one of the following is TRUE?The language $L = \left\{a^nb^n \mid n \geq 0\right\}$ is regular.The language $L = \left\{a^n \mid n \text{ is prime }\right\}$ is reg...
9.3k
views
commented
Sep 5, 2017
Theory of Computation
gatecse-2014-set1
theory-of-computation
regular-language
normal
+
–
0
answers
27
Correct Approach or attitude while solving C programming Gate question
I am good with the basics of C and able to solve 25-30% previous year gate question but in majority of them i am able to run in my rough copy and get answer but most of times it is not in option ... comfortable while solving pointers and static storage kind of problem but most the time answer is wrong or just missing some logic)
I am good with the basics of C and able to solve 25-30% previous year gate question but in majority of them i am able to run in my rough copy and get answer but most of t...
339
views
asked
Sep 2, 2017
Study Resources
programming-in-c
self-doubt
+
–
3
answers
28
GATE CSE 1993 | Question: 26
A stack is used to pass parameters to procedures in a procedure call. If a procedure $P$ has two parameters as described in procedure definition: procedure P (var x :integer; y: integer); and if $P$ is called by ; $P(a, b)$ State precisely in a ... $b$ In the generated code for the body of procedure $P$, how will the addressing of formal parameters $x$ and $y$ differ?
A stack is used to pass parameters to procedures in a procedure call.If a procedure $P$ has two parameters as described in procedure definition:procedure P (var x :intege...
3.0k
views
commented
Sep 1, 2017
Compiler Design
gate1993
compiler-design
parameter-passing
runtime-environment
normal
descriptive
+
–
3
answers
29
PDA =FA+1stack??
we know that PDA = FA+1stack so why we use the stack data structure in PDA, we have much more data structure like linked liste,queue, array or tree/hashing???
we know that PDA = FA+1stack so why we use the stack data structure in PDA, we have much more data structure like linked liste,queue, array or tree/hashing???
793
views
answered
Sep 1, 2017
Theory of Computation
pushdown-automata
+
–
4
answers
30
GATE CSE 2002 | Question: 2.8
Consider the following declaration of a two-dimensional array in C: char $a[100][100]$; Assuming that the main memory is byte-addressable and that the array is stored starting from memory address $0$, the address of $a [40][50]$ is: $4040$ $4050$ $5040$ $5050$
Consider the following declaration of a two-dimensional array in C:char $a[100][100]$;Assuming that the main memory is byte-addressable and that the array is stored start...
28.0k
views
commented
Sep 1, 2017
Programming in C
gatecse-2002
programming-in-c
programming
easy
+
–
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register