FDS QB
FDS QB
1. Give the definition of data structure, some examples of data structure and
applications of it.
2. Define algorithm, time and space complexity and give time complexity of linear loop,
logarithmic loop, and quadratic loop.
3. Describe in detail Classification of Data structures.
4. Define the term algorithm and discuss the two design approaches of algorithm and
write an algorithm to find the larger of two numbers.
Assignment - II
Unit 2: Arrays and Linked List
1. Write the algorithm to insert an Element in the Middle of an Array.
2. Write the algorithm for inserting a Node at the Beginning of a Linked List.
3. Explain the concept of doubly linked list.
4. Make a comparison between a linked list and a linear array. Which one will you
prefer to use and when?
Assignment - III
Unit 3: Stack and Queues
1. Explain the push, pop operations with examples.
2. Explain the enqueue and dequeue operations in a queue.
3. What is the difference between stacks and queues in terms of their operations and
use cases?
4. Write the algorithm for queue insert and delete operations and explain these
operations with the help of example.
Assignment - IV
Unit 4: Trees
Assignment - V
Unit 5: Graphs
3. Consider the graph given below. And write the adjacency matrix of G.
4. What is the transitive closure of a directed graph? How is it useful?
Assignment - VI
Unit 6: Sorting and Searching
4. Explain the concept of merge sort and show it using following example.