6.viva

6
R408- Data Structure Lab Manual VIVA QUESTIONS DATA STRUCTURE 1) What is a Data Structure. 2) What are the two types of Data Structures. 3) What are the application of data structures. 4) What are primitive data structures. 5) What are non-primitive data structures 6) What is the difference between a data type and data structure. TIME AND SPACE COMPLEXITY 1. What do you mean by performance analysis and performance measurement 2. What are the two phases of performance analysis 3. How do we analyse the performance of an algorithm 4. What is time complexity 5. Explain what is space complexity ARRAY AND LINKED LISTS 1. What is an array. 2. What are linked lists. 3. What is the difference between array and linked list 4. What are the advantages and disadvantages of linked list. 5. What are the applications of linked list 6. What are the different operations of linked list. 7. How do we insert an element – At the end of linked list. After a specific position At the beginning of linked list. 8. How do we merge two linked list. 9. How do we develop an ascending order linked list. 10. How do we reverse a singly linked list. 1. What are the different types of linked list 1

Upload: aswathy-mohan

Post on 26-Dec-2014

430 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: 6.Viva

R408- Data Structure Lab Manual

VIVA QUESTIONS

DATA STRUCTURE

1) What is a Data Structure.2) What are the two types of Data Structures.3) What are the application of data structures.4) What are primitive data structures.5) What are non-primitive data structures6) What is the difference between a data type and data structure.

TIME AND SPACE COMPLEXITY

1. What do you mean by performance analysis and performance measurement2. What are the two phases of performance analysis3. How do we analyse the performance of an algorithm4. What is time complexity5. Explain what is space complexity

ARRAY AND LINKED LISTS

1. What is an array.2. What are linked lists.3. What is the difference between array and linked list4. What are the advantages and disadvantages of linked list.5. What are the applications of linked list6. What are the different operations of linked list.7. How do we insert an element –

At the end of linked list. After a specific position At the beginning of linked list.

8. How do we merge two linked list.9. How do we develop an ascending order linked list.10. How do we reverse a singly linked list.1. What are the different types of linked list2. What is a doubly linked list Why is it called so?3. What are the applications of doubly linked list4. What is a circular linked list5. What are the advantages and disadvantages of Circular linked list.6. What is a circular doubly linked list.

POLYNOMIAL MANIPULATION AND SPARSE MATRIX

1) How do we represent a polynomial using array and linked list.2) How do we manipulate polynomial addition using array and linked list.3) How do we evaluate a polynomial using array and linked list.4) How do we perform polynomial multiplication using array and linked list.

1

Page 2: 6.Viva

R408- Data Structure Lab Manual5) What is a Sparse Matrix.6) What is a Dense Matrix.7) How do we represent a Sparse Matrix.8) How do we perform Sparse Matrix Addition.9) How do we multiply two sparse matrices.10) How do we find the transpose of a sparse matrix.

STACK AND QUEUE

1. What is a Stack2. What are the different operations on stack3. What are the applications of Stack4. What are the 3 types of notations5. What is the importance of Postfix expression6. How do we convert a infix expression to postfix expression7. Write a logic to convert infix to prefix expression8. How do we evaluate a postfix expression9. How do we convert –

1. postfix to infix2. postfix to prefix

10. How do we implement stack using linked list.11. What is a queue.12. What are the applications of queue.13. What are the difference between stack and queue.14. What are the different types of queues.15. What is a priority queue.16. What is a circular queue.17. What is a dequeue.18. What are the different types of dequeue. What are its applications?19. What is a circular dequeue.20. What are the different types of Priority queues21. What is an ascending priority queue .Give an example.22. What is a descending priority queue.Give an example.23. What type of priority queues are stack and queue.24. How do we implement queue using linked list.25. What are the applications of queue, priority queue, dequeue , circular queue.26. What is the advantage of circular queue over queue.

PROGRAMMING PRINCIPLES ,STRING PATTERN MATCHING AND SORTING

1) What are the principles of Programming2) What do you mean by Internal Documentation3) What do you mean by System Life Cycle.4) What do you mean by String Pattern Matching.5) What are the different methods to store strings.6) Explain one pattern matching algorithm.7) What do you mean by Sorting.8) What are the different types of Sorting9) Explain the logic of Bubble sort. What is the complexity of Bubble sort.

2

Page 3: 6.Viva

R408- Data Structure Lab Manual10) What is the difference between Selection Sort and Bubble Sort. Compare their

complexities also.11) What is the difference between Insertion Sort and Selection Sort.12) What is Merge Sort13) What is the technique used in Merge Sort.14) Comment on the complexity of Merge Sort.15) What is Simple Insertion Sort16) What is Shell Sort17) What do you mean by Address Calculation Sort.18) What is the best case, average case and worst case complexities of insertion

sort.19) What do you mean by Binary Insertion Sort and List Insertion Sort.20) What is the other name for Diminishing Insertion Sort.21) What is Hash Sort.22) What is Radix Sort23) Explain the logic of Merge Sort24) Explain what is K-way Merging25) Which is the best sorting method while considering time and space complexity?26) What is the difference between Quick sort and Merge Sort.27) Compare the complexities of Quick Sort and Merge Sort.28) Which is more efficient :O(n2 ) sort or O(n log n) sort29) What is the other name for Selection Sort30) Which is the best sorting method for small values of n ( n -> number

of elements).31) Which sort has got the best, worst-case behavior?32) What is the relation between Insertion Sort and Merge Sort?33) What is the relation between Merge Sort and Quick Sort?34) What are the two types of tree sort35) What is a heap sort36) What is a Heap37) What are the applications of Heap Trees?38) How do you analyse the complexity of Heap sort

TREE

1. What is a tree2. What is a binary tree3. What is a binary search tree4. How do we insert an element to a binary tree6. How do we insert an element and delete from a binary search tree.7. What are the applications of tree8. What do you mean by the following-

root node degree of a node degree of a tree terminal node non-terminal node siblings level

3

Page 4: 6.Viva

R408- Data Structure Lab Manual edge path depth forest

9. What are completely binary tree10. What are strictly binary tree11. How do we represent graph12. What do you mean by tree traversal13. What is the importance of tree traversal14. Which are the different tree traversal techniques15. What is an Expression tree16. What is a Parse tree17. How do you analyze the efficiency of traversal18. How do we represent an arithmetic expression using binary tree.19. How do we evaluate a parse tree20. Which is the data structure in which Windows OS is working. Justify them.21. How do we represent an postfix expression using tree.

GRAPH1. What is a graph2. What is the difference between a graph and a tree3. What are the applications of grap4. What are the different types of graph5. What is a digraph6. What is dag7. What is a network8. What is a weighted graph9. What is a self loop10. What are parallel edges11. What is a complete graph12. What is acyclic graph13. What is an isolated vertex14. What is meant by degree of a vertex15. What is a pendant vertex16. What is a connected graph17. How do we represent graph18. Which is the best representation while comparing the representations of graph19. What is a adjacency matrix.20. What is the difference between adjacency matrix and path matrix.21. What are the advantages of adjacency matrix representation of graph22. What is a path matrix23. What are the different operations of graph24. What do you mean by graph traversal25. What are the different types of graph traversal26. What are the applications of graph27. What do you mean by shortest path problem.28. Explain Dijkstra’s algorithm29. What is a spanning tree30. Which is the data structure in which Windows OS is working. Justify it

4

Page 5: 6.Viva

R408- Data Structure Lab Manual

5