DATA STRUCTURES USING C

Similar documents
Government of Karnataka Department of Technical Education Bengaluru

PESIT Bangalore South Campus Department of MCA Course Information for

SAURASHTRA UNIVERSITY

DYNAMIC MEMORY ALLOCATION AND DEALLOCATION

Section I. 1 Review of user defined function,recursion, pointer, structure 05 2 Introduction to Data Structures and stack

17CS33:Data Structures Using C QUESTION BANK

Bharati Vidyapeeth s College Of Engineering for Women Pune-43 Department E & TC. SE- Unit Test I Subject-DS

R13. II B. Tech I Semester Supplementary Examinations, May/June DATA STRUCTURES (Com. to ECE, CSE, EIE, IT, ECC)

Syllabus for Bachelor of Technology. Computer Engineering. Subject Code: 01CE0301. Subject Name: Data Structure. B.Tech. Year - II

R10 SET - 1. Code No: R II B. Tech I Semester, Supplementary Examinations, May

1 P a g e A r y a n C o l l e g e \ B S c _ I T \ C \

Prepared By: Ms. Nidhi Solanki (Assist. Prof.) Page 1

Sample Question Paper

DATA STRUCTURES THROUGH C++

Total No. of Questions :09] [Total No. of Pages : 02. II/IV B.Tech. DEGREE EXAMINATIONS, NOV/DEC First Semester CSE/IT DATA STRUCTURES USING C

Course Name: B.Tech. 3 th Sem. No of hours allotted to complete the syllabi: 44 Hours No of hours allotted per week: 3 Hours. Planned.

Bachelor Level/ First Year/ Second Semester/ Science Full Marks: 60 Computer Science and Information Technology (CSc. 154) Pass Marks: 24

GUJARAT TECHNOLOGICAL UNIVERSITY COMPUTER ENGINEERING (07) / INFORMATION TECHNOLOGY (16) / INFORMATION & COMMUNICATION TECHNOLOGY (32) DATA STRUCTURES

Introduction p. 1 Pseudocode p. 2 Algorithm Header p. 2 Purpose, Conditions, and Return p. 3 Statement Numbers p. 4 Variables p. 4 Algorithm Analysis

MULTIMEDIA COLLEGE JALAN GURNEY KIRI KUALA LUMPUR

Table of Contents. Chapter 1: Introduction to Data Structures... 1

Tribhuvan University Institute of Science and Technology Computer Science and Information Technology (CSC. 154) Section A Attempt any Two questions:

PA3 Design Specification

Code No: R Set No. 1

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING UNIT-1

1 PCA151C Data Structures Using C PCA152C Operating Systems PCA153C Introduction to Web Technologies

Govt. of Karnataka, Department of Technical Education Diploma in Information Science & Engineering. Fifth Semester

VALLIAMMAI ENGINEERING COLLEGE

Govt. of Karnataka, Department of Technical Education Diploma in Computer Science & Engineering. Fifth Semester. Subject: Web Programming

FORTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLIGY- OCTOBER, 2012 DATA STRUCTURE

Swami Ramanand Teerth Marathwada University, Nanded

DEPARTMENT OF COMPUTER APPLICATIONS B.C.A. - FIRST YEAR ( REGULATION) SECOND SEMESTER LESSON PLAN SRM INSTITUTE OF SCIENCE AND TECHNOLOGY

R. C. TECHNICAL INSTITUTE, SOLA

R10 SET - 1. Code No: R II B. Tech I Semester, Supplementary Examinations, May

Guru Jambheshwar University of Science & Technology, Hisar Scheme for Theory + Practical Based Subjects

V.S.B ENGINEERING COLLEGE DEPARTMENT OF INFORMATION TECHNOLOGY I IT-II Semester. Sl.No Subject Name Page No. 1 Programming & Data Structures-I 2

MAHARAJA KRISHNAKUMARSINHJI BHAVNAGAR UNIVERSITY NAAC Accreditation Grade B (With effect from Academic Year: )

Objective Questions for Online Practical Exams under CBCS Scheme Subject: Data Structure-I (CS-113)

VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur

CS 445: Data Structures Final Examination: Study Guide

DC104 DATA STRUCTURE JUNE Q.2 a. If you are using C language to implement the heterogeneous linked list, what pointer type will you use?

Draw a diagram of an empty circular queue and describe it to the reader.

LESSON PLAN B.C.A. - FIRST YEAR ( REGULATION) SECOND SEMESTER

Home Works and Assignments

Reg. No. : Question Paper Code : 27157

Topic Analysis PART-A

EC8393FUNDAMENTALS OF DATA STRUCTURES IN C Unit 3

A6-R3: DATA STRUCTURE THROUGH C LANGUAGE

Academic Programme: B.Sc. I Year. Computer Science (Optional) Hours. Fundamentals of Computer Hours.

COMPUTER PROGRAMMING LAB

Data Structure using C++ Lecture 04. Data Structures and algorithm analysis in C++ Chapter , 3.2, 3.2.1

Computer Science 1 Study Union Practice Problems. What are the arguments to malloc? calloc? realloc? What do they do?

CS PROGRAMMING & ATA STRUCTURES I. UNIT I Part - A

End-Term Examination Second Semester [MCA] MAY-JUNE 2006

CURRICULUM. SL Topics Hours Marks. Section - I. 1 Introduction to 'C' Language Condition and Loops Section - II 3 Arrays 12 30

Preface... (vii) CHAPTER 1 INTRODUCTION TO COMPUTERS

CS 206 Introduction to Computer Science II

Department of Computer Science and Technology

Algorithms and programs, basic idea of pseudo-code.algorithm efficiency and analysis, time and space analysis of algorithms order notations.

PROGRAMMING IN C++ (Regulation 2008) Answer ALL questions PART A (10 2 = 20 Marks) PART B (5 16 = 80 Marks) function? (8)

! Mon, May 5, 2:00PM to 4:30PM. ! Closed book, closed notes, clean desk. ! Comprehensive (covers entire course) ! 30% of your final grade

Contact Hours / week: 4 Total hours: 64. Table of Contents Architecture 3 Data Modeling Using the Entity-

OBJECT ORIENTED DATA STRUCTURE & ALGORITHMS

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF COMPUTING DEPARTMENT OF CSE COURSE PLAN. Sec. Name Office Office hour Mail id

CS W3134: Data Structures in Java

I Year MCA I Semester L T P To C FOUNDATIONS OF INFORMATION TECHNOLOGY

Information Technology

Scheme and Syllabus. B. Sc. (IT) I to VI Semester. w.e.f. July 2011 ( Batch onwards)

A Programming Approach with C DHARMENDER SINGH KUSHWAHA

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING B.E SECOND SEMESTER CS 6202 PROGRAMMING AND DATA STRUCTURES I TWO MARKS UNIT I- 2 MARKS

Discuss the following operations on One-Dimensional array with algorithms.

CS DATA STRUCTURES AND ALGORITHMS

Quantitative Finance COURSE NUMBER: 22:839:615 COURSE TITLE: Special Topics Oriented Programming 2

DR. APJ ABDUL KALAM UNIVERSITY, INDORE

QUESTION BANK. Prepared by,mrs.d.maladhy AP/IT,RGCET. Page 1

Sai Nath University. Assignment For MCA 2nd Sem.

DATA STRUCTURE UNIT I

1. Attempt any three of the following: 15

Guru Jambheshwar University of Science and Technology, Hisar. Scheme and Syllabi for

Data Structure (CS301)

DEEPIKA KAMBOJ UNIT 2. What is Stack?

First Semester - Question Bank Department of Computer Science Advanced Data Structures and Algorithms...

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Department of Information Technology. II B.Tech I Sem. DATA STRUCTURES THROUGH C++ (Subject code# 53023) Dept of IT

1) What is information system? Describe the basic concepts of information systems.

Programming for Problem Solving 105A L T P Credit Major Minor Total Time

Department of Technical Education DIPLOMA COURSE IN ELECTRONICS AND COMMUNICATION ENGINEERING. Fifth Semester. Subject: VHDL Programming

Seth Jai Parkash Polytechnic, Damla

Teaching Hours. Audit Course Name. Theory Tutorial Practical DCE417 PHP & MYSQL N Y Y

INSTITUTE OF AERONAUTICAL ENGINEERING

St. MARTIN s ENGINERING COLLEGE Dhulapally,Secunderabad

Cpt S 122 Data Structures. Course Review FINAL. Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University

Lists (Section 5) Lists, linked lists Implementation of lists in C Other list structures List implementation of stacks, queues, priority queues

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

FORTH SEMESTER DIPLOMA EXAMINATION IN ENGINEERING/ TECHNOLIGY- MARCH, 2012 DATA STRUCTURE (Common to CT and IF) [Time: 3 hours

Cpt S 122 Data Structures. Course Review Midterm Exam # 1

a) State the need of data structure. Write the operations performed using data structures.

Stack Applications. Lecture 27 Sections Robb T. Koether. Hampden-Sydney College. Wed, Mar 29, 2017

Govt. of Karnataka, Department of Technical Education Diploma in Computer Science Sixth Semester. Contact Hrs / week: 4 Total hrs: 64

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF COMPUTING DEPARTMENT OF CSE COURSE PLAN

Transcription:

Govt. of Karnataka, Department of Technical Education Diploma in Computer Science & Engineering Third Semester Subject: DATA STRUCTURES USING C Contact Hrs / week: 4 Total hrs: 64 Table of Contents Chapter No Topic No. of Hrs Marks Section I 1 Pointers 08 18 2 Dynamic Memory allocation 04 6 3 Files 06 14 Section II 4 Introduction to data structures 02 4 5 The Stack 08 22 6 Queues 06 14 Section III 7 Linked lists 08 20 8 Trees 06 16 9 Sorting 06 15 10 Searching 02 6 Seminars and Guest lectures from Industry and Institute 05 Tests 03 Total hrs 64 145 Detailed Contents 1 Pointers 1.1 Concept of pointers 1.2 Declaring and initializing pointers 1.3 Accessing variables using pointers 1.4 Pointer arithmetic 1.5 Pointers and arrays 1.6 Pointers and character strings 1.7 Pointers and functions 1.8 Pointer as a function argument 1.9 Pointers to function 1.10 pointers and structures 2 Dynamic Memory allocation 2.1 Introduction 2.2 Dynamic memory allocation 2.3 Allocating a block of memory : Malloc

2.4 Allocating multiple blocks of memory : Calloc 2.5 Releasing the used space : Free 2.6 Altering the size of memory : Realloc 3 Files 3.1 Introduction 3.2 Defining and opening a file 3.3 Closing a file 3.4 Input / Output operations on files 3.5 Error handling during I/O operations 3.6 Random Access to files 3.7 Command line arguments 4 Introduction to data structures 4.1 Introduction 4.2 Data and information 4.3 Types of data structures 4.4 Primitive & non primitive data structures ND operations 5 The Stack 5.1 Definition and examples 5.2 Primitive Operations- Push and Pop 5.3 Representing Stacks in C 5.4 Implementing Push and Pop Operations in C 5.5 Applications of Stacks 5.6 Infix, Postfix and Prefix Expressions 5.7 Algorithm for evaluating an expression- Infix to prefix, Infix to Postfix 5.8 Recursion 5.9 Recursive definition 5.10 Multiplication of Natural numbers 5.11 Factorial Function 5.12 GCD function 5.13 Properties of Recursive algorithms/functions 5.14 Recursion in C 6 Queues 6.1 The queue and its sequential representation 6.2 C implementation of Queues and their operations 6.3 C implementation of Circular queues and their operations 6.4 Dequeue and priority queues(concepts only) 7 Linked lists 7.1 Linked linear lists 7.2 Inserting and removing nodes from a list 7.3 Linked Implementation of Stacks and Queues 7.4 Array implementation of lists in C and its limitations 7.5 Linked list using dynamic variables in C 7.6 Comparing the Dynamic and Array Implementation of Lists 7.7 Circular linked lists (Concepts only, no implementations) 7.8 Doubly linked list 8 Trees 8.1 Introduction 8.2 Basic Terms

8.3 Binary trees 8.4 Complete binary tree 8.5 Binary tree representation 8.6 Operation on binary tree 8.7 Traversal of a binary tree 9 Sorting 9.1 Exchange sorts 9.2 --Bubble sort 9.3 --Quick sort (No implementation) 9.4 Selection and tree sorting 9.5 --Straight selection sort 9.6 --Binary tree sort 9.7 Insertion Sorts 9.8 --Simple Insertion sort 9.10 --Shell sort (No implementation) 9.11 Merge sort and Radix sort (No implementation) 10 Searching 10.1 Introduction 10.2 Searching 10.3 Linear (sequential) search (without creating linked list) 10.4 Binary search General objectives: 1 Understand the concept of pointers and their operations 2 Understand the concept of dynamic memory allocation 3 Understand file handling in C Know the concepts of linear data structures, their operations and 4 applications Know the concepts of non linear data structures, their operations and 5 applications 6 Understand the various sorting and searching techniques Specific Objectives: Pointers Bring out the concepts of pointers Learn to declaring and initializing pointers Learn to access variables using pointers Explain the concepts of pointer arithmetic Explain the use of Pointers in arrays, character strings, functions, structures Files Define File Learn the I/O operations on files Distinguish between sequential & random access files

Learn to handle errors in files and command line arguments Introduction to data structures Define Information,data and data structures Distinguish between the various types of data types: primitive and non primitive Define stack with examples Explain the Primitive Operations- Push and Pop performed on stack Write programs to Implement Push and Pop Operations in C Learn the applications of Stacks Learn about Infix, Postfix and Prefix Expressions Learn to convert expressions i.e. from Infix to postfix & prefix, Learn to convert Postfix to infix & prefix,prefix to infix & postfix Expressions Understand recursion: eg. Multiplication of natural numbers, Factorial and GCD Learn queue with examples and their sequential representation Learn C implementation of Queues and their operations Learn C implementation of Circular queues and their operations Learn the concepts of Dequeue and priority queues Linked list Learn the concepts of Linked linear lists, their advantages and disadvantages Write programs for Inserting and removing nodes from a list Write programs to implement of Stacks and Queues Learn Array implementation of lists in C and its limitations Implement Linked list using dynamic variables in C Examples of list operations in C Comparing the Dynamic and Array Implementation of Lists Learn concepts of Circular & doubly linked lists Trees Define Binary trees and learn their concepts Understand tree operations Learn & implement binary tree traversal operations Sorting To understand different sorting Techniques with examples To implement sorting techniques in C Searching To understand linear and binary search Techniques with examples To learn and implement linear and binary search techniques in C Text book: 1. For Chapter 1 to 3 -- Programming in ANSI C, E.Balagurusamy, 4E, Tata McGraw Hill, ISBN: 9780070648227 2. DATA STRUCTURES USING C By Niranjan A, Sapna Publications. 3. For Chapters 5, 6, 7, 9,10 -- DATA STRUCTURES USING C AND C++, Langsam yedidyah, Augenstein moshe j., Aron M. Tenenbaum, Second Edition, PHI

4. For Chapters 4 and 8 -- Introduction to Data Structures in C, Ashok N Kamthane, Third impression 2009, Pearson Education, ISBN : 9788131713921 Reference Books: 1. Data Structures with C, By Nanda Gopalan. 2. C and data Structures, Dr.N.B. Venkateshwarulu and Dr.E.V Prasad, S chand Publications 3. Data structures Using C, Aron M. Tenenbaum,langsam yedidyah, Augenstein moshe j., PHI 4. C and Data Structures, Prof. P S Deshapande and Prof. O G Kakde

Govt. of Karnataka, Department of Technical Education Diploma in Computer Science & Engineering Third Semester Subject: Data Structures using C Max. Marks: 100 Max. Time: 3 Hours Model Question Paper Note: 1. Section I is compulsory. 2. Answer any TWO questions from each remaining Sections. Marks Section I 1. a) Fill in the blanks with appropriate word/s 5x1=5 i. is a variable which holds the address of another variable. ii.. is an example for non linear data structure iii. The process of a function calling itself is called iv.. is used to open a file. v. The total number of nodes in a complete binary tree is given by.. b) Write a note on Command line arguments. 5 Section II 2. a) Define Pointer. Explain pointer arithmetic. 6 b) Differentiate between call by value and call by reference parameter passing techniques with example. 9 3. a) Write a program to sort N numbers using malloc( ). 6

b) Define File and explain different File modes. 6 c) How to handle errors in files? 3 4. a) Distinguish between linear and non linear data structure. 5 b) Write an algorithm to perform PUSH and POP operations in Stack. 10 Section III 5. a) What is recursion? Explain with an example. 7 b) Convert the following expressions to postfix 6 i. (A + B) * (C - D) $ E * F ii. ((A (B + C) * D) $ (E + F) c) Define Queue. 2 6. a) Write a program to implement Circular Queues in C 10 b) Write a note on Priority queues. 5 7. a) Write an algorithm to insert a node into a linked list. 8 b) Compare the Dynamic and Array Implementation of Lists. 7 Section IV 8. a) Explain Doubly linked list. 5 b) Write the tree traversal algorithms. 10 9. a) Construct the binary tree for the following data 5 15,4,8,9,2,13,1,6,10,11,14 b) Write a program to implement simple insertion sort and trace with an example. 10 10. a) Explain tree sorting with an example. 8 b) Write a program to perform binary search using recursion. 7