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



Similar documents
DATA STRUCTURES USING C

PES Institute of Technology-BSC QUESTION BANK

Data Structure [Question Bank]

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.

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

Java Software Structures

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

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

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

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

Algorithms and Data Structures

Exam study sheet for CS2711. List of topics

Data Structures. Level 6 C Module Descriptor

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

BCS2B02: OOP Concepts and Data Structures Using C++

DATABASE DESIGN - 1DL400

Chapter 3: Restricted Structures Page 1

AP Computer Science AB Syllabus 1

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe. Slide 13-1

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

Sample Questions Csci 1112 A. Bellaachia

Chapter 13 Disk Storage, Basic File Structures, and Hashing.

Chapter 13. Disk Storage, Basic File Structures, and Hashing

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

Analysis of a Search Algorithm

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

INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY

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

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

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)

Chapter 13. Chapter Outline. Disk Storage, Basic File Structures, and Hashing

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

Binary Search Trees CMPSC 122

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

Lecture 1: Data Storage & Index

Introduction to Data Structures and Algorithms

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 8: Structures for Files. Truong Quynh Chi Spring- 2013

International Journal of Software and Web Sciences (IJSWS)

Common Data Structures

QUEUES. Primitive Queue operations. enqueue (q, x): inserts item x at the rear of the queue q

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

Binary Heap Algorithms

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

Record Storage and Primary File Organization

Data Structures and Data Manipulation

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

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

Persistent Binary Search Trees

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

Module 2 Stacks and Queues: Abstract Data Types

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

Data Structures UNIT III. Model Question Answer

B+ Tree Properties B+ Tree Searching B+ Tree Insertion B+ Tree Deletion Static Hashing Extendable Hashing Questions in pass papers

CompSci-61B, Data Structures Final Exam

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

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

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

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

Data Structures and Algorithms V Otávio Braga

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING LESSON PLAN

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

Data Structures in the Java API

Data Structures and Algorithms Written Examination

CHAPTER 4 ESSENTIAL DATA STRUCTRURES

Algorithms and data structures

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

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

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

Data Structures and Algorithms Stacks and Queues

A Comparison of Dictionary Implementations

Data Structures Fibonacci Heaps, Amortized Analysis

Converting a Number from Decimal to Binary

Structural Design Patterns Used in Data Structures Implementation

Memory Allocation. Static Allocation. Dynamic Allocation. Memory Management. Dynamic Allocation. Dynamic Storage Allocation

COMPUTER SCIENCE. Paper 1 (THEORY)

Data Structures. Chapter 8

2) What is the structure of an organization? Explain how IT support at different organizational levels.

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

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

Sample Syllabus (C++) CSCI 1301 Introduction to Programming Principles

Lecture 2: Data Structures Steven Skiena. skiena

Stack & Queue. Darshan Institute of Engineering & Technology. Explain Array in detail. Row major matrix No of Columns = m = u2 b2 + 1

AGARWAL COLLEGE & WEB SERVICES TRUST. In Collaboration with KARANATAKA STATE OPEN UNIVERSITY

Chapter 13: Query Processing. Basic Steps in Query Processing

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

INTRODUCTION The collection of data that makes up a computerized database must be stored physically on some computer storage medium.

Ordered Lists and Binary Trees

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

ML for the Working Programmer

Queues and Stacks. Atul Prakash Downey: Chapter 15 and 16

Bachelor of Games and Virtual Worlds (Programming) Subject and Course Summaries

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

CSE 326: Data Structures B-Trees and B+ Trees

Topological Properties

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

University of Dayton Department of Computer Science Undergraduate Programs Assessment Plan DRAFT September 14, 2011

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

TREE BASIC TERMINOLOGIES

Transcription:

Tutorial#1 Q 1:- Explain the terms data, elementary item, entity, primary key, domain, attribute and information? Also give examples in support of your answer? Q 2:- What is a Data Type? Differentiate between primitive data type, abstract data type, and polymorphic data type? Q 3:- What is a Data Type? Differentiate between primitive data type, abstract data type, and polymorphic data type? Q 4:- What is algorithm? What is the criteria that every algorithm must satisfy? Q 5:- What is algorithm complexity? What is the need of measuring the complexity of an algorithm? Q 6:- What are the components of space complexity? Q 7:- What are the components of time complexity? Q 8:- What do you mean by time space trade off among algorithms? Q 9:- Which Notation is popularly used to express the complexity of an algorithm? Describe that Notation? Q 10:- Differentiate between iteration and recursion? http://akashrajak.webs.com 1

Tutorial#2 Q 1:- What is an array? What are different types of arrays? Q 2:- How a linear array is represented in memory? Q 3:- How a two dimensional array is represented in memory? Q 4:- What is a sparse matrix? How sparse matrices can be represented efficiently in memory? Q 5:- What is a Stack? Is Stack a linear or non linear data structure? Q 6:- Can we implement a stack in C whose elements can be of different types? If your answer is yes then how? Q 7:- How Peek() operation differs from pop() operation? Q 8:-While representing a stack using linked lists, we have implemented additional operation dispose() to remove the stack from memory? Why such operation is not implemented for stack represented using an array? Q 9:-Given the following arithmetic expression in infix notation as 12/(7-3)+2*(3+8)-7 Translate this expression into postfix notation and then evaluate it. Q 10:-what do u mean by recursion? Give the classification of recursion and explain it? http://akashrajak.webs.com 2

