DATA STRUCTURES USING C



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

10CS35: Data Structures Using C

Data Structure [Question Bank]

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

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

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.

Java Software Structures

AP Computer Science AB Syllabus 1

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

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

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

Algorithms and Data Structures

Data Structures. Level 6 C Module Descriptor

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

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

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

BCS2B02: OOP Concepts and Data Structures Using C++

Data Structures and Algorithms V Otávio Braga

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING LESSON PLAN

Chapter 3: Restricted Structures Page 1

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

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

Data Structures and Data Manipulation

Binary Search Trees (BST)

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

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

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

Binary Search Trees CMPSC 122

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

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

INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY

Analysis of a Search Algorithm

CHAPTER 4 ESSENTIAL DATA STRUCTRURES

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

Module 2 Stacks and Queues: Abstract Data Types

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

Ordered Lists and Binary Trees

Data Structure with C

TREE BASIC TERMINOLOGIES

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

Data Structures UNIT III. Model Question Answer

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

Common Data Structures

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

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

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

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

Binary Trees and Huffman Encoding Binary Search Trees

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

Sample Questions Csci 1112 A. Bellaachia

Introduction to Data Structures

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

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

7.1 Our Current Model

Converting a Number from Decimal to Binary

Data Structures and Algorithms

Exam study sheet for CS2711. List of topics

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

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

Data Structures and Algorithms Stacks and Queues

Lecture 12 Doubly Linked Lists (with Recursion)

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

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

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

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

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

Lecture 2: Data Structures Steven Skiena. skiena

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

Physical Data Organization

Stacks. Data Structures and Data Types. Collections

An Introduction to Programming and Computer Science

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

CompSci-61B, Data Structures Final Exam

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

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

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

Class XII (Theory) C++

1 p a g e 1 1. Syllabus of 3 rd Semester of B.Tech. Information Technology (Batch 2014 Onwards)

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

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

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

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

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

1. Relational database accesses data in a sequential form. (Figures 7.1, 7.2)

COMPUTER SCIENCE. Paper 1 (THEORY)

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

ADTs,, Arrays, Linked Lists

Unordered Linked Lists

Introduction to Data Structures and Algorithms

Parallelization: Binary Tree Traversal

SMALL INDEX LARGE INDEX (SILT)

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

LINKED DATA STRUCTURES

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

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

Govt. Holkar Science College, Indore Department of Computer Science B.Sc. Computer Science

Chapter 8: Binary Trees

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

Transcription:

DATA STRUCTURES USING C QUESTION BANK UNIT I 1. Define data. 2. Define Entity. 3. Define information. 4. Define Array. 5. Define data structure. 6. Give any two applications of data structures. 7. Give the general form to represent one dimensional array. 8. Give the location to store address of an element in 1-D array. 9. Define merging. 10. Write the statement in C to declare a 2-D array and initialize. 11. Define range. 12. How to calculate the maximum elements in a 2-D array? 13. Name the different methods used to implement 2-D Array. 14. Define base address. 15. Define string. 16. Give the general form to represent string. 17. What is meant by string terminator? 18. What is meant by pattern matching? 19. Give any two string operations. 20. Name the two components required to obtain the address of any location of an array and its size. 1. Classification of data structures. 2. Memory allocation in 1-D array. 3. Traversing in an array. 4. Inserting in an array. 5. Deleting in an array. 6. Sorting in an array. 7. Searching in an array. 8. Merging in an array. 9. Representing 2-D array with header. 10. Row major & column major implementation. 11. String operations. 12. Pattern matching.

UNIT II 1. Define stack. Give the initial condition of stack. 2. Define queue. Give the initial condition of queue. 3. Which statuses have to be checked during PUSH and POP operations? 4. When the stack is called empty and full? 5. Define expression. What are the types of expression? 6. Define infix expression. Give an e.g. 7. Define postfix expression. Give an e.g. 8. Define prefix expression. Give an e.g. 9. What are the applications of stack? 10. What is meant by matching of nested parentheses? 11. Define recursion. Give its formula. 12. When the queue is called empty and full? 13. Define circular queue. 14. Define priority queue. 15. Define de queue. 16. Name the primitive operations of stack. 17. Name the primitive operations of queue. 1. Write the algorithm for stack full, stack empty. 2. Write the algorithm for PUSH and POP operations. 3. Write the algorithm for queue full, queue empty. 4. Priority queue. 5. Circular queue. 6. Transforming infix to postfix notation. 7. Evaluation of postfix notation. 8. Matching of nested parentheses.

UNIT III : 1. Define linked list. 2. What are the types of addresses in a linked list? 3. Define external address. 4. Define internal address. 5. Define null address. 6. Define SLL. How to declare SLL. 7. Define DLL. How to declare DLL. 8. What is meant by freeing a node? 9. Define dangling pointer. 10. Define garbage collection. 11. Give any two differences between SLL and DLL. 12. Describe the purpose of the link fields of a doubly linked list. 13. What are the fields in SLL? 14. What are the fields in DLL? : 1. Linked list implementation. 2. Advantages and disadvantages of linked list. 3. Algorithm for SLL creation. 4. Algorithm for SLL insertion & deletion at head position. 5. Algorithm for SLL insertion & deletion at specified position. 6. Algorithm for SLL insertion & deletion at end position. 7. Algorithm for DLL creation. 8. Algorithm for DLL insertion & deletion at head position. 9. Algorithm for DLL insertion & deletion at specified position. 10. Algorithm for DLL insertion & deletion at end position. 11. Difference between SLL and DLL. 12. Circular linked list.

UNIT IV 1. Define binary tree. 2. When the binary tree is said to be full binary tree? 3. When the binary tree is said to be complete binary tree? 4. What are the representations of binary tree? 5. Define binary tree traversal. 6. Define expression tree. 7. Define binary search tree. 8. Define tree. 9. Define graph. 10. What are the different types of graph? 11. What are the representations of graph? 1. Tree terminologies. 2. Binary tree. 3. Binary tree traversal. 4. Tree representation of arithmetic expression. 5. Finding inorder from expression tree. 6. Finding preorder from expression tree. 7. Finding postorder from expression tree. 8. Graph terminologies. 9. Graph representation. 10. Comparison of graph representation. 11. Explain about binary search tree.

UNIT V 1. Define sequential search. 2. How to calculate the mid position? 3. What are the two types of sorting? 4. Define hashing. 5. Define hash table. 6. Define hash function. 7. Define collision. 8. Define extendible hashing. 9. Define rehashing. 10. What are the methods of collision resolution? 11. Define separate chaining. 12. Define open addressing. 13. What are the different types of hash function? 14. Give the general form for division, mid square & folding method hash function. 1. Explain about Sequential search. 2. Explain about Binary search. 3. Explain about Bubble sort. 4. Explain about selection sort. 5. Explain about insertion sort. 6. Explain about quick sort. 7. Explain about radix sort. 8. Explain about collision resolution methods. 9. Explain extendible hashing. 10. Explain about hash table and hash function.