Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged goclasses-da-dpp
2
2 votes
1
1 answer
118
118 views
GO Classes DPP | GATE CS, DA | Algorithms | Dynamic Programming
True or False:The root of an optimal binary search tree must always contain the key having the highest search probability.True False
GO Classes
118
views
asked
Aug 22
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-256
goclasses-cs-dpp
goclasses-cs-dpp-day-354
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dynamic-programming
binary-search-tree
+
–
0
0 votes
1
1 answer
89
89 views
GO Classes DPP | GATE CS, DA | Algorithms | Dynamic Programming
An instance of Subset Sum contains:$n$ positive integersa positive target value $m$What is the running time of the standard dynamic-programming solution?$\Theta(m+n)$ $\T...
GO Classes
89
views
asked
Aug 22
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-256
goclasses-cs-dpp
goclasses-cs-dpp-day-354
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dynamic-programming
+
–
1
1 vote
1
1 answer
113
113 views
GO Classes DPP | GATE CS, DA | Algorithms | Dynamic Programming
There is an unlimited supply of three item types:$$\begin{array}{|c|cc|}\hline\text{Item} & \text{Size} & \text{Value} \\\hlineA & 1 & 2 \\B & 2 & 6 \\C & 3 & 9 \\\hline\...
GO Classes
113
views
asked
Aug 22
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-256
goclasses-cs-dpp
goclasses-cs-dpp-day-354
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dynamic-programming
numerical-answers
+
–
0
0 votes
1
1 answer
100
100 views
GO Classes DPP | GATE CS, DA | Algorithms | Dynamic Programming
The following function $\texttt{CalcEditDistance}$ computes the edit distance between two strings.For this problem:Inserting one character has cost $1$.Deleting one chara...
GO Classes
100
views
asked
Aug 22
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-256
goclasses-cs-dpp
goclasses-cs-dpp-day-354
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dynamic-programming
numerical-answers
+
–
0
0 votes
1
1 answer
148
148 views
GO Classes DPP | GATE CS, DA | Algorithms | Longest Increasing Subsequence
For an array, $a ,a ,\ldots,a[n]$ consider the proposed DP state:$LIS[i]=$ length of the longest increasing subsequence contained anywhere within $a[1\ldots i]$.Using onl...
GO Classes
148
views
asked
Aug 21
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-255
goclasses-cs-dpp
goclasses-cs-dpp-day-353
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dynamic-programming
+
–
3
3 votes
1
1 answer
178
178 views
GO Classes DPP | GATE CS, DA | Algorithms | 0/1 Knapsack
A $15$ kg knapsack is given with the following items:$$\begin{array}{|c|cc|}\hline\text{Item} & \text{Weight} & \text{Value} \\\hlineA & 2 & 7 \\B & 3 & 10 \\C & 5 & 18 \...
GO Classes
178
views
asked
Aug 21
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-255
goclasses-cs-dpp
goclasses-cs-dpp-day-353
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dynamic-programming
numerical-answers
+
–
2
2 votes
1
1 answer
120
120 views
GO Classes DPP | GATE CS, DA | Algorithms | Longest Common Subsequence
Consider the sequences:$X=\{A,C,B,C,D,C\}$$Y=\{C,D,B,D,C,A\}$What is the length of their longest common subsequence?
GO Classes
120
views
asked
Aug 21
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-255
goclasses-cs-dpp
goclasses-cs-dpp-day-353
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dynamic-programming
numerical-answers
+
–
1
1 vote
1
1 answer
123
123 views
GO Classes DPP | GATE CS, DA | Algorithms | Matrix Chain Multiplication
Consider four matrices whose dimension array is:$p=[5,2,2,4,6]$Thus:$A_1:5\times2$$A_2:2\times2$$A_3:2\times4$$A_4:4\times6$Using optimal matrix-chain multiplication, wha...
GO Classes
123
views
asked
Aug 21
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-255
goclasses-cs-dpp
goclasses-cs-dpp-day-353
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dynamic-programming
numerical-answers
+
–
2
2 votes
1
1 answer
103
103 views
GO Classes DPP | GATE CS, DA | Algorithms | Dynamic Programming
Consider the following statements.Dynamic programming generally solves smaller subproblems, stores their solutions, and combines those stored results to solve progressive...
GO Classes
103
views
asked
Aug 21
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-255
goclasses-cs-dpp
goclasses-cs-dpp-day-353
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dynamic-programming
+
–
1
1 vote
1
1 answer
159
159 views
GO Classes DPP | GATE CS, DA | Algorithms | BFS Tree
Let $G$ be an undirected graph and let $G^*$ be obtained by removing an edge $(u,v)$ from $G$.Suppose both $G$ and $G^*$ are connected.Let $T$ be a BFS tree of $G$ rooted...
GO Classes
159
views
asked
Aug 20
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-254
goclasses-cs-dpp
goclasses-cs-dpp-day-352
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dfs-bfs
+
–
2
2 votes
1
1 answer
143
143 views
GO Classes DPP | GATE CS, DA | Algorithms | DFS Tree
Let $T$ be any tree which contains all the vertices of a connected undirected graph $G$.There is a way to break ties in DFS such that DFS outputs $T$.True False
GO Classes
143
views
asked
Aug 20
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-254
goclasses-cs-dpp
goclasses-cs-dpp-day-352
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dfs-bfs
+
–
2
2 votes
1
1 answer
104
104 views
GO Classes DPP | GATE CS, DA | Algorithms | DFS Forest
Let $G$ be an undirected graph with $n$ vertices and $m$ edges.$\text{S1}:$ All its DFS forests, for traversals starting at different vertices, have the same number of tr...
GO Classes
104
views
asked
Aug 20
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-254
goclasses-cs-dpp
goclasses-cs-dpp-day-352
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dfs-bfs
+
–
2
2 votes
1
1 answer
151
151 views
GO Classes DPP | GATE CS, DA | Algorithms | DFS Traversal Order
Which of the following is NOT a possible depth-first search sequence of the given directed graph?$V_1,V_5,V_4,V_3,V_2$ $V_1,V_3,V_2,V_5,V_4$ $V_1,V_2,V_5,V_4,V_3$ $V_1,V_...
GO Classes
151
views
asked
Aug 20
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-254
goclasses-cs-dpp
goclasses-cs-dpp-day-352
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dfs-bfs
+
–
2
2 votes
1
1 answer
114
114 views
GO Classes DPP | GATE CS, DA | Algorithms | BFS Order vs DFS Order
Let $G$ be a connected graph with $n$ vertices. Two searches are performed starting from vertex $v$:$l(x)$ denotes the order in which vertex $x$ is reached by BFS. $p(x)$...
GO Classes
114
views
asked
Aug 20
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-254
goclasses-cs-dpp
goclasses-cs-dpp-day-352
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dfs-bfs
+
–
1
1 vote
1
1 answer
176
176 views
GO Classes DPP | GATE CS, DA | Algorithms | Topological Sort
Can the above graph be topologically sorted?Yes No
GO Classes
176
views
asked
Aug 19
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-253
goclasses-cs-dpp
goclasses-cs-dpp-day-351
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
topological-sort
+
–
2
2 votes
1
1 answer
131
131 views
GO Classes DPP | GATE CS, DA | Algorithms | DFS Tree in DAG
Suppose DFS is called on a DAG $G$, and the resulting DFS forest has a single tree. Then $G$ has exactly one source vertex.True False
GO Classes
131
views
asked
Aug 19
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-253
goclasses-cs-dpp
goclasses-cs-dpp-day-351
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dfs-bfs
directed-acyclic-graph
+
–
2
2 votes
1
1 answer
123
123 views
GO Classes DPP | GATE CS, DA | Algorithms | Topological Ordering
Is the reverse postorder the only valid topological order for this graph?No Yes
GO Classes
123
views
asked
Aug 19
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-253
goclasses-cs-dpp
goclasses-cs-dpp-day-351
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
no-of-topological-ordering
+
–
1
1 vote
1
1 answer
111
111 views
GO Classes DPP | GATE CS, DA | Algorithms | Distance vs Topological Order
Let $G=(V,E)$ be a dag, where each edge is annotated with some positive length. Let $s$ be a source vertex in $G$.Suppose we run Dijkstra's algorithm to compute the dista...
GO Classes
111
views
asked
Aug 19
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-253
goclasses-cs-dpp
goclasses-cs-dpp-day-351
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
topological-ordering
distance-order
dijkstras-algorithm
+
–
2
2 votes
1
1 answer
108
108 views
GO Classes DPP | GATE CS, DA | Algorithms | Topological Ordering
Which of the following is a valid topological ordering of the vertices in the given graph?$0 \rightarrow 6 \rightarrow 1 \rightarrow 7 \rightarrow 3 \rightarrow 5 \righta...
GO Classes
108
views
asked
Aug 19
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-253
goclasses-cs-dpp
goclasses-cs-dpp-day-351
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
no-of-topological-ordering
+
–
1
1 vote
1
1 answer
140
140 views
GO Classes DPP | GATE CS, DA | Algorithms | Recursive DFS Calls
Suppose that during an execution of depth-first search in a digraph $G$, $\texttt{dfs(v)}$ is called as a recursive subcall after $\texttt{dfs(w)}$ is called, but before ...
GO Classes
140
views
asked
Aug 18
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-252
goclasses-cs-dpp
goclasses-cs-dpp-day-350
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dfs-bfs
multiple-selects
+
–
2
2 votes
1
1 answer
111
111 views
GO Classes DPP | GATE CS, DA | Algorithms | DFS Back Edge
Run DFS on a directed graph $G$ computing visit times $pre(v)$ and $post(v)$ for each vertex $v$.An edge $(u,v)$ is a back edge if and only if $pre(v)<pre(u)<post(u)<post...
GO Classes
111
views
asked
Aug 18
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-252
goclasses-cs-dpp
goclasses-cs-dpp-day-350
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dfs-bfs
back-edge
+
–
1
1 vote
1
1 answer
124
124 views
GO Classes DPP | GATE CS, DA | Algorithms | DFS Cycle Detection
If the DFS tree has no back edges, then there are no cycles in the graph.True False
GO Classes
124
views
asked
Aug 18
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-252
goclasses-cs-dpp
goclasses-cs-dpp-day-350
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dfs-bfs
cycle-detection
+
–
1
1 vote
1
1 answer
123
123 views
GO Classes DPP | GATE CS, DA | Algorithms | DFS Edge
Let $T$ be a depth-first search tree of a undirected graph. Let $(x,y)$ be an edge of $G$ that is not an edge of $T$, then one of $x$ or $y$ is an ancestor of the other.T...
GO Classes
123
views
asked
Aug 18
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-252
goclasses-cs-dpp
goclasses-cs-dpp-day-350
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dfs-bfs
+
–
1
1 vote
1
1 answer
101
101 views
GO Classes DPP | GATE CS, DA | Algorithms | DFS Edge Classification
In DFS, if $(u,v)$ is an edge which connects two node such that they do not have any ancestor and a descendant relationship between them, than the edge is calledTree edge...
GO Classes
101
views
asked
Aug 18
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-252
goclasses-cs-dpp
goclasses-cs-dpp-day-350
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dfs-bfs
+
–
1
1 vote
1
1 answer
169
169 views
GO Classes DPP | GATE CS, DA | Algorithms | DFS Tree Edges
Is the following statement true?A DFS of a directed graph always produces the same number of tree edges, i.e. independent of the order in which the vertices are considere...
GO Classes
169
views
asked
Aug 17
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-251
goclasses-cs-dpp
goclasses-cs-dpp-day-349
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dfs-bfs
digraph
+
–
3
3 votes
1
1 answer
136
136 views
GO Classes DPP | GATE CS, DA | Algorithms | DFS Connectivity
Suppose we run DFS on an undirected graph, and we discover a vertex $v$ with:$\mathrm{pre}(v)=1$ and $\mathrm{post}(v)=2|V|$Then the graph must be connected.True False
GO Classes
136
views
asked
Aug 17
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-251
goclasses-cs-dpp
goclasses-cs-dpp-day-349
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dfs-bfs
graph-connectivity
+
–
1
1 vote
1
1 answer
107
107 views
GO Classes DPP | GATE CS, DA | Algorithms | DFS Finishing Time
Suppose a directed graph has a path from vertex $\text{X}$ to vertex $\text{Y}$, but no path from vertex $\text{Y}$ to vertex $\text{X}$.The relationship between the fini...
GO Classes
107
views
asked
Aug 17
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-251
goclasses-cs-dpp
goclasses-cs-dpp-day-349
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dfs-bfs
digraph
+
–
1
1 vote
1
1 answer
110
110 views
GO Classes DPP | GATE CS, DA | Algorithms | DFS Traversal
Suppose vertices $A,B,C,D,E,F,G$ are stored in alphabetical order in the graph shown below. What is DFS order of traversing this graph starting from vertex $G$?$G,A,B,C,D...
GO Classes
110
views
asked
Aug 17
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-251
goclasses-cs-dpp
goclasses-cs-dpp-day-349
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dfs-bfs
digraph
+
–
0
0 votes
1
1 answer
148
148 views
GO Classes DPP | GATE CS, DA | Algorithms | DFS Traversal
Find a DFS traversal for the following directed graph:$10 \rightarrow 6 \rightarrow 2 \rightarrow 3 \rightarrow 7 \rightarrow 5 \rightarrow 1 \rightarrow 0 \rightarrow 4 ...
GO Classes
148
views
asked
Aug 17
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-251
goclasses-cs-dpp
goclasses-cs-dpp-day-349
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dfs-bfs
digraph
multiple-selects
+
–
2
2 votes
1
1 answer
286
286 views
GO Classes DPP | GATE CS, DA | Algorithms | BFS Graph
Suppose BFS is run on a cycle graph $C_n$. For which values of $n$ will no coloring conflict occur?All $n$ Odd $n$ Even $n$ Only prime $n$
GO Classes
286
views
asked
Aug 14
Algorithms
goclasses
goclasses-da-dpp
goclasses-da-dpp-day-250
goclasses-cs-dpp
goclasses-cs-dpp-day-348
algorithms
python-&-dsa
goclasses-python-&-dsa-practice-questions
goclasses-algo-practice-questions
dfs-bfs
graph-coloring
+
–
Page:
« prev
1
...
3
4
5
6
7
8
9
10
11
12
13
...
50
next »