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
0
votes
41
Karumanchi
822
views
answered
Nov 4, 2018
Algorithms
algorithms
time-complexity
recurrence-relation
+
–
0
votes
42
recurrence equation:
T(1) = 1 T(n) = 2T(n - 1) + n, n ≥ 2 evaluates to (a) 2n + 1 - n – 2 (b) 2n – n (c) 2n + 1 – 2n – 2 (d) 2n – n HOW TO EVALUATES USING MASTER THEOREM
T(1) = 1 T(n) = 2T(n - 1) + n, n ≥ 2 evaluates to(a) 2n + 1 - n – 2(b) 2n – n(c) 2n + 1 – 2n – 2(d) 2n – n HOW TO EVALUATES USING MASTER THEOREM
400
views
answered
Nov 2, 2018
Algorithms
recurrence-relation
master-theorem
+
–
2
votes
43
Asymptotic Notations
Consider the following statements: $(1)$ Any two functions $f,g$ are always comparable under big Oh,that is $f=O(g)$ or $g=O(f)$ $(2)$ If $f=O(g)$ and $f=O(h)$ then $g(n)=\theta(h)$ $A)$ $(1)$ is true $(2)$ is false $B)$ $(1)$ is false $(2)$ is true $C)$ Both are false $D)$ Both are true
Consider the following statements:$(1)$ Any two functions $f,g$ are always comparable under big Oh,that is $f=O(g)$ or $g=O(f)$$(2)$ If $f=O(g)$ and $f=O(h)$ then $g(n)=\...
1.1k
views
answered
Nov 1, 2018
Algorithms
algorithms
asymptotic-notation
time-complexity
+
–
0
votes
44
Karumanchi
what is the time complexity of function(int n) { if(n<=1) return; for(int i=1; i<n; i++) { printf("*"); } function(0.8n); } i'm getting O(nlogn base 5/4) using the recurrence relation method but in the book it's given O(n) $T(n)=T(\frac{4n}{5})+O(n)$
what is the time complexity offunction(int n){ if(n<=1) return; for(int i=1; i<n; i++) { printf("*"); } ...
1.2k
views
answered
Oct 31, 2018
Algorithms
algorithms
time-complexity
recurrence-relation
+
–
2
votes
45
GATE2018 ME-2: GA-9
A house has a number which need to be identified. The following three statements are given that can help in identifying the house number? If the house number is a multiple of $3$, then it is a number from $50$ to $59$. If the house number is NOT a multiple of $4$, then it ... a multiple of $6$, then it is a number from $70$ to $79$. What is the house number? $54$ $65$ $66$ $76$
A house has a number which need to be identified. The following three statements are given that can help in identifying the house number?If the house number is a multiple...
6.2k
views
answered
Oct 30, 2018
Quantitative Aptitude
gate2018-me-2
general-aptitude
quantitative-aptitude
numerical-computation
+
–
3
votes
46
GATEBOOK-Combinatorics
How many license plates with 3 decimal digits followed by 3 letters do not contain both the number 0 and the letter O?
How many license plates with 3 decimal digits followed by 3 letters do not contain both the number 0 and the letter O?
899
views
answered
Oct 30, 2018
Combinatory
discrete-mathematics
combinatory
+
–
0
votes
47
Turing machine
What is the meaning of non trivial property related to a language. Please explain with an example.
What is the meaning of non trivial property related to a language. Please explain with an example.
225
views
answered
Oct 30, 2018
Theory of Computation
turing-machine
theory-of-computation
recursive-and-recursively-enumerable-languages
+
–
0
votes
48
testbook Testseries
An organism is born on day k = 1 with 1 cells. During day k = 2, 3, . . . the organism produces k 2 k−1 times more new cells than it produced on day k − 1. Give a simplified expression for the total of all its cells after n days
An organism is born on day k = 1 with 1 cells. During day k = 2, 3, . . . the organism produces k 2 k−1 times more new cells than it produced on day k − 1. Give a sim...
332
views
answered
Oct 28, 2018
2
votes
49
me book
how we can solve such type of question?
how we can solve such type of question?
215
views
answered
Oct 27, 2018
0
votes
50
Prepositions
551
views
answered
Oct 24, 2018
0
votes
51
TANCET 2011 ALGORITHMS
Suppose f, g, h, k : N → N. If f = O(h) and g = O(k), then 1) f + g = O(h + k) 2) fg = O(hk) 3) Both 1 and 2 4) None of the above
Suppose f, g, h, k : N → N. If f = O(h) and g = O(k), then1) f + g = O(h + k)2) fg = O(hk)3) Both 1 and 24) None of the above
512
views
answered
Oct 24, 2018
Algorithms
tancet
asymptotic-notation
+
–
0
votes
52
Insertion Sort
Consider following Statements : S1 : On any random input insertion Sort works more efficiently then Bubble Sort. S2 : Average number of Comparison of Insertion Sort is better then bubble sort by a constant Factor. If efficiency is considered as number of comparisons to sort an Input Array Which of Following is Correct ? A. Only S1 B. Only S2 C. Both S1 and S2 D. None
Consider following Statements :S1 : On any random input insertion Sort works more efficiently then Bubble Sort.S2 : Average number of Comparison of Insertion Sort is bett...
1.5k
views
answered
Oct 20, 2018
Algorithms
algorithms
sorting
+
–
1
votes
53
Paging - Memory management
Why do we need multilevel paging? According to me the reason is that page table needs contiguous memory allocation.So if page table size is too large, we may not be able to store the table in contiguous memory. So is this the reason behind multilevel paging? Also when we page the page table, do we store all levels page table in memory or only the outer level page table?
Why do we need multilevel paging?According to me the reason is that page table needs contiguous memory allocation.So if page table size is too large, we may not be able t...
611
views
answered
Oct 17, 2018
Operating System
operating-system
paging
memory-management
+
–
1
votes
54
Example of a countable set which is infinite
I wanted an example of a set which is infinite and countable. Is hair on human head an example of countable set being infinite?
I wanted an example of a set which is infinite and countable. Is hair on human head an example of countable set being infinite?
615
views
answered
Oct 7, 2018
Set Theory & Algebra
set-theory&algebra
discrete-mathematics
+
–
1
votes
55
Aptitude Doubt
The least number of five digits which is exactly divisible by 12,15 and 18 is: a)10080 b)10800 c)18000 d)81000
The least number of five digits which is exactly divisible by 12,15 and 18 is:a)10080 b)10800 c)18000 d)81000
640
views
answered
Sep 28, 2018
Quantitative Aptitude
quantitative-aptitude
general-aptitude
+
–
1
votes
56
You can do it. Passive voice
169
views
answered
Sep 28, 2018
0
votes
57
PREDICATE LOGIC DOUBT
Only Area 51 has Extra-Terresstrials A(x) = x is Area 51 E(x) = x has Extra-Terresstrials Which of the following is correct? (∀x)(A(x) -> E(x)) (∀x)(E(x) -> A(x)) (∀x)(A(x) <-> E(x))
Only Area 51 has Extra-TerresstrialsA(x) = x is Area 51E(x) = x has Extra-TerresstrialsWhich of the following is correct?(∀x)(A(x) - E(x))(∀x)(E(x) - A(x))(∀x)(A(x)...
505
views
answered
Sep 27, 2018
Mathematical Logic
mathematical-logic
first-order-logic
+
–
1
votes
58
self doubt
what is trivial or nontrivial property of a language please explain?????
what is trivial or nontrivial property of a language please explain?????
211
views
answered
Sep 26, 2018
1
votes
59
mock test
how to solve this
how to solve this
321
views
answered
Sep 25, 2018
0
votes
60
Mathematical Logic
prove $(¬A→¬B)∧(A→C)→(B→C)$
prove $(¬A→¬B)∧(A→C)→(B→C)$
217
views
answered
Sep 20, 2018
Mathematical Logic
mathematical-logic
discrete-mathematics
+
–
2
votes
61
Combination with repetition allowed
How many solutions are there to the inequality x1 + x2 + x3 ≤ 11 where x1, x2, x3 are nonnegative integers? Hint: introduce a variable x4 such that x1 + x2 + x3 + x4 = 11. Ans. C(4+11-1,11). My doubt is if the question had been x1 + x2 + x3 >= 11. then how would have we solved it ?
How many solutions are there to the inequality x1 + x2 + x3 ≤ 11 where x1, x2, x3 are nonnegative integers? Hint: introduce a variable x4 such that x1 + x2 + x3 + x4 = ...
1.1k
views
answered
Sep 18, 2018
Combinatory
combinatory
engineering-mathematics
+
–
0
votes
62
TOC DECIDABILITY
Let E={<M>| M is a DFA that accepts some strings with more 1's than 0's} Show that E is decidable. How can E be decidable. How can a DFA compare between number of 1's and 0's. From the question I know that it's not talking about all, but some. The things is even some should not be decidable. isn't it?
Let E={<M>| M is a DFA that accepts some strings with more 1's than 0's}Show that E is decidable.How can E be decidable. How can a DFA compare between number of 1's and 0...
381
views
answered
Sep 17, 2018
Theory of Computation
theory-of-computation
decidability
finite-automata
+
–
2
votes
63
Decidability-12.9.5
Let $L_1$ be a regular language and G be a context-free grammar. Show that the problem "$L_1 \subseteq L(G)$" is undecidable.
Let $L_1$ be a regular language and G be a context-free grammar. Show that the problem "$L_1 \subseteq L(G)$" is undecidable.
737
views
answered
Sep 17, 2018
Theory of Computation
decidability
theory-of-computation
+
–
1
votes
64
CMI2015-A-01
Twin primes are pairs of numbers $p$ and $p+2$ such that both are primes-for instance, $5$ and $7$, $11$ and $13$, $41$ and $43$. The Twin Prime Conjecture says that there are infinitely many twin primes. Let $\text{TwinPrime}(n)$ ... $\exists m \cdot \forall n \cdot \text{TwinPrime}(n) \text{ implies }n \leq m$
Twin primes are pairs of numbers $p$ and $p+2$ such that both are primes—for instance, $5$ and $7$, $11$ and $13$, $41$ and $43$. The Twin Prime Conjecture says that th...
1.5k
views
answered
Sep 17, 2018
Mathematical Logic
cmi2015
mathematical-logic
first-order-logic
+
–
3
votes
65
Decidability
Let M1 be a Turing machine and M2 be a finite automaton. Is the problem, whether M1 and M2 accept the same language decidable? An elaborative answer with proof is most welcome.
Let M1 be a Turing machine and M2 be a finite automaton. Is the problem, whether M1 and M2 accept the same language decidable?An elaborative answer with proof is most wel...
535
views
answered
Sep 17, 2018
Theory of Computation
decidability
theory-of-computation
+
–
0
votes
66
Probability
310
views
answered
Sep 16, 2018
0
votes
67
Doubt in Compilers
Which of the following optimization techniques are typically applied on loops? (a) Removal of invariant computation (b) Elimination of induction variables (c) Peephole optimization (d) Constant folding
Which of the following optimization techniques are typically applied on loops?(a) Removal of invariant computation (b) Elimination of induction variables(c) Peephole opti...
4.9k
views
answered
Sep 16, 2018
Compiler Design
compiler-design
code-optimization
+
–
3
votes
68
TM that accepts input string x
$D = \left \{ M \mid \ M \text{ is a TM that accepts the input string } x \right \}$ What is complement of D and is it Decidable, Turing recognizable or not Turing recognizable?
$D = \left \{ M \mid \ M \text{ is a TM that accepts the input string } x \right \}$What is complement of D and is it Decidable, Turing recognizable or not Turing recogni...
1.5k
views
answered
Sep 16, 2018
Theory of Computation
theory-of-computation
decidability
turing-machine
+
–
Page:
« prev
1
2
3
4
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register