CS502 Final Term Solved MCQs with References by Moaaz
- Type
- Final term past paper
- Course
- CS502 Fundamentals of Algorithms
- Size
- PDF 2.6 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 46. Download the file for all 46 pages.
Q1. An optimization problem is one in which you want to find, (1 marks)
Correct answer: The best solution (Page 97)
Q2. Although it requires more complicated data structures, Prim's algorithm for a minimum spanning tree is better than Kruskal's when the graph has a large number of vertices. (1 marks)
Q3. If a problem is in NP, it must also be in P. (1 marks)
Correct answer: unknown (Page 173)
Q4. What is generally true of Adjacency List and Adjacency Matrix representations of graphs? (1 marks)
Correct answer: Lists require less space than matrices but take longer to find the weight of an edge (v1,v2)
Q5. If a graph has v vertices and e edges then to obtain a spanning tree we have to delete (1 marks)
Correct answer: None of these
Q6. Maximum number of vertices in a Directed Graph may be |V2| (1 marks)
Q7. The Huffman algorithm finds a (n) _____________ solution. (1 marks)
Q8. The Huffman algorithm finds an exponential solution (1 marks)
Correct answer: False
Q9. The Huffman algorithm finds a polynomial solution (1 marks)
Correct answer: False
Q10. The greedy part of the Huffman encoding algorithm is to first find two nodes with larger frequency. (1 marks)
Correct answer: False (Page 100)
Q11. The codeword assigned to characters by the Huffman algorithm have the property that no codeword is the postfix of any other. (1 marks)
Correct answer: True (Page 101)
Q12. Huffman algorithm uses a greedy approach to generate a postfix code T that minimizes the expected length B (T) of the encoded string. (1 marks)
Correct answer: False (Page 102)
Q13. Shortest path problems can be solved efficiently by modeling the road map as a graph. (1 marks)
Correct answer: True (Page 153)
Q14. Dijkestra’s single source shortest path algorithm works if all edges weights are non-negative and there are negative cost cycles. (1 marks)
Correct answer: False (Page 159)
Q15. Bellman-Ford allows negative weights edges and negative cost cycles. (1 marks)
Correct answer: False (Page 159)
Q16. The term “coloring” came form the original application which was in architectural design. (1 marks)
Correct answer: False (Page 176)
Q17. In the clique cover problem, for two vertices to be in the same group, they must be adjacent to each other. (1 marks)
Correct answer: True (Page 176)
Q18. Dijkstra’s algorithm is operates by maintaining a subset of vertices (1 marks)
Correct answer: True (Page 155)
Q19. The difference between Prim’s algorithm and Dijkstra’s algorithm is that Dijkstra’s algorithm uses a different key. (1 marks)
Correct answer: True ( Page 156)
Related CS502 files
All CS502 files →- CS502 Final Term Solved MCQs by Junaid Final term PDF 2.3 MB
- CS502 Final Term Past Paper 5 Final term PDF 134 KB
- CS502 Final Term Solved Subjective with References (Word) by Moaaz Final term DOC 1.1 MB
- CS502 Final Term MCQs and Subjective by Moaaz Final term RAR 4.4 MB
- CS502 Highlighted Handouts Set 2 Highlighted PDF 1.7 MB
- CS502 Quiz 3 Set 3 by VU Topper RM Quiz PDF 744 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.