UGC NET Computer Science Data Structures Previous Year Questions (PYQs) – Page 4 of 9

UGC NET Computer Science Data Structures Previous Year Questions (PYQs) – Page 4 of 9

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations
Reset
Showing 83 questions
logo
🎓 UGC NET Computer Science📅 Year: 2019📚 Computer🏷 Data Structures

Consider the following steps:

$S_1$: Characterize the structure of an optimal solution

$S_2$: Compute the value of an optimal solution in bottom-up fashion

Which of the step(s) is/are common to both dynamic programming and greedy algorithms?


1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2024📚 Computer🏷 Data Structures

Match List-I with List-II.
 List-I
 List-II

 A. Dijkstra’s Algorithm
 I. Find the shortest path between all pairs of vertices in a graph with positive or negative edge weights
 B. Floyd-Warshall Algorithm
 II. Finds the shortest path in a weighted graph with non-negative edge weights

 C. Bellman-Ford Algorithm

III. Sorts elements by repeatedly moving them past neighboring elements that are smaller

 
 D. Prim’s Algorithm

IV. Determines the strongly connected components in a directed graph

 
Choose the correct answer from the options given below.

1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2019📚 Computer🏷 Data Structures

Consider the following properties with respect to a flow network $G=(V,E)$ in which a flow is a real-valued function $f:V\times V\to R$:

$P_1$: For all $u,v\in V,\ f(u,v)=-f(v,u)$

$P_2$: $\sum_{v\in V} f(u,v)=0$ for all $u\in V$

Which one of the following is/are correct?


1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2022📚 Computer🏷 Data Structures

In a ______ the left and right subtrees for any given node, differ in height by more than one.

1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2022📚 Computer🏷 Data Structures

For the graph; the following sequences of depth first search $(DFS)$ are given


(A) $abcghf$

(B) $abfchg$

(C) $abfhgc$

(D) $afghbc$

Which of the following is correct?

1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2024📚 Computer🏷 Data Structures

Arrange the following steps in the correct order to solve the Knapsack problem using Dynamic Programming.

(A) Define the base case when the capacity is zero $(0)$ or no items are left to consider
(B) Compute the maximum value that can be obtained using items up to the $i$-th item and a knapsack capacity of $0$
(C) Identify subproblems and their dependencies based on items weights and values
(D) Initialize a table to store results of subproblems
(E) Iterate through each item and each possible capacity to fill the table

Choose the correct answer from the options given below :


1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2019📚 Computer🏷 Data Structures

What is the worst case running time of Insert and Extract-min, in an implementation of a priority queue using an unsorted array? Assume that all insertions can be accommodated.


1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2019📚 Computer🏷 Data Structures

In a B-Tree, each node represents a disk block. Suppose one block holds $8192$ bytes. Each key uses $32$ bytes. In a B-tree of order $M$ there are $M-1$ keys. Since each branch is on another disk block, we assume a branch is of $4$ bytes. The total memory requirement for a non-leaf node is:

1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2019📚 Computer🏷 Data Structures

Give asymptotic upper and lower bound for $T(n)$ given below. Assume $T(n)$ is constant for $n\le 2$.

$T(n)=4T(\sqrt n)+\lg^2 n$


1
2
3
4

logo
🎓 UGC NET Computer Science📅 Year: 2019📚 Computer🏷 Data Structures

Consider a weighted directed graph. The current shortest distance from source $S$ to node $x$ is represented by $d[x]$. Let $d[v]=29,\ d[u]=15,\ w[u,v]=12$. What is the updated value of $d[v]$ based on current information?

1
2
3
4

UGC NET Computer Science


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

UGC NET Computer Science


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Ask Your Question or Put Your Review.

loading...