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 viv696
1
votes
1
Hamming Code
To provide more reliability than a single parity bit can give,an error-detecting coding scheme uses one parity bit for checking all the odd-numbered bits and a second parity bit for all the even-numbered bits. What is the hamming distance of this code?
To provide more reliability than a single parity bit can give,an error-detecting coding scheme uses one parity bit for checking all the odd-numbered bits and a second par...
1.1k
views
answered
Nov 27, 2016
0
votes
2
DFA Construction and Minimal State
IF possible find the number of states in Minimal FA of the Machine M which accept L={w $\epsilon$ (0+1)* | For Every prefix w' of w , Modulus of difference in number of 0's in w' and number of 1's in w' are <= 2 } Please tell me how to contruct DFA of the same
IF possible find the number of states in Minimal FA of the Machine M which acceptL={w $\epsilon$ (0+1)* | For Every prefix w' of w , Modulus of difference in number of ...
644
views
answered
Nov 24, 2016
Theory of Computation
minimal-state-automata
theory-of-computation
+
–
0
votes
3
Context free language
How to we know that the given language is implemented by one stack or two in cfl???
How to we know that the given language is implemented by one stack or two in cfl???
198
views
answered
Nov 24, 2016
0
votes
4
#virtual gate
Q.How many possible finite automata are ther with two states x and y , where x is always initial state with alphabet a and b, that accept everthing?? plz explain??
Q.How many possible finite automata are ther with two states x and y , where x is always initial state with alphabet a and b, that accept everthing?? plz explain??
489
views
answered
Nov 24, 2016
0
votes
5
doubt on substring
which of the following has 11 as subtring: a. 001111 b.00110011 c.0011 d.1100 more than one answer is possible
which of the following has 11 as subtring:a. 001111b.00110011c.0011d.1100more than one answer is possible
305
views
answered
Nov 24, 2016
0
votes
6
turing machine
Which of the above statement is true?
Which of the above statement is true?
620
views
answered
Nov 18, 2016
Theory of Computation
turing-machine
theory-of-computation
+
–
0
votes
7
turing machine
How FA with a queue is equal to Turing machine?
How FA with a queue is equal to Turing machine?
1.5k
views
answered
Nov 18, 2016
Theory of Computation
theory-of-computation
turing-machine
+
–
1
votes
8
Lattice
How to pick an option from this I feel like both c and d are correct what do you day?
How to pick an option from this I feel like both c and d are correct what do you day?
830
views
answered
Jun 22, 2016
Set Theory & Algebra
set-theory&algebra
lattice
+
–
0
votes
9
Dividing a set of n elements in r groups where groups are of size n1,n2,n3... and n1+n2+n3+ ...(uo to r terms ) = n
(Reference- A first course in probablity by Sheldon Ross [Example 5b and 5c of chapter 1])Q1. Ten children are to be divided into an A team and a B team of 5 each. The A ...
373
views
answered
Jun 20, 2016
Combinatory
combinatory
+
–
2
votes
10
CMI2010-B-05
Sales have slumped at the Siruseri noodle factory and the management may need to terminate the contracts of some employees. Every employee has one immediate boss. The seniormost person in the company is the president, who has no boss. For legal reasons, if an employee's contract is not terminated, then his boss's contract ...
Sales have slumped at the Siruseri noodle factory and the management may need to terminate the contracts of some employees. Every employee has one immediate boss. The sen...
631
views
answered
Jun 20, 2016
Combinatory
cmi2010
descriptive
combinatory
+
–
0
votes
11
Placing n balls in r boxes(with a maximum of one ball per box)
How many ways are there to: Put n distinguishable balls in r distinguishable boxes? Put n indistinguishable balls in r distinguishable boxes? Put n distinguishable balls in r indistinguishable boxes? Put n indistinguishable balls in r indistinguishable boxes? Where, $r \geq n$
How many ways are there to:Put n distinguishable balls in r distinguishable boxes?Put n indistinguishable balls in r distinguishable boxes?Put n distinguishable balls in ...
918
views
answered
Jun 20, 2016
Combinatory
combinatory
+
–
1
votes
12
TIFR CSE 2010 | Part B | Question: 27
Consider the Insertion Sort procedure given below, which sorts an array $L$ of size $n\left ( \geq 2 \right )$ in ascending order: begin for xindex:= 2 to n do x := L [xindex]; j:= xindex - 1; while j > 0 and L[j] > x do L[j + ... $n (n - 1) / 2$ comparisons whenever all the elements of $L$ are not distinct.
Consider the Insertion Sort procedure given below, which sorts an array $L$ of size $n\left ( \geq 2 \right )$ in ascending order:begin for xindex:= 2 to n do x := L [xin...
3.8k
views
answered
Apr 23, 2016
Algorithms
tifr2010
algorithms
sorting
+
–
0
votes
13
Algorithms
Consider the following code fragment for i=1 to n/2 do for j=i to n-1 do for k=1 to j do output ''foobar'' Assume $n$ is even Let $T(n)$ denote the number of times 'foobar' is printed as a function of $n$. Express $T(n)$ as three nested summations. Simplify the summation. Show your work.
Consider the following code fragment for i=1 to n/2 do for j=i to n-1 do for k=1 to j do output ''foobar''Assume $n$ is even Let $T(n)$ denote the number of times '...
1.4k
views
answered
Mar 31, 2016
Algorithms
time-complexity
+
–
0
votes
14
Process Scheduling
Which one is not a valid reason for process termination ? 1) Time limit exceeded 2) memory unavailable 3) Parent termination 4) Child termination Explain with giving an example of each
Which one is not a valid reason for process termination ?1) Time limit exceeded 2) memory unavailable 3) Parent termination 4) Child termination Explain with giving an ex...
1.3k
views
answered
Mar 16, 2016
Operating System
process-scheduling
+
–
1
votes
15
C pointer doubt
What is the difference when I write in program mynode * head; add_node(&head,10); add_node( struct node ** head, into value); To this mynode *head; add_node (head,10); add_node( struct node* head, into value) Which is the correct way of writing?
What is the difference when I write in program mynode * head; add_node(&head,10); add_node( struct node head, into value);To this mynode *head; add_node (head,10); add_...
716
views
answered
Mar 15, 2016
Programming in C
programming-in-c
pointers
+
–
1
votes
16
set of all equivalence class of set A of cardinality C
1.6k
views
answered
Mar 12, 2016
1
votes
17
IISc2012Research
#IISc2012Research 1>Recurrence relation and worst case time complexity of Merge sort 2> Difference between D&C and Dynamic Programming ?
#IISc2012Research 1>Recurrence relation and worst case time complexity of Merge sort 2 Difference between D&C and Dynamic Programming ?
708
views
answered
Feb 24, 2016
1
votes
18
IITD2012
Define B tree and B+ tree. What’s the necessity? How does the search happen? Write the pseudo code and the recurrence relation.
Define B tree and B+ tree. What’s the necessity? How does the search happen? Write the pseudo code and the recurrence relation.
385
views
answered
Feb 24, 2016
0
votes
19
IITD2011 Interview
#IITD_2011 why dont we divide array in 5 parts for merge sort ?
#IITD_2011 why dont we divide array in 5 parts for merge sort ?
472
views
answered
Feb 24, 2016
0
votes
20
IITD_2011 interview
#IITD_2011 there is a frog who could climb either 1 stair or 3 stairs in one shot. In how many ways he could reach at 100th stair ?
#IITD_2011there is a frog who could climb either 1 stair or 3 stairs in one shot. In how many ways he could reach at 100th stair ?
670
views
answered
Feb 24, 2016
18
votes
21
GATE CSE 2016 Set 2 | Question: 40
The number of ways in which the numbers $1, 2, 3, 4, 5, 6, 7$ can be inserted in an empty binary search tree, such that the resulting tree has height $6$, is _________. Note: The height of a tree with a single node is $0$.
The number of ways in which the numbers $1, 2, 3, 4, 5, 6, 7$ can be inserted in an empty binary search tree, such that the resulting tree has height $6$, is _________.No...
50.0k
views
answered
Feb 13, 2016
DS
gatecse-2016-set2
data-structures
binary-search-tree
normal
numerical-answers
+
–
67
votes
22
GATE CSE 2016 Set 2 | Question: 07
Consider an eight-bit ripple-carry adder for computing the sum of $A$ and $B$, where $A$ and $B$ are integers represented in $2$'s complement form. If the decimal value of $A$ is one, the decimal value of $B$ that leads to the longest latency for the sum to stabilize is ___________
Consider an eight-bit ripple-carry adder for computing the sum of $A$ and $B$, where $A$ and $B$ are integers represented in $2$'s complement form. If the decimal value o...
19.4k
views
answered
Feb 12, 2016
Digital Logic
gatecse-2016-set2
digital-logic
adder
normal
numerical-answers
+
–
21
votes
23
GATE CSE 2016 Set 2 | Question: 02
Let $f(x)$ be a polynomial and $g(x)=f'(x)$ be its derivative. If the degree of $(f(x)+f(-x))$ is $10$, then the degree of $(g(x) - g(-x))$ is __________.
Let $f(x)$ be a polynomial and $g(x)=f'(x)$ be its derivative. If the degree of $(f(x)+f(-x))$ is $10$, then the degree of $(g(x) - g(-x))$ is __________.
10.5k
views
answered
Feb 12, 2016
Calculus
gatecse-2016-set2
calculus
normal
numerical-answers
differentiation
+
–
6
votes
24
GATE CSE 2016 Set 2 | Question: 14
The Floyd-Warshall algorithm for all-pair shortest paths computation is based on Greedy paradigm. Divide-and-conquer paradigm. Dynamic Programming paradigm. Neither Greedy nor Divide-and-Conquer nor Dynamic Programming paradigm.
The Floyd-Warshall algorithm for all-pair shortest paths computation is based onGreedy paradigm.Divide-and-conquer paradigm.Dynamic Programming paradigm.Neither Greedy no...
7.4k
views
answered
Feb 12, 2016
Algorithms
gatecse-2016-set2
algorithms
dynamic-programming
easy
+
–
11
votes
25
GATE CSE 2016 Set 2 | Question: 01
Consider the following expressions: $false$ $Q$ $true$ $P\vee Q$ $\neg Q\vee P$ The number of expressions given above that are logically implied by $P \wedge (P \Rightarrow Q)$ is ___________.
Consider the following expressions:$false$$Q$$true$$P\vee Q$$\neg Q\vee P$The number of expressions given above that are logically implied by $P \wedge (P \Rightarrow Q)$...
20.1k
views
answered
Feb 12, 2016
Mathematical Logic
gatecse-2016-set2
mathematical-logic
normal
numerical-answers
propositional-logic
+
–
1
votes
26
GATE CSE 2016 Set 2 | Question: 11
Breadth First Search (BFS) is started on a binary tree beginning from the root vertex. There is a vertex $t$ at a distance four from the root. If $t$ is the $n^{\text{th}}$ vertex in this BFS traversal, then the maximum possible value of $n$ is __________
Breadth First Search (BFS) is started on a binary tree beginning from the root vertex. There is a vertex $t$ at a distance four from the root. If $t$ is the $n^{\text{th}...
13.2k
views
answered
Feb 12, 2016
Algorithms
gatecse-2016-set2
algorithms
graph-algorithms
normal
numerical-answers
graph-search
+
–
0
votes
27
division among groups
In order to play basketball,10 childrens at playgorund divide themselves into two teams of 5 each.How many divisions are possible?
In order to play basketball,10 childrens at playgorund divide themselves into two teams of 5 each.How many divisions are possible?
356
views
answered
Feb 3, 2016
Quantitative Aptitude
combinatory
+
–
5
votes
28
f(n)=log n! ,g(n)=n logn what is the relationship between them?
2.8k
views
answered
Feb 1, 2016
DS
asymptotic-notation
+
–
0
votes
29
Choose correct option
Choose the correct statement (a) There exists a cfg generating the language $\{ ww \; \mid \; w\in (a+b)^+ \}$ (b) There exists a cfg generating the language $L= \{a^{n^2}\;\mid \; n\geq 1\}$ ... opinion answer should be (a) . Am I wrong ? Please correct me. CFLs are not closed under complement. So , how can the answer be (d) ?
Choose the correct statement(a) There exists a cfg generating the language $\{ ww \; \mid \; w\in (a+b)^+ \}$(b) There exists a cfg generating the language $L= \{a^{n^2}\...
4.7k
views
answered
Feb 1, 2016
Theory of Computation
theory-of-computation
identify-class-language
+
–
0
votes
30
Probability
329
views
answered
Feb 1, 2016
Probability
probability
+
–
Page:
1
2
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register