Tutorial#3 Q 1:- What is a queue? Is queue a linear or non linear data structure? Q 2:- Queue is a special type of list? Comment? Q 3:- How do an array based queue compares with linked queue? Q 4:- Why an operation to check queue overflow is not implemented on linked queue? Q 5:- Can we implement a queue in C whose elements can be of different type? If your answer is yes, then show how? Q 6:- How peek() operation differs from Dequeue() operation? Q 7:-While representing a queue using linked lists, we have implemented additional operation dispose() to remove the stack from memory? Why such operation is not implemented for queue represented using an array? Q 8:-How do a linear queue compares with circular queue? Q 9:-Explain the term D-queue? Q 10:-Explain the term Priority Queue? Application of Priority Queue? http://akashrajak.webs.com 3

Tutorial#4 Q 1:- How do a linear list compare with a linear array? Q 2:- Is it possible in C to implement a heterogeneous list? If, Yes how? Q 3:- What advantages does a doubly linked list have over a linear linked lists? Q 4:- What is the advantage of a header node in a linked list? Q 5:- What will be the complexity of the operation to remove an element from the end of the linear linked list? Q 6:- What will be the complexity of the operation to remove an element in the beginning of the linear linked list? Q 7:-In a circular linked list, how the end of list condition will be tested? Q 8:-Define the term Garbage Collection and Compaction? Q 9:-Differentiate between Linear linked list and circular linked list? Q 10:-Diffentiate between Circular linked list and doubly linked list? http://akashrajak.webs.com 4

Tutorial#5 Q 1:- What do you mean by a complete binary tree? Draw one such binary tree? Q 2:-What is the maximum number of nodes at kth level of binary tree? Q 3:- Why binary trees, usually, are not represented using arrays? Q 4:- Binary search tree combines the best worlds of arrays and linked lists into one structure? Comment? Q 5:- Compare and contrast between a binary and binary search tree? Q 6:- What is a thread? How is it useful? Q 7:-What are the advantages of threading a binary search tree? Q 8:-Define the Huffman algorithm related to tree? Q 9:-Define all the traversal of binary search tree with example? Q 10:-How the height of a binary search tree effects its performance? http://akashrajak.webs.com 5

Tutorial#6 Q 1:- What do you mean by linear search? Explain it with example? Q 2:- What do you mean by binary search? Explain it with example? Q 3:- What are the limitations of direct address tables? Q 4:- What is a hash table? What are the advantages of hash tables over direct address tables? Q 5:-What is Hashing? Q 6:- What is a hash function? What should be the characteristics of a good hash function? Q 7:-Describe the various hash function? Q 8:-What is a collision? How collisions can be handled? Q 9:-Demonstrate the insertion of keys 28,5,19,15,33,12,17,77,20 into a hash table with 9 slots and collision resolved by separate chaining. Let the hash function be h(k)=k mod 9. Q 10:-What do you mean by hash function? Classified it with the help of example? http://akashrajak.webs.com 6

Tutorial#7 Q 1:- What is sorting? What is its importance? Q 2:- How do Quick Sort and Heap Sort methods compare as far as performance is concerned? Q 3:- Can you implement Quick Sort method without recursion? If yes show its implementation? Q 4:- Sort the list 213,145,456,700,515,295,674,925 using bucket sort method? Q 5:- Sort the list 213,145,456,700,515,295,674,925 using quick sort method? Q 6:- Sort the list 213,145,456,700,515,295,674,925 using merge sort method? Q 7:- Sort the list 213,145,456,700,515,295,674,925 using bubble sort method? Q 8:- Sort the list 213,145,456,700,515,295,674,925 using selection sort method? Q 9:- Sort the list 213,145,456,700,515,295,674,925 using heap sort method? Q 10:- Sort the list 213,145,456,700,515,295,674,925 using tree sort method? http://akashrajak.webs.com 7

Tutorial#8 Q 1:- How an AVL tree differs from a binary search tree? How AVL trees are represented in computer memory? Q 2:- What do you mean by B Tree? Explain It? Q 3:- Draw the parse tree for the expression (A+B)*C+(D+E) Q 4:- Explain the process of obtaining a binary tree, which represents a given ordered tree? Give example? Q 5:-Explain the method of representing any ordered forest by a unique binary tree? Q 6:- Explain the rotation which we performed in AVL Tree? Q 7:- Differentiate between B and B+ Tree? Q 8:- Explain the process of threading of a binary tree for in order traversal with examples? Q 9:- Discuss the advantages and disadvantages of a threaded storage representation for binary trees? Q 10:- Draw the binary search tree that results from inserting into an initially empty tree records with the keys E A S Y Q U E S T I O N And then deleting the Q? http://akashrajak.webs.com 8

Tutorial#9 Q 1:- Is graph a linear or non linear data structure? Q 2:- How graphs can be represented in computer memory? Give relative merits and de-merits of each representation scheme? Q 3:-We have an application using which a railway passenger can know whether there exists a path from a given city to another city i.e. does there exists a railway link direct or indirect. Which way graph should be represented in memory? Q 4:- How breadth first search differs from depth first search? Can we perform these searches on weighted graphs? Justify your answer? Q 5:-What is topological sort? Explain? Q 6:- Explain the term strongly connected components? Q 7:- What do you mean by degree of a vertex? Explain with Example? Q 8:- How graph can be represented? Explain? http://akashrajak.webs.com 9