Course Description
In Data Structures, student learns the basics of creating data structures, and gain experience to code and visualize data structures. Student will discover the significance of well-organized data. Student will learn how to construct a program from tiny pieces and understand why organizational approach makes such a differentiation to some very ordinary approaches to solutions.
The course identifies the most important and helpful data structures in use in modern programming languages and will be presented with exercises for building, visualizing, and manipulating that structure. Each exercise embeds a simple and intuitive application for the particular organization of data that we present. Through this course you will be given a real understanding of data structures by writing your own programs to interact with the data structures.
Course Objectives
To understand the concept of the data structures and operations on them
To apply different data structures for modeling real world problems.
To provide basic data structure concepts in an object-oriented setting for design, implementation, testing and maintenance of software systems.
Syllabus
Unit I
15 Hours
Chapter 1.1
Introduction: Concept of data and information, Introduction to Data Structures, Types of data structure: Linear and non-linear data structures, operations on Data Structures, Algorithm complexity, Time-space trade-off, asymptotic notations.
Chapter 1.2
Basic terminology Linear arrays and their representation, Traversing Linear Array, Insertion & Deletion in arrays, searching – linear search, binary search, sorting – insertion sort, selection sort, bubble sort, merging arrays & merge sort, complexity analysis of each algorithm.
Chapter 1.3
Linear linked list, Representation of Linked Lists in Memory, Traversing a linked list, searching a linked list, insertion in and deletion from linked list, Header Linked List, doubly linked list, Operations on doubly linked list, complexity analysis of each algorithm, Application of linked lists.
Experiment 1.1
Write a menu driven program that implement following operations (using separate functions) on a linear array:
a) Insert a new element at end as well as at a given position
b) Delete an element from a given whose value is given or whose position is given
c) To display the elements of the linear array
Experiment 1.2
Write a program to demonstrate the use of linear and binary search to find a given element in an array.
Experiment 1.3
Write a menu driven program that maintains a linear linked list whose elements are stored in on ascending order and implements the following operations (using separate functions):
a) Insert a new element
b) Delete an existing element
c) Search an element
d) Display all the elements
Unit 2
15 Hours
Chapter 2.1
Stack: Basic terminology, Sequential and linked representations, Operations on stacks: PUSH & POP, Application of stacks: Parenthesis matching, evaluation of postfix expressions, conversion from infix to postfix representation, Quick Sort and its complexity analysis.
Chapter 2.2
Queues: Linear queue, Sequential and linked representation of Linear queue, Circular queue, Operations on queues, Dequeues, Priority queue.
Chapter 2.3
Graph: Graph Theory terminology, sequential representation of graphs using adjacency matrix and Path Matrix, Traversing a graph using BFS and DFS, Operations on Graph, Minimum Spanning Tree.
Experiment 2.1
Write a program to sort an array of integers in ascending/descending order using
a) Merge sort.
Experiment 2.2
Write a program to sort an array of integers in ascending/descending order using
a) Insertion sort.
Experiment 2.3
Write a program to demonstrate the use of stack (implemented using linear array) in converting arithmetic expression from infix notation to postfix notation.
Experiment 2.4
Write a program to demonstrate the implementation of various operations on a linear queue and circular represented using a linear array.
Unit 3
15 Hours
Chapter 3.1
Basic terminology, Binary Trees, Representation of Binary Trees in Memory, traversing Binary Trees, Traversal Algorithms using stacks, Header Nodes; Threads, Binary Search trees,
Searching, Inserting & Deleting in Binary Search Trees, AVL Search trees, B/B+ Trees, Heap &Heap Sort.
Chapter 3.2
Hashing: Hash Table, Hash Functions, Collision Resolution Strategies, Hash Table Implementation.
Chapter 3.3
File Organization: Concepts of files, Organization of records into Blocks, File organization: Sequential, Relative, Index Sequential, Inverted File.
Experiment 3.1
Write a program to demonstrate the implementation of various operations on a queue represented using a linear linked list (linked queue).
Experiment 3.2
Write a program to illustrate the implementation of different operations on a binary search tree.
Experiment 3.3
Write a program to illustrate the traversal of graph using
a) Breadth-first search b) Depth-first search.