Skip to study material

DATA STRUCTURES

Unit V · Trees and Graphs

AR25I Year · II SemesterCSE(AIML)25CS12001

Clear answers, algorithms and worked examples for the current syllabus.

13 topics13 two-mark questions13 five-mark questionsSeparate viva questions

26 questions

Open complete unit for printing / PDF

Questions and answers

  1. 01What is a tree?2 marks
  2. 02Explain tree terminology and common types of binary trees.5 marks
  3. 03What do the two links mean in left-child/right-sibling form?2 marks
  4. 04Explain conversion of a general rooted tree to left-child/right-sibling representation.5 marks
  5. 05State the visitation orders of the three depth-first tree traversals.2 marks
  6. 06Explain preorder, inorder and postorder binary-tree traversals.5 marks
  7. 07What is the binary search tree ordering rule used here?2 marks
  8. 08Define the BST ADT and explain searching.5 marks
  9. 09Where is a new distinct BST key placed?2 marks
  10. 10Explain BST insertion with an example.5 marks
  11. 11What are the three BST deletion cases?2 marks
  12. 12Explain all BST deletion cases with an algorithm.5 marks
  13. 13What is a graph?2 marks
  14. 14Define graphs and explain common graph types.5 marks
  15. 15What does an adjacency-matrix entry represent?2 marks
  16. 16Compare adjacency matrices and adjacency lists.5 marks
  17. 17What exploration rule does DFS follow?2 marks
  18. 18Explain depth-first search with an algorithm and example.5 marks
  19. 19When should a vertex be marked visited in this BFS implementation?2 marks
  20. 20Explain breadth-first search and its queue operations.5 marks
  21. 21Which data structure distinguishes ordinary BFS from iterative DFS?2 marks
  22. 22Compare DFS and BFS with the same graph.5 marks
  23. 23Name operations of a basic graph ADT.2 marks
  24. 24Explain a graph ADT and applications of graphs.5 marks
  25. 25Why is the supplied flight network directed?2 marks
  26. 26Represent the supplied five-city flight network as a directed graph, matrix and lists.5 marks

The 2- and 5-mark labels are practice allocations. Source examination questions retain their actual printed marks.