Data Structure [Question Bank]



Similar documents
DATA STRUCTURES USING C

PES Institute of Technology-BSC QUESTION BANK

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

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

10CS35: Data Structures Using C

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.

Data Structures. Level 6 C Module Descriptor

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

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

2. (a) Explain the strassen s matrix multiplication. (b) Write deletion algorithm, of Binary search tree. [8+8]

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

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

Binary Search Trees CMPSC 122

Algorithms and Data Structures

Converting a Number from Decimal to Binary

Data Structures, Practice Homework 3, with Solutions (not to be handed in)

root node level: internal node edge leaf node Data Structures & Algorithms McQuain

BCS2B02: OOP Concepts and Data Structures Using C++

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

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

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

AP Computer Science AB Syllabus 1

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

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

Binary Search Trees (BST)

Sample Questions Csci 1112 A. Bellaachia

Ordered Lists and Binary Trees

Introduction to Data Structures and Algorithms

Binary Trees and Huffman Encoding Binary Search Trees

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

Java Software Structures

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

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

Exercises Software Development I. 11 Recursion, Binary (Search) Trees. Towers of Hanoi // Tree Traversal. January 16, 2013

INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY

Data Structures UNIT III. Model Question Answer

Exam study sheet for CS2711. List of topics

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

Data Structures and Algorithms

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

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

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

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

Data Structures and Data Manipulation

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

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

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

Previous Lectures. B-Trees. External storage. Two types of memory. B-trees. Main principles

Data Structures Fibonacci Heaps, Amortized Analysis

Mathematics for Algorithm and System Analysis

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

Data Structures Using C++

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

Data Structures and Algorithms Written Examination

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

Objected oriented Programming: C++ Unit 1 1. Introduction 1.1. Introduction to Object Oriented Programming C++ fundamentals.

A binary search tree is a binary tree with a special property called the BST-property, which is given as follows:

Data Structure with C

Social Media Mining. Graph Essentials

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING LESSON PLAN

Algorithms and data structures

Analysis of Algorithms I: Binary Search Trees

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

Parallelization: Binary Tree Traversal

TREE BASIC TERMINOLOGIES

Chapter 3: Restricted Structures Page 1

CSC148 Lecture 8. Algorithm Analysis Binary Search Sorting

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

B-Trees. Algorithms and data structures for external memory as opposed to the main memory B-Trees. B -trees

How To Create A Tree From A Tree In Runtime (For A Tree)

Binary Heap Algorithms

COMPUTER SCIENCE. Paper 1 (THEORY)

Analysis of a Search Algorithm

Algorithms Chapter 12 Binary Search Trees

The Union-Find Problem Kruskal s algorithm for finding an MST presented us with a problem in data-structure design. As we looked at each edge,

EE602 Algorithms GEOMETRIC INTERSECTION CHAPTER 27

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

ML for the Working Programmer

ER E P M A S S I CONSTRUCTING A BINARY TREE EFFICIENTLYFROM ITS TRAVERSALS DEPARTMENT OF COMPUTER SCIENCE UNIVERSITY OF TAMPERE REPORT A

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)

Chapter 14 The Binary Search Tree

CS211 Spring 2005 Final Exam May 17, Solutions. Instructions

JAWAA: Easy Web-Based Animation from CS 0 to Advanced CS Courses

UIL Computer Science for Dummies by Jake Warren and works from Mr. Fleming

Module 2 Stacks and Queues: Abstract Data Types

Common Data Structures

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

Application of Stacks: Postfix Expressions Calculator (cont d.)

CompSci-61B, Data Structures Final Exam

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

1/1 7/4 2/2 12/7 10/30 12/25

CS711008Z Algorithm Design and Analysis

Class Overview. CSE 326: Data Structures. Goals. Goals. Data Structures. Goals. Introduction

Why? A central concept in Computer Science. Algorithms are ubiquitous.

G. H. RAISONI COLLEGE OF ENGG NAGPUR-16 Session DEPARTMENT CSE Semester IV SUBJECT DSPD

ADTs,, Arrays, Linked Lists

Data Structures. Chapter 8

Binary Search Trees 3/20/14

GRAPH THEORY LECTURE 4: TREES

Sorting Algorithms. Nelson Padua-Perez Bill Pugh. Department of Computer Science University of Maryland, College Park

Transcription:

