Graph Traversals questions

Q11

GATE CS 2016 CS-1Graph AlgorithmsNAT1 mark
Consider the following directed graph:

The number of different topological orderings of the vertices of the graph is ________.
Question figure
Show answer without attempting

Answer: 6.0

Q41

GATE CS 2016 CS-2Graph AlgorithmsMCQ2 marks−2/3 if wrong
In an adjacency list representation of an undirected simple graph G=(V,E)G = (V,E), each edge (u,v)(u, v) has two adjacency list entries: [v][v] in the adjacency list of uu, and [u][u] in the adjacency list of vv. These are called twins of each other. A twin pointer is a pointer from an adjacency list entry to its twin. If ∣E∣=m|E| = m and ∣V∣=n|V| = n, and the memory size is not a constraint, what is the time complexity of the most efficient algorithm to set the twin pointer in each entry in each adjacency list?
Show answer without attempting

Answer: B

0/20 correct0 marks

Related topics in Graph Algorithms