Unit Wise Important Questions UNIT-1(10M) Unit-1 (2M & 3M)

Similar documents
Krishna Institute of Engineering & Technology, Ghaziabad Department of Computer Application MCA-213 : DATA STRUCTURES USING C

DATA STRUCTURES USING C

PES Institute of Technology-BSC QUESTION BANK

5. A full binary tree with n leaves contains [A] n nodes. [B] log n 2 nodes. [C] 2n 1 nodes. [D] n 2 nodes.

10CS35: Data Structures Using C

1) The postfix expression for the infix expression A+B*(C+D)/F+D*E is ABCD+*F/DE*++

Java Software Structures

To My Parents -Laxmi and Modaiah. To My Family Members. To My Friends. To IIT Bombay. To All Hard Workers

Data Structure [Question Bank]

CSE 326, Data Structures. Sample Final Exam. Problem Max Points Score 1 14 (2x7) 2 18 (3x6) Total 92.

Unit Write iterative and recursive C functions to find the greatest common divisor of two integers. [6]

1. The memory address of the first element of an array is called A. floor address B. foundation addressc. first address D.

International Journal of Software and Web Sciences (IJSWS)

Questions 1 through 25 are worth 2 points each. Choose one best answer for each.

Data Structure and Algorithm I Midterm Examination 120 points Time: 9:10am-12:10pm (180 minutes), Friday, November 12, 2010

Exam study sheet for CS2711. List of topics

Module 2 Stacks and Queues: Abstract Data Types

Chapter 8: Bags and Sets

Sample Questions Csci 1112 A. Bellaachia

GUJARAT TECHNOLOGICAL UNIVERSITY, AHMEDABAD, GUJARAT. Course Curriculum. DATA STRUCTURES (Code: )

Abstract Data Type. EECS 281: Data Structures and Algorithms. The Foundation: Data Structures and Abstract Data Types

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING LESSON PLAN

Data Structures and Algorithms V Otávio Braga

Analysis of a Search Algorithm

Data Structures and Algorithm Analysis (CSC317) Intro/Review of Data Structures Focus on dynamic sets

Binary Heap Algorithms

AP Computer Science AB Syllabus 1

Algorithms and Data Structures

Home Page. Data Structures. Title Page. Page 1 of 24. Go Back. Full Screen. Close. Quit

Tables so far. set() get() delete() BST Average O(lg n) O(lg n) O(lg n) Worst O(n) O(n) O(n) RB Tree Average O(lg n) O(lg n) O(lg n)

Linked Lists, Stacks, Queues, Deques. It s time for a chainge!

TREE BASIC TERMINOLOGIES

CHAPTER 4 ESSENTIAL DATA STRUCTRURES

COMPUTER SCIENCE. Paper 1 (THEORY)

Introduction to Data Structures

CSE373: Data Structures and Algorithms Lecture 1: Introduction; ADTs; Stacks/Queues. Linda Shapiro Spring 2016

From Last Time: Remove (Delete) Operation

MAX = 5 Current = 0 'This will declare an array with 5 elements. Inserting a Value onto the Stack (Push)

University of Pune Revised Structure for the B. Sc. (Computer Science) Course (Second Year to be implemented from Academic Year )

Persistent Binary Search Trees

Data Structures Using C++ 2E. Chapter 5 Linked Lists

Binary Search Trees. Data in each node. Larger than the data in its left child Smaller than the data in its right child

Data Structures. Level 6 C Module Descriptor

CompSci-61B, Data Structures Final Exam

Ordered Lists and Binary Trees

Quiz 4 Solutions EECS 211: FUNDAMENTALS OF COMPUTER PROGRAMMING II. 1 Q u i z 4 S o l u t i o n s

Data Structures and Data Manipulation

Sorting revisited. Build the binary search tree: O(n^2) Traverse the binary tree: O(n) Total: O(n^2) + O(n) = O(n^2)

AP Computer Science Java Mr. Clausen Program 9A, 9B

Binary Heaps * * * * * * * / / \ / \ / \ / \ / \ * * * * * * * * * * * / / \ / \ / / \ / \ * * * * * * * * * *

S. Muthusundari. Research Scholar, Dept of CSE, Sathyabama University Chennai, India Dr. R. M.

A Comparison of Dictionary Implementations

BCS2B02: OOP Concepts and Data Structures Using C++

ECE 250 Data Structures and Algorithms MIDTERM EXAMINATION /5:15-6:45 REC-200, EVI-350, RCH-106, HH-139

\Mankinds's progress is measured by the number of. Elementary data structures such as stacks, queues,

Chapter 3: Restricted Structures Page 1

Syllabus for Computer Science. Proposed scheme for B.Sc Programme under Choice Based Credit System

Binary Search Trees CMPSC 122

Heaps & Priority Queues in the C++ STL 2-3 Trees

A TOOL FOR DATA STRUCTURE VISUALIZATION AND USER-DEFINED ALGORITHM ANIMATION

Course: Programming II - Abstract Data Types. The ADT Stack. A stack. The ADT Stack and Recursion Slide Number 1

KITES TECHNOLOGY COURSE MODULE (C, C++, DS)

