8 Lecture
CS502
Midterm & Final Term Short Notes
Graphs
Graphs are mathematical structures used to model relationships between objects or entities. They consist of a set of vertices or nodes, connected by edges or arcs. Graphs can be directed or undirected, weighted or unweighted, and may contain loo
Important Mcq's
Midterm & Finalterm Prepration
Past papers included
Download PDF
What is a graph? A. A visual representation of data B. A mathematical structure used to model relationships C. A type of tree D. A type of function Answer: B What is a directed graph? A. A graph with loops B. A graph with weighted edges C. A graph with arrows on the edges D. A graph with multiple edges Answer: C What is an undirected graph? A. A graph with loops B. A graph with weighted edges C. A graph with arrows on the edges D. A graph with multiple edges Answer: D What is a weighted graph? A. A graph with loops B. A graph with arrows on the edges C. A graph with multiple edges D. A graph with values assigned to its edges Answer: D What is a cycle in a graph? A. A path from one vertex to another B. A connected component of a graph C. A sequence of vertices and edges that starts and ends at the same vertex D. A set of vertices that are not connected by any edge Answer: C What is a connected graph? A. A graph with no cycles B. A graph with all vertices connected by at least one edge C. A graph with multiple edges between vertices D. A graph with no loops Answer: B What is a tree? A. A type of graph with no cycles B. A type of graph with multiple edges C. A type of graph with loops D. A type of graph with weighted edges Answer: A What is a bipartite graph? A. A graph with no cycles B. A graph with weighted edges C. A graph with two sets of vertices such that each edge connects a vertex from one set to a vertex in the other set D. A graph with multiple edges between vertices Answer: C What is a spanning tree? A. A tree that includes all vertices of a graph B. A tree with no cycles C. A tree with multiple edges between vertices D. A tree with weighted edges Answer: A What is the minimum spanning tree of a graph? A. The smallest tree that includes all vertices of the graph B. The tree with the minimum weight among all possible spanning trees of the graph C. The tree with the maximum weight among all possible spanning trees of the graph D. A tree that includes only a subset of the vertices of the graph Answer: B
Subjective Short Notes
Midterm & Finalterm Prepration
Past papers included
Download PDF
What is a vertex in a graph? A vertex, also known as a node, is a fundamental unit of a graph that represents an entity or object. What is an edge in a graph? An edge, also known as an arc, is a connection between two vertices that represents a relationship between them. What is a directed graph? A directed graph is a graph where the edges have a direction or orientation. What is an undirected graph? An undirected graph is a graph where the edges have no direction or orientation. What is a weighted graph? A weighted graph is a graph where the edges have a numerical value assigned to them. What is a connected graph? A connected graph is a graph where there is a path between any two vertices in the graph. What is a cycle in a graph? A cycle is a sequence of vertices and edges that starts and ends at the same vertex. What is a tree? A tree is a connected acyclic graph, which means that there are no cycles in the graph. What is a bipartite graph? A bipartite graph is a graph where the vertices can be divided into two sets, such that each edge connects a vertex from one set to a vertex in the other set. What is a path in a graph? A path is a sequence of vertices and edges that connects two vertices in a graph.