Which graph traversal method can be used to check if a graph is bipartite?
A. Kruskal's Algorithm
B. Dijkstra's Algorithm
C. Depth-First Search (DFS)
D. Breadth-First Search (BFS)
Select an option to see the answer and solution.
What is the primary use of a priority queue in graph algorithms?
A. To store all vertices of the graph.
B. To keep track of the visited nodes.
C. To efficiently manage and retrieve the minimum or maximum element.
D. To represent the adjacency matrix.
Select an option to see the answer and solution.
In the context of graph algorithms, what is a "cut"?
A. A complete traversal of all nodes.
B. A partition of the vertices into two disjoint subsets.
C. A method to count the number of vertices.
D. A complete traversal of all nodes.
Select an option to see the answer and solution.
Which graph representation method is more efficient for sparse graphs?
A. Incidence matrix
B. Edge list
C. Adjacency list
D. Adjacency matrix
Select an option to see the answer and solution.
What is the characteristic of a graph if it is described as "planar"?
A. It contains no cycles.
B. It is a complete graph.
C. It is a bipartite graph.
D. It can be drawn on a plane without any edges crossing.
Select an option to see the answer and solution.
Possible number of labelled simple Directed, Pseudo and Multigarphs exist having 2 vertices?
A. 3, Infinite, 4
B. 4, 3, Infinite
C. 4, Infinite, infinite
D. 4, Infinite, Infinite
Select an option to see the answer and solution.
In which of the following case does a Propositional Directed Acyclic Graph is used for?
A. Representation of Boolean Functions
B. String Matching
C. Searching
D. Sorting of number
Select an option to see the answer and solution.
Which of the following logical operation can't be implemented by polynomial time graph manipulation algorithms using Binary Decision Diagrams?
A. Conjunction
B. Disjunction
C. Negation
D. Tautology Checking
Select an option to see the answer and solution.
What is the maximum number of edges present in a simple directed graph with 7 vertices if there exists no cycles in the graph?
Select an option to see the answer and solution.
What is the number of words that can be formed from the given Directed Acyclic Word Graph?
Select an option to see the answer and solution.
Given an adjacency matrix A = [ [0, 1, 1], [1, 0, 1], [1, 1, 0] ], The total no. of ways in which every vertex can walk to itself using 2 edges is . . . . . . . .
Select an option to see the answer and solution.
All Graphs have unique representation on paper.
Select an option to see the answer and solution.
For which type of graph, the given program won't run infinitely? The Input would be in the form of an adjacency Matrix and n is its dimension (1<n<10).
#include <bits/stdc++.h>
using namespace std;
int G[10][10];
void fun(int n);
int main()
{
int num=0;
int n;
cin>>n;
for(int i=0;i<n;i++)
for(int j=0;j<n;j++)
cin>>G[i][j];
fun(n);
return 0;
}
void fun(int n)
{
for(int i=0;i<n;i++)
for(int j=0;j<n;j++)
if(G[i][j]==1)
j--;
}A. All Fully Connected Graphs
B. All Empty Graphs
C. All Bipartite Graphs
D. All simple graphs
Select an option to see the answer and solution.
Which of the following is a HyperGraph, where V is the set of vertices, E is the set of edges?
A. V = {v1, v2, v3} E = {e1, e2} = {{v2, v3} {v1, v3}}
B. V = {v1, v2} E = {e1} = {{v1, v2}}
C. V = {v1, v2, v3} E = {e1, e2, e3} = {{v2, v3}{v3, v1}{v2, v1}}
D. All of the mentioned
Select an option to see the answer and solution.
What is the number of edges present in a complete graph having n vertices?
A. (n*(n+1))/2
B. (n*(n-1))/2
C. n
D. Information given is insufficient
Select an option to see the answer and solution.
Graph Structured Stack finds its application in . . . . . . . .
A. Bogo Sort
B. Tomita's Algorithm
C. Todd-Coxeter algorithm
D. Heap Sort
Select an option to see the answer and solution.
What are the dimensions of an incidence matrix?
A. Number of edges*number of edges
B. Number of edges*number of vertices
C. Number of vertices*number of vertices
D. Number of edges * (1 /2 * number of vertices)
Select an option to see the answer and solution.
What is the number of unlabeled simple directed graph that can be made with 1 or 2 vertices?
Select an option to see the answer and solution.
Which of the following statement is true.
A. There exists a Simple Graph having 10 vertices such that minimum degree of the graph is 0 and maximum degree is 9
B. There exists a MultiGraph having 10 vertices such that minimum degree of the graph is 0 and maximum degree is 9
C. There exists a MultiGraph as well as a Simple Graph having 10 vertices such that minimum degree of the graph is 0 and maximum degree is 9
D. None of the mentioned
Select an option to see the answer and solution.
Incidence matrix and Adjacency matrix of a graph will always have same dimensions?
Select an option to see the answer and solution.