MIT 521 Data Structures and Algorithm
MIT 521 Data Structures and Algorithm
MIT 521 Data Structures and Algorithm
Introduction
Course objectives
Linked List
Queue Stack
Tree
Design Issue:
select and design appropriate data types
(This is the main motivation to learn and understand data
structures)
Data Structure Operations
(Demonstrate using class room example!)
Traversing
Accessing each data element exactly once so that
certain items in the data may be processed
Searching
Finding the location of the data element (key) in the
structure
Insertion
Adding a new data element to the structure
Data Structure Operations (cont.)
Deletion
Removing a data element from the structure
Sorting
Arrange the data elements in a logical order
(ascending/descending)
Merging
Combining data elements from two or more data
structures into one
What is algorithm?
A finite set of instructions which accomplish a
particular task
A method or process to solve a problem
Transforms input of a problem to output