Unit I (Analysis of Algorithms) 1. What are algorithms and how they are useful? 2. Describe the factor on best algorithms depends on? 3. Differentiate: Correct & Incorrect Algorithms? 4. Write short note: Need of algorithms. 5. Explain Divide & Convener approach for Merge short? 6. What is pseudo code convection explain using insertion sort? 7. Write pseudo code for Insertion Sort? 8. Write pseudo code for Merge sort? 9. Write steps for insertion sort? 10. Explain Merge sort with suitable example? 11. Write steps to sort the following data using merge sort ( 77, 32, 45, 99, 83, 22, 107, 54, 11,69, 81, 40, 38) 12. Write steps to sort the following data using Insertion sort ( 77, 32, 45, 99, 83, 22, 107, 54, 11, 69, 81, 40, 38) 13. Write short node: Designing Algorithm by Divide & convener approach. 14. Write short node: Designing Algorithm by Incremental approach. 15. Write algorithm for merge sort. 16. Describe how asymptotic notation gives characteristic of Algorithms efficiency 17. Explain best case, average case and worst case in analysis of algorithms? 18. Write short note: Running time of algorithm. 19. What are Asymptotic Notation and how they are useful in algorithms analysis? 20. What is use of algorithm analysis? How it is carried out? Define Big Oh notation? 21. Differentiate: Big Oh and Oh notation. 22. Differentiate: Big Oh and notation. 23. Differentiate: Small Oh and notation. 24. Explain Asymptotic tight bound in detail? 25. Describe relations between asymptotic functions? Sandip Patel (ldrp) Page 1

Unit II (Introduction to Data Structures) 26. What is data structure? Explain types of data structure in detail? 27. Explain String Manipulation with suitable example? 28. Write & explain any pattern matching algorithm for string. 29. Distinguish storage representation of string with suitable example? 30. What is text handling? Explain any five text handling command with suitable examples? 31. Write short note: KWIC Indexing. 32. Explain &Write rules for KWIC Indexing? 33. Explain the storage structure of KWIC Indexing with suitable example? Sandip Patel (ldrp) Page 2

Unit III (Linear Data Structures) 34. Describe the storage structure of array? 35. Differentiate: Array & Structure. 36. Explain importance of structure & array of structure? 37. Write algorithm: Operation on stack. 38. Describe the application of stack with suitable example. 39. Write algorithm/ program for Infix to postfix conversion. 40. Evaluate the following postfix operation: 3, 5, +, 4,, 6, / 41. Write short note: Applications of Queue. 42. Differentiate: Simple Queue Vs Circular Queue. 43. Write conditions to check circular queue is full or not? 44. Write algorithm to display in circular queue? 45. Write algorithm/ program to insert and delete and element from simple queue (Array Implementation)? 46. Write algorithm/ program to insert and delete and element from Circular queue (Array Implementation)? 47. Write algorithm to swap element on deletion in simple queue? 48. Differentiate: Simple Queue Vs Priority Queue. 49. Implement priority queue program using Array? 50. Explain how priority queue can implement using Cursor Implementation? 51. Write algorithm to implement priority queue using cursor implementation? 52. Explain Priority Queue with example? 53. Write algorithm/ program for following operation in Singly Linked linear List or Doubly Linked Linear List. a. FIFO Implementation b. LIFO Implementation c. Sum of data in elements d. Delete a node from Intermediate Location e. Count the element in list. f. Merge two linked list g. Union of two linked list h. Intersect of two linked list. i. Sorting linked list j. Reverse list 54. Write algorithm to swap two adjacent nodes in Linked linear list (By Address)? 55. Explain Application of linked list? Write an algorithm/ program to perform sum of two polynomials using linked list? 56. Explain circular linked list with suitable example? 57. Write algorithm for multiplication of two polynomials? 58. Write short note: Multidimensional Array? 59. What are triangular array explain with suitable example? 60. Write advantages of circular queue as compared to simple queue using Sandip Patel (ldrp) Page 3

example? Unit IV (Nonlinear Data Structure) 61. What is non linear data structure and how it differs from linear data structure describe with suitable example? 62. What are Graphs? How they can be represented? 63. Distinguish the following terms a. Vertex b. Edges c. Arcs d. Loops e. Isolated Node 64. What do you mean by simple graph? Explain with suitable example? 65. Write Rules for Multi Graph? 66. Differentiate: Connected Graph & Unconnected Graph 67. Explain the following terms: a. Weighted Graph b. Null Graph c. Paths d. Cycle 68. What is path also explain various terms in concern to path? 69. Explain Directed graph? What are Indegree, Outdegree and Degree of node in detail? 70. Write short note: Trees. 71. What are general trees? How binary tree are more applicable then general tree? 72. Explain the following terms in context to Tree. a. Leaves b. Parent c. Sibling d. Root e. Height f. Width g. Level 74. What is Binary Search Tree? How they differ from General Trees and also explain various traversal techniques of Binary Search Tree? 75. Create a Binary Search tree for the following data and do Inorder, Preorder & Postorder traversal of the tree. (40, 60, 25, 50, 30, 70, 35, 10, 55, 65, 12). Sandip Patel (ldrp) Page 4

76. Create a Binary Search Tree from the following data: ABCDEFG and do converse Inorder, converse preorder and converse Postorder traversal? 77. Describe forms of representation of Binary Search Tree with suitable examples? 78. Write and interactive algorithm/ program to traverse a Binary Search Tree in a. Inorder b. Preorder c. Postorder 79. Write and Recursive algorithm/ program to traverse a Binary Search Tree in a. Inorder b. Preorder c. Postorder 80. Write an algorithm/ program to create a Binary Search tree? Sandip Patel (ldrp) Page 5