BIM Old Questions
BIM Old Questions
14. Create a max heap from the following set of elements showing all the steps with explanation.
2, 8, 6, 1, 10, 15, 3, 12, 11
15. Sort the following data using Quick Sort.
10, 1234, 9, 7234, 67, 9181, 733, 197, 7, 3
Group 'C'
Comprehensive Answer Questions: [2*5=10]
16. Why do we need to balance the height of BST? Describe the need and types of rotations in AVL
tree.
17. How B+ tree is different from B tree? Explain.
TRIBHUVAN UNIVERSITY
FACULTY OF MANAGEMENT F.M.: 40
Office of the Dean P.M.: 20
August 2021 Time:- 2 hrs
BIM/Fourth Semester/IT 218: DSA with Java
Group'A'
Brief answer questions.[10*1=10]
Group 'C'
Exercise Problems:[5*4=20]
11. Write a java class to implement stack with push and pop functions.
12. Write a method to insert a node in circular doubly linked list at end. Also make appropriate
assumptions.
13. Write a hash method to insert following data in a Hash Table of size 10:
24, 20, 37, 84, 50, 47, 67 and 74
14. Write java function or algorithm for finding, the minimum spanning tree using Kruskal's
algorithm.
15. Explain topological sort with example.
Group 'C'
16. Is O(n2) algorithm better than O(nlogn) algorithm? Explain with example.
17. Write limitation of binary search tree? Explain why concept of slaying used in trees?
TRIBHUVAN UNIVERSITY
FACULTY OF MANAGEMENT F.M.: 40
Office of the Dean P.M.: 20
July 2022 Time:- 2 hrs
(Make up)
BIM/Fourth Semester/IT 218: DSA with Java
Group'A'
Brief answer questions.[10*1=10]
Exercise Problems:[5*4=20]
11. Write java function to demonstrate push, pop and traversal operations of stack.
12. Write a java function to insert an element at specific position in a doubly linked list.
13. Create a max heap from the following: Show all steps.
17, 27, 16, 29, 35, 20, 75, 18, 35
14. Write a hash function to insert element to list.
15. Sort the following data using Radix Sort: Show all steps.
23, 76, 53, 40, 67, 1, 212, 21
Group 'C'
16. What is B tree? What are the benefits of B tree over Binary Search Tree?
17. How cycle in a graph can be detected? Explain depth first search.
TRIBHUVAN UNIVERSITY
FACULTY OF MANAGEMENT F.M.: 40
Office of the Dean P.M.: 20
September 2017 Time:- 2 hrs
BIM/Fourth Semester/IT 218: DSA with Java
Group'A'
Brief answer questions.[10*1=10]
Group 'C'
16. What is problem with Binary tree? Explain self-adjusting tree with example.
17. What is the limitation of B-tree? How is element of B tree deleted? Explain with example.
TRIBHUVAN UNIVERSITY
FACULTY OF MANAGEMENT F.M.: 40
Office of the Dean P.M.: 20
September 2016 Time:- 2 hrs
BIM/Fourth Semester/IT 218: DSA with Java
Group'A'
Brief answer questions.[10*1=10]
15. Show the steps to sort given data using Merge Sort:
36, 48, 23, 59, 68, 44, 97, 99, 91, 18, 33
Group 'C'
16. Define graph. Write Dijkstra's algorithm to find shortest path in graph with example.
17. Explain B-tree of order 3 with example.