Chapter 01 - Introduction to Data Structures - converted
Chapter 01 - Introduction to Data Structures - converted
Level II - Semester 3
• At the end of this lesson, you will be able to; 1. Introduction to data structures
• Explain the use of data structures 1.1. Introduction to data structures
• Demonstrate different implementation techniques of 1.2. Use of Data Structures
data structures 1.2.1. Real- world data storage
• Compare different applications of data structures 1.2.2. Programmer’s Tools
1.2.3. Real-world Modeling
1.3. Classification of Data Structures
Examples
Array
Stack
Linked list
The use of data structures can be studied mainly in • Many of the structures and techniques considered here
these three categories: are about how to handle real-world data storage.
• Real-world data mean that the data that describes
• Real-world data storage physical entities external to the computer.
• Programmer’s tools
• Real-world modeling Examples
• A stack of index cards can be considered as a non- • Most programs are complex than index cards.
computer related example of real-world data storage. • Imagine the database the Department of Motor
Vehicles uses to keep track of drivers’ licenses, or an
• These cards can be used for a variety of purposes. airline reservations system that stores passenger and
• If each card holds a person's name, address, and flight information.
phone number, the result is an address book. • Such systems may include many data structures.
• If each card holds the name location, and value of
a household possession, the result is a home
inventory.
• A data structure is a special format for organizing and 2. Non – linear data structures: Elements of this data
storing data. structure are stored/accessed in a hierarchical manner.
• Depending on the organization of the elements, data
structures are classified into two types: Examples: Trees and graphs.
Summary