- Type
- Midterm past paper
- Course
- CS502 Fundamentals of Algorithms
- Size
- PDF 9.8 MB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 1, 2, 3 of 650. Download the file for all 650 pages.
An optimization problem is one in which you want to find,
- Not a solution
- An algorithm
- Good solution
- The best solution
In ________ algorithm, at any time, the subset of edges A forms a sing
- Kruskal's
- Prim's
- Both Kruskal's and Prim's
- None of the given
Counting sort assumes that the numbers to be sorted are in the range
- k to n where n is large
- 1 to k where k is small
- k to n where k is small
- k to n where n is small
In Dynamic Programming approach, we do not store the solution to ea problem in case if it reappears.
- True
Shortest path problems can be solved efficiently by modeling the road graph.
- True
- False
Adding an edge to a free tree creates.
- A cycle
- A complete MST
- A partial MST
- A shortest path
Although it requires more complicated data structures, Prim's algorithm minimum spanning tree is better than Kruskal's when the graph has a of vertices.
- True
- False
In Prim's algorithm, we start with the root vertex r; it can be any verte
- True
- False
In the clique cover problem, for two vertices to be in the same group, t adjacent to each other.
- True
- False
According to parenthesis lemma. vertex u is a descendent of v vertex i
- [d[u], f[u]] ⊆ [d[v], f[v]] [d[ ] f[ ]] ⊇ [d[ ] f[ ]]
Dynamic Programming is a problem-solving approach in which ______
- Problem is solved in Zero time
- Solution is developed only at final stage
- Both are correct
- Both are incorrect
Networks are ________ in the sense that is possible from any location network to reach any other location in the digraph.
- Complete
- Incomplete
- Not graphs
- Transportation
We say that two vertices u and v are mutually not reachable if u can re vice versa.
- True
- False
We say that two vertices u and v are mutually ________ if u can reach versa.
- Crossed
- Forward
- Reachable
- Nor Reachable
Consider three matrices X, Y, Z of dimensions 1 × 2, 2 × 3, 3 × 4 respe number of multiplications of X(YZ) is:
- 16
- 23
Related CS502 files
All CS502 files →- CS502 Midterm Past Papers by Attiq Kundi Midterm PDF 2.6 MB
- CS502 Midterm Solved File 2 by Team Hadi Midterm PDF 3.7 MB
- CS502 Midterm Solved Subjective with References Set 2 by Moaaz Midterm DOCX 161 KB
- CS502 Midterm Solved File 3 by Team Hadi Midterm PDF 6.6 MB
- CS502 Highlighted Handouts Set 3 Highlighted PDF 1.7 MB
- CS502 Important Topics Quiz PDF 299 KB
Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.