DS F24 Assignment2
DS F24 Assignment2
Assignment 2
Name: _______________________________
Section: _____________________________
Instructions:
1. Use first pager as cover page for the assignment.
2. Attempt all questions.
3. Write your answer showing all steps required to perform the task.
4. Assignment must be solved on A4 sheets or Assignment sheets only. Violation will
result to deduction of 10 mark from the scored marks. Submissions will be made
either via portal or in the class.
5. Due Date for Assignment is: 27 November, 2024
6. Late submission will result in 10% deduction in marks.
7. No request for late submissions will be considered after two working days of the
deadline.
No request to review assignment will be considered after 2 working days of the review in
class.
Graphs and Trees
4. A full 5-ary tree has 501 vertices. Find the number of leaves and internal vertices. (10)
5. Draw the spanning tree for this graph by removing the circuits. Draw the spanning tree. (10)
8. Determine the order in which a preorder, inorder and postorder traversal visits the vertices of
the given ordered rooted tree.