Questão 1
Questão
a topological sort can be done on a cyclic graph.
Questão 2
Questão
Select the correct definition.
Topological sorting:
Responda
-
A) Given a cyclic digraph find a linear ordering of vertices such
that for all edges (v, w) in E, v procedes w in the ordering.
-
B) Given an acyclic undirected graph find a linear ordering of nodes
such that for all vertices (v, w) in E, v proceeds w in the ordering
-
C) Given an acyclic digraph find a quadratic ordering of nodes such
that for all edges (v, w) in E, v proceeds w in the ordering.
-
D) Given an acyclic digraph find a linear ordering of nodes such
that for all edges (v, w) in E, v proceeds w in the ordering.
Questão 3
Questão
What is Topological Sorting?
Questão 4
Questão
What is not part of algorithm for topological graph?
Questão 5
Questão
Any linear ordering of all of the vertices in which all the arrows go to the right is a valid solution.
The statemen is an example of:
Responda
-
A.Big o notation
-
B.Ascending
-
C.Topological
-
D.Descending
Questão 6
Questão
In the topological algorithm once you select a vertex V with an out outdegree of 0, where do you place the V in the list?
Questão 7
Questão
The algorithm for topological sorting includes
Questão 8
Questão
What is any linear ordering of all of the verticies of a graph in which all
the arrows go to the right is a valid solution?
Responda
-
A) Topological Sorting
-
B) Top-Down Sorting
-
C) Quick Sorting
-
D) None of the above
Questão 9
Questão
Any linear Ordering of all vertices where all the arrows point to the left is a valid solution
Questão 10
Questão
In order to perform a topilogical sort, the graph must be:
Responda
-
A. Cyclic
-
B. Acyclic
-
C. A tree
-
D. None of the above
Questão 11
Questão
For any given directed acyclic graph, there could be ______ valid topological sorts.
Questão 12
Questão
In an example of topological orders, which of the following is correct?
Responda
-
A. any nonlinear ordering of all of the vertices in which all the arrows go to the right
-
B. any linear ordering of all of the vertices in which all the arrows go to the right
-
C. any linear ordering of all of the vertices in which all the arrows go to the left
-
D. any linear ordering of all of the vertices in which all the arrows are static
Questão 13
Questão
Is topological sorting possible if and only if the graph has no directed cycles?
Questão 14
Questão
Is the example topological orders true or false?
Any linear ordering of all of the vertices in which all the arrows go to the
right is a valid solution.
Questão 15
Questão
Given this sudo-method:
list digraph::topoSort()
{
// make a copy of digraph G
// make a list l
// for each vertex in G
// select a vertex v with an outdegree of 2
// add v to the front of l
// delete v and it's edges from the digraph
}
What is the problem with this method?