
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Example: User will input the start node and particular level information, such as,
Input: Start node a , level 0 ; Output: a Input: Start node a , level 1 ; Output: b, d Input: Start node b , level 1 ; Output: c, e
Hints: First implement or represent a graph , use a graph class along with necessary member variables and functions [Mark: 10] Implement appropriate graph traversal algorithm ( BFS or DFS ) to show / perform required output or task. First identify which algorithm you need to implement the above task. [Mark: 10]
You can use one and only graph traversal slide. Not anything else, such as, internet or notes or else!
Good Luck