Data Structures UNIT III. Model Question Answer

7.1 Our Current Model

Outline BST Operations Worst case Average case Balancing AVL Red-black B-trees. Binary Search Trees. Lecturer: Georgy Gimel farb

Algorithms and data structures

CompuScholar, Inc. Alignment to Utah's Computer Programming II Standards

A binary heap is a complete binary tree, where each node has a higher priority than its children. This is called heap-order property

Lecture 6: Binary Search Trees CSCI Algorithms I. Andrew Rosenberg

Data Structures and Algorithms

Lab Manual. Data Structures (Pr): COT-213 Data Structures (P): IT-215

EE2204 DATA STRUCTURES AND ALGORITHM (Common to EEE, EIE & ICE)

Atmiya Infotech Pvt. Ltd. Data Structure. By Ajay Raiyani. Yogidham, Kalawad Road, Rajkot. Ph : ,

Introduction Advantages and Disadvantages Algorithm TIME COMPLEXITY. Splay Tree. Cheruku Ravi Teja. November 14, 2011

Common Data Structures

CS104: Data Structures and Object-Oriented Design (Fall 2013) October 24, 2013: Priority Queues Scribes: CS 104 Teaching Team

Binary Trees and Huffman Encoding Binary Search Trees

Bangalore University B.Sc Computer Science Syllabus ( Semester System)

Binary Search Trees. A Generic Tree. Binary Trees. Nodes in a binary search tree ( B-S-T) are of the form. P parent. Key. Satellite data L R

Lecture Notes on Binary Search Trees

Binary Heaps. CSE 373 Data Structures

6 March Array Implementation of Binary Trees

Structure for String Keys

The following themes form the major topics of this chapter: The terms and concepts related to trees (Section 5.2).

Chapter 14 The Binary Search Tree

Data Structures and Algorithms Written Examination

Data Structures and Algorithms Stacks and Queues

Glossary of Object Oriented Terms

Queues Outline and Required Reading: Queues ( 4.2 except 4.2.4) COSC 2011, Fall 2003, Section A Instructor: N. Vlajic

Introduction to Data Structures and Algorithms

Learning Outcomes. COMP202 Complexity of Algorithms. Binary Search Trees and Other Search Trees

Analysis of Algorithms I: Binary Search Trees

Algorithms and Data Structures Written Exam Proposed SOLUTION

Converting a Number from Decimal to Binary

Introduction to Programming System Design. CSCI 455x (4 Units)

Binary Search Trees (BST)

Review of Hashing: Integer Keys

A binary search tree or BST is a binary tree that is either empty or in which the data element of each node has a key, and:

Any two nodes which are connected by an edge in a graph are called adjacent node.

Transcription:

Unit Wise Important Questions UNIT-1(10M) 1. Define Linked List? Explain the operations on Linked List? 2. Define Double Linked List? Explain the operations on Double Linked List? 3. Define Circular Linked List? Explain the operations on Circular Linked List? 4. Define sparse Matrices & Explain the Linked representation of Sparse Matrix? 5. Write the differences between Linked list &Array? Unit-1 (2M & 3M) 1. Define Algorithm? What are the Characteristics of Algorithm? 2. Define Recursion? Explain design methodology & imp of recursive of algorithm? 3. Difference between recursion & iteration? 4. Define Abstraction & ADT 5. Define ADT for Arrays 6. Define Frequency count & obtain the frequency for the following code Void fun() { a=0; for(i=0;i<n;i++) { a=a+i; } Printf( %d,a); } 7.Define Time Complexity? Write an algorithm to find smallest element in array of integers & analyze its Time Complexity 8.Define Space Complexity? Compute the space needed by the following algorithm justify your answer

Alg: Sum(a,n) s :=0.0; for i:=1 to ndo s : =s+a[i]; returns; 9.Define Asymptotic Notation & what are the Asymptotic Notation define them10.write about the classification of Data Structures 11.Define static & Dynamic Data Structures 12. Write about the structures of node in single linked list 13. Write about the structures of node in double linked list 14. Write about the structures of node in circular linked list 15.Differences between single & double linked list 16. What is an Array?syntax of array declaration 17. Define one-dimensional array with an example program 18. Define two-dimensional array with an example program 19. Define Sparse Matrices 20. Write about Sparse Matrix representation

UNIT-2 (10 M) 1. Define Stack ADT? Explain the operations in stack using Arrays with an example program. 2. Define Stack ADT? Explain the operations in stackusing Linked list with an example program. 3. Define Queue ADT? Explain the operations in Queueusing Arrays with an example program. 4. Define Queue ADT? Explain the operations in Queueusing Linked list with an example program. 5. Define Circular Queue ADT? Explain the operations in Circular Queueusing Arrays with an example program. 6. A) Convert the following infix expression to postfix form ( (A-(B+C)*D) $ (E+F) ) B) Write an algorithm to convert infix to postfix expression UNIT-2 ( 2M& 3M ) 1. Define Stack ADT?What are the operations in stack define them 2. Define QueueADT?What are the operations in queue define them 3.Define Circular Queue ADT? What are the operations in circular queue define them 4.DefineDeque ADT? What are the operations in deque define them 5.Write an algorithm for evaluation of postfix 6.Evaluate the following postfix expression 123+* 7.What are the various applications of stack 8.Define Expression? What are types of expression 9.Define infix Expression

