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 DAWID15
2
votes
1
Every Regular language has an equivalent NFA ?? True/False
542
views
answered
Jan 9, 2023
Theory of Computation
theory-of-computation
regular-language
+
–
1
votes
2
NIELIT STA 2021
The addressing mode / s, which uses the PC instead of a general-purpose register is: Indexed with offset Relative Direct Both Indexed with offset and direct
The addressing mode / s, which uses the PC instead of a general-purpose register is: Indexed with offset RelativeDirectBoth Indexed with offset and direct
1.6k
views
answered
Oct 19, 2022
CO and Architecture
co-and-architecture
addressing-modes
+
–
0
votes
3
Graph Coloring
How many ways are there to color this graph from any $4$ of the following colors : Violet, Indigo, Blue, Green, Yellow, Orange and Red ? There is a condition that adjacent vertices should not be of the same color I am getting $1680$. Is it correct?
How many ways are there to color this graph from any $4$ of the following colors : Violet, Indigo, Blue, Green, Yellow, Orange and Red ?There is a condition that adjacent...
2.6k
views
answered
Oct 13, 2022
Graph Theory
graph-theory
graph-coloring
combinatory
+
–
0
votes
4
Made Easy Test Series:Data Structure-Stack
There is given a infix expression: ${\color{Red} {1}}$ $A+B\times C/\left ( \left ( D+E \right )+F\times G \right )$ While converting infix expression to postfix expression number of symbols in the stack at indicated ... $5$, but is it correct? Can anyone give some explanation??
There is given a infix expression: ${\color{Red} {1}}$$A+B\times C/\left ( \left ( D+E \right )+F\times G \rig...
1.1k
views
answered
Sep 13, 2022
DS
made-easy-test-series
data-structures
stack
+
–
–1
votes
5
NIELIT 2017 DEC Scientist B - Section B: 48
On a set $A = \{a,b,c,d\}$ a binary operation $*$ ... The relation is Commutative but not associative Neither commutative nor associative Both commutative and associative Associative but not commutative
On a set $A = \{a,b,c,d\}$ a binary operation $*$ is defined as given in the following table.$$\begin{array}{|c|cccc|}\hline\text{*}&a&b&c&d\\\hline \text{a}&a&c&b&d\\\te...
1.8k
views
answered
Jan 30, 2022
Set Theory & Algebra
nielit2017dec-scientistb
discrete-mathematics
group-theory
abelian-group
+
–
0
votes
6
Dynamic programming
My answer came out to be 13: because when we will compute T(13) { as we are using Dynamic programming , it will have to compute value of T(12),T(11),…...T(2) only once(as it will store it and reuse it) so the stack size will be 1 (for T(13))+11 (for T(12),T(11),…...T(2)) = 12…...(48/4) } will any one help me out
My answer came out to be 13:because when we will compute T(13){as we are using Dynamic programming , it will have to compute value of T(12),T(11),…...T(2) only once(as ...
736
views
answered
Jan 24, 2022
Algorithms
algorithms
dynamic-programming
programming
test-series
+
–
1
votes
7
Conflict serialziability
How the option c is correct for the given schedules?
How the option c is correct for the given schedules?
270
views
answered
Jan 22, 2022
Databases
transaction-and-concurrency
+
–
0
votes
8
DBMS Korth Edition 4 Exercise 16 Question 27 (Page No. 635)
Explain the phantom phenomenon. Why may this phenomenon lead to an incorrect concurrent execution despite the use of the two-phase locking protocol ?
Explain the phantom phenomenon. Why may this phenomenon lead to an incorrect concurrent execution despite the use of the two-phase locking protocol ?
653
views
answered
Jan 21, 2022
Databases
korth
databases
transaction-and-concurrency
descriptive
+
–
0
votes
9
Are all Irrecoverable/Non-Recoverable schedules cascading?
Suppose, T1: W(X), T2: R(X), T1: W(X), T2: Commit, T1: Abort Here we can see T2 is getting committed before T1 aborts, so it is clearly an Irrecoverable schedule but is it cascading?
Suppose,T1: W(X), T2: R(X), T1: W(X), T2: Commit, T1: AbortHere we can see T2 is getting committed before T1 aborts, so it is clearly an Irrecoverable schedule but is it ...
737
views
answered
Jan 21, 2022
Databases
databases
transaction-and-concurrency
data
+
–
1
votes
10
ER Model to Relational Model Conversion
What is the minimum number of relations required to represent a one-to-many relationship having total participation on the many side? Can i have just a single table with all attributes and (A1,B1) as a composite primary key?
What is the minimum number of relations required to represent a one-to-many relationship having total participation on the many side?Can i have just a single table with a...
784
views
answered
Dec 28, 2021
Databases
er-to-relational
er-diagram
+
–
0
votes
11
Context Free Grammar
Consider the following CFG 'G' S--> aA/bSS/SS A--> aAb/bAa/AA/ε The language generated by G is: a)Set of all strings with atleast one 'a' b)Set of all strings with atleast two a's c)Set of all strings with atleast one more 'a' than number of b's d)None of these
Consider the following CFG 'G'S aA/bSS/SSA aAb/bAa/AA/εThe language generated by G is:a)Set of all strings with atleast one 'a'b)Set of all strings with atleast two a'...
917
views
answered
Dec 28, 2021
Theory of Computation
theory-of-computation
context-free-grammar
context-free-language
pushdown-automata
+
–
1
votes
12
MadeEasy Subject Test: Programming & DS - Trees
A 4-ary tree,i.e. each node has either 0 or 4 children tree has 20 leaf nodes. Then the total number of nodes in the tree are ____.
A 4-ary tree,i.e. each node has either 0 or 4 children tree has 20 leaf nodes. Then the total number of nodes in the tree are ____.
920
views
answered
Dec 24, 2021
DS
made-easy-test-series
data-structures
tree
+
–
0
votes
13
Stack
Every recursive program uses strictly more stack space compared to its iterative equivalent. This statement is false. Please explain with examples
Every recursive program uses strictly more stack space compared to its iterative equivalent.This statement is false. Please explain with examples
723
views
answered
Dec 23, 2021
Programming in C
stack
data-structures
+
–
1
votes
14
NIELIT 2017 July Scientist B (CS) - Section B: 6
Assume that the operators $+,-,\times$ are left associative and $\wedge$ is right associative. The order of precedence(from highest to lowest) is $\wedge,\times, +,-$ ... $abc\times+de\wedge f\wedge-$ $ab+c\times d-e\wedge f\wedge $ $-+a\times bc\wedge\wedge def$
Assume that the operators $+,-,\times$ are left associative and $\wedge$ is right associative. The order of precedence(from highest to lowest) is $\wedge,\times, +,-$. Th...
1.2k
views
answered
Dec 23, 2021
DS
nielit2017july-scientistb-cs
data-structures
stack
infix-prefix
+
–
2
votes
15
NIELIT 2017 July Scientist B (CS) - Section B: 4
Let $A$ be a square matrix of size $n\times n$. Consider the following program. What is the expected output? C=100 for i=1 to n do for j=1 to n do { Temp=A[i][j]+C A[i][j]=A[j][i] A[j][i]=Temp-C } ... itself. Transpose of matrix $A$. Adding $100$ to the upper diagonal elements and subtracting $100$ from diagonal elements of $A$. None of the option.
Let $A$ be a square matrix of size $n\times n$. Consider the following program. What is the expected output?C=100 for i=1 to n do for j=1 to n do { Temp=A[i][j]+C A[i][j]...
1.2k
views
answered
Dec 23, 2021
DS
nielit2017july-scientistb-cs
data-structures
array
+
–
0
votes
16
MadeEasy Test Series: Algorithms - Sorting
Consider the following scenario during insertion sort when the array looks like the following: {25,75,95,125,80,5,10} The number of comparisons that it will further take for the array to be completely sorted are______?
Consider the following scenario during insertion sort when the array looks like the following:{25,75,95,125,80,5,10}The number of comparisons that it will further take fo...
1.6k
views
answered
Dec 21, 2021
Algorithms
algorithms
sorting
made-easy-test-series
+
–
0
votes
17
Self doubt on sorting algorithm
What is the average case time complexity of the best sorting algorithm for an array having 2^n^2 elements . I know that the best sorting algorithm is no better than O(n log n).Please answer in terms of the asymptotic notation.
What is the average case time complexity of the best sorting algorithm for an array having 2^n^2 elements .I know that the best sorting algorithm is no better than O(n lo...
592
views
answered
Dec 21, 2021
Algorithms
sorting
algorithms
discrete-mathematics
+
–
0
votes
18
made easy test series:algorithms,sorting
why not merge sort?we don’t swap in merge sort,we just create auxillary arrays and merge them by changing elements in the original array.should we consider that as a swap?
why not merge sort?we don’t swap in merge sort,we just create auxillary arrays and merge them by changing elements in the original array.should we consider that as a sw...
2.1k
views
answered
Dec 21, 2021
Algorithms
made-easy-test-series
algorithms
sorting
+
–
0
votes
19
Made Easy Test Series: Algorithm-Sorting
An array $A$ of size n is known to be sorted except for the first $k$ elements and the last $k$ elements, where $k$ is a constant. Which of the following algorithms will be the best choice for sorting the array $A?$ $a)$ ... sorts part by part using pivot. So, why not will it be answer?? How do we know it is asking for almost sorted array??
An array $A$ of size n is known to be sorted except for the first $k$ elements and the last $k$ elements, where $k$ is a constant. Which of the following algorithms will ...
1.9k
views
answered
Dec 21, 2021
Algorithms
algorithms
made-easy-test-series
sorting
+
–
0
votes
20
UGC NET CSE | June 2019 | Part 2 | Question: 64
Which of the following is best running time to sort $n$ integers in the range $0$ to $n^2-1$? $O(\text{lg } n)$ $O(n)$ $O(n\text { lg }n)$ $O(n^2)$
Which of the following is best running time to sort $n$ integers in the range $0$ to $n^2-1$?$O(\text{lg } n)$$O(n)$$O(n\text { lg }n)$$O(n^2)$
3.3k
views
answered
Dec 21, 2021
Algorithms
ugcnetcse-june2019-paper2
sorting
+
–
0
votes
21
GATE CSE 2021 Set 1 | Question: 9
Consider the following array.$\begin{array}{|l|l|l|l|l|l|} \hline 23&32&45&69&72&73&89&97 \\ \hline\end{array}$ Which algorithm out of the following options uses the least number of comparisons ( ... elements) to sort the above array in ascending order? Selection sort Mergesort Insertion sort Quicksort using the last element as pivot
Consider the following array.$$\begin{array}{|l|l|l|l|l|l|} \hline 23&32&45&69&72&73&89&97 \\ \hline\end{array}$$ Which algorithm out of the following options uses the le...
12.3k
views
answered
Dec 21, 2021
Algorithms
gatecse-2021-set1
algorithms
sorting
1-mark
+
–
0
votes
22
JEST Sample Question 1-d
T (n) = T (n/2) + 2; T (1) = 1 When n is a power of 2, the correct expression for T (n) is: (A) 2(log n + 1) (B) 2 log n (C) log n + 1 (D)2 log n + 1
T (n) = T (n/2) + 2; T (1) = 1When n is a power of 2, the correct expression for T (n) is:(A) 2(log n + 1)(B) 2 log n(C) log n + 1(D)2 log n + 1
515
views
answered
Dec 21, 2021
Algorithms
jest
algorithms
recurrence-relation
+
–
0
votes
23
Sorted List
suppose there are 4 sorted lists of n/4 elements each. if we merge these list into a single sorted list of n elements, for the n=400 number of key comparisons in the worst case using an efficient algorithm is
suppose there are 4 sorted lists of n/4 elements each. if we merge these list into a single sorted list of n elements, for the n=400 number of key comparisons in the wors...
5.7k
views
answered
Dec 21, 2021
Algorithms
sorting
algorithms
+
–
0
votes
24
UGC NET CSE | October 2020 | Part 2 | Question: 52
The running time of an algorithm is $O(g(n))$ if and only if its worst-case running time is $O(g(n))$ and its best-case running time is $\Omega(g(n)) \cdot (O= \textit{ big }O)$ its worst-case running time is $\Omega (g(n))$ and its best-case running ... $O(g(n))\cap \omega(g(n))$ is non-empty set, $(o = \textit{ small } o)$
The running time of an algorithm is $O(g(n))$ if and only ifits worst-case running time is $O(g(n))$ and its best-case running time is $\Omega(g(n)) \cdot (O= \textit{ bi...
1.9k
views
answered
Dec 19, 2021
Algorithms
ugcnetcse-oct2020-paper2
algorithms
time-complexity
+
–
3
votes
25
Gate Applied course Test series
What is answer for this question and also please explain the approach
What is answer for this question and also please explain the approach
1.2k
views
answered
Dec 17, 2021
Operating System
virtual-memory
operating-system
memory
memory-management
+
–
0
votes
26
fork()
1)Consider the following pseudo code: for(i=1;i<=4;i++) { fork(); printf("X"); } How many times “X” is printed? 2) Consider the following pseudo code: void main() { fork(); fork(); fork(); fork(); printf("X"); } How many times “X” is printed?
1)Consider the following pseudo code:for(i=1;i<=4;i++){fork();printf("X");}How many times “X” is printed?2) Consider the following pseudo code:void main(){fork();fork...
1.4k
views
answered
Dec 16, 2021
Operating System
fork-system-call
operating-system
+
–
0
votes
27
Virtual Gate Test Series: Operating System - Fork-Join Concurrency Structure
Consider the code fragment: count = 3; S1; Fork L1; L1: S3; S2; goto L3; S4; Fork L2; L2: S6; goto L3; S5; L3: join count S7 Which one of the following represents correct precedence graph of the above code fragment? the answer is given but I’m getting where am I wrong?
Consider the code fragment: count = 3;S1;Fork L1; L1: S3; S2; goto L3;S4;Fork L2; L2: S6; goto L3;S5; L3: join countS7...
3.9k
views
answered
Dec 15, 2021
Operating System
operating-system
precedence-graph
fork-system-call
concurrency
virtual-gate-test-series
+
–
0
votes
28
UGC NET CSE | December 2006 | Part 2 | Question: 2
The proposition ~ q ∨ p is equivalent to :
The proposition ~ q ∨ p is equivalent to :
591
views
answered
Dec 14, 2021
Mathematical Logic
ugcnetcse-dec2006-paper2
mathematical-logic
propositional-logic
+
–
1
votes
29
NIELIT 2016 MAR Scientist B - Section C: 21
A polynomial $p(x)$ is such that $p(0)=5, \: p(1)=4, \: p(2)=9$ and $p(3)=20$. The minimum degree it can have is $1$ $2$ $3$ $4$
A polynomial $p(x)$ is such that $p(0)=5, \: p(1)=4, \: p(2)=9$ and $p(3)=20$. The minimum degree it can have is$1$$2$$3$$4$
795
views
answered
Dec 12, 2021
Set Theory & Algebra
nielit2016mar-scientistb
engineering-mathematics
functions
polynomials
+
–
0
votes
30
Kenneth Rosen Edition 7 Exercise 6.5 Question 7 (Page No. 432)
How many ways are there to select three unordered elements from a set with five elements when repetition is allowed?
How many ways are there to select three unordered elements from a set with five elements when repetition is allowed?
3.4k
views
answered
Dec 9, 2021
Combinatory
kenneth-rosen
discrete-mathematics
counting
combinatory
descriptive
+
–
Page:
1
2
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register