Bachelors Level/Second Year/Third Semester/Science csit/third semester/data structures and algorithms/syllabus wise questions

B.Sc Computer Science and Information Technology

Institute of Science and Technology, TU

Data Structures and Algorithms (CSC211)

Year Asked: 2075, syllabus wise question

Introduction to Data Structures & Algorithms
1.
Explain concept of divide and conquer algorithm. Hand test quick sort algorithm with array of numbers (78, 34, 21, 43, 7, 18, 9, 56, 38, 19). What is time complexity of quick sort algorithm? [10]
2.
What do you mean by complexity of algorithm? How do you find time complexity? [5]
3.
How do you implement binary search algorithm? What is time complexity of this algorithm? [5]
4.
Write short notes on: a. Dynamic memory allocation b. Game tree [5]
Lists
1.
What are benifits of using linked list over array? How can you insert a node in a singly linked list? [5]
Recursion
1.
Define recursive algorithm? How do you implement recursive algorithm while writing computer programs? [5]
Searching and Hashing
1.
What is hashing? Discuss rehashing with example. [5]
Stack
1.
How can you use stack to convert an infix expression to postfix? Convert infix expression (A+B)*(C-D) to postfix using stack. [10]
2.
Compare stack with queue. How is linear queue different from circular queue? [5]
3.
What is ADT? Discuss stack as an ADT. [5]
Trees and Graphs
1.
Discuss depth first and breadth first traversal of a graph with suitable example. [10]
2.
How do you traverse a binary tree? Discuss. [5]