10.Define postfix Expression 11.Define prefix Expression 12.Define Stack full operation 13.Define Stack empty operation 14.Define push & pop operations 15. What are the applications of Queue UNIT-3 (10M) 1. A) What is binary tree ADT? Explain about representation of binary tree using arrays B) Explain about representation of binary tree using linked list 2. What is binary tree? Write a program for creation or insertion & deletion of node from binary tree 3. A)Explain difference types of tree traversal techniques b)discuss threaded binary tree in detail 4. A)Construct a heap using for following list of elements 14,12,9,8,7,10,18 b)write an algorithm for insertion & deletion of node in the heap 5. A)Explain about graph traversal b)explain the following terms i)adjacency Matrix of graph. ii)adjacency list of graph UNIT-3 (2M & 3M) 1. Write about the definition of tree 2.Define the following terms. a)root b)parent node c)child node d)leaf node 3.Define the following terms. a)degree of node b)degree of tree c)level of tree

4.Define the following terms. a)level of tree b)height of tree 5.Define the following terms. a)predecessor b)successor c)internal & external nodes d)siblings 6.Define the following terms. a)full binary tree b)complete binary tree c)left & right skewed trees 7.Define binary tree ADT 8.What are two ways of representing binary tree 9.Whatare six ways to traverse a tree. According to computing point of view.what are three different ways for traversing a tree 10.Define in-order traversal 11. Define pre-order traversal 12. Define post-order traversal 13.What is the purpose of threaded binary tree 14. What are advantages & disadvantages of threaded binary tree 15. Define priority queue? What are types of priority queue 16. Define Max triorty queue ADT 17. Define heap & types of heap 18. Comparisons between graph & tree 19. Define graph? What are the types of graph 20. What are properties of graph.define them 21. Define the following terms

a)weighted graph b)path c)cycle 22. Define the following terms a)component b)in & out degrees c)sort loop 23. Define graph ADT 24. What are applications of graph UNIT-4( 10M) 1. A)Explain about linear search with program B)Explain about binary search 2. What is hashing? Explain various hashing methods with suitable examples 3. Show the hash table entries for given data set using linear probing & quadratic probing 12,45,67,88,27,78,20,62,36,55 4. A)Explain selection sort technique with example b)explain insertion sort technique with example 5. A)Explain quick sort technique with example B)Explain radix sort technique with example 6. Explain heap sort technique with example UNIT-4 (2M & 3M) 1.What are advantages & disadvantages of linear searching 2.What are advantages & disadvantages of linear searching 3. Comparison between linear & binary searching 4. Define hash table 5. Define hashing & hash function 6. Define the followingterms a)division method b)mid square

7. Define the following terms a)multiplicative hash function b)digit holding 8. Define collision? What are types of collision handling techniques 9. Define sorting? What are the types of sorting 10. Which are sorting techniques based on divide & conquer method 11. Define dictionary & various operations 12. What is the need of sorting? What are applications of sorting 13. Write about the efficiency of selection sort 14. Write about the efficiency of insertion sort 15. Write about the efficiency of quick sort 16. Write about the efficiency of linear sort 17. Write about the efficiency of binary sort UNIT-5 (10 m) 1. A)What is the purpose of binary search tree? Explain the operations in binary search tree. b)what is BSTADT. Draw BST for the following data 10,08,15,12,13,07,09,17,20,18,04,05 2. A)What is AVL tree? Explain with example b)for each of following lists, construct an AVL tree by inserting their successively starting with the empty tree. a)1,2,3,4,5,6. b)6,5,4,3.,2,1. 3. A)Construct a binary tree of orders for the following data. 3,14,7,18,5,11,17,13,6,23,12,20,26,4,16,18,24,25,19. 4. A)Describe Splay Trees b)describe Red Black Trees

5. Give the tail indexes used by KMP algorithm for following patterns a)aaab b)aabaacaababa c)abracadabra d)astracastrsa 1.What is binary search tree UNIT-5 (2M & 3M) 2. Write an algorithm for insertion of node in binary tree 3. What are the 3 cases which are possible from deletion of element from binary tree 4. Define BST & ADT 5. Define AVL trees 6. Define Balance factor 7. Write about the representation of AVL tree 8. What are different cases to rebalance the AVL tree 9. Define L.L. Rotation with example 10. Define R.R Rotation with example 11. Define L.R Rotation with example 12. Define R.L Rotation with example 13. Define binary tree with example 14. Define multiway search tree 15.What are applications of binary tree

16. Define what are the properties of Red Black Trees statistics the properties of binary trees 17. Define the following terms a) LR R imbalance b)ll R imbalance 18. Define the following terms a) RR R imbalance b)rl R imbalance 19. Define splay trees 20. Define the following terms a)zig-zay case b)zig-zig case c)zig case 21. Comparison between search tree & AVL trees 22. Define trie&it s advantages 23. Define binary trie 24. Define Compressed binary trie 25. Define multiway-tire