SlideShare a Scribd company logo
Lesson 1 - Overview
4/4/2021 PC-108 DATA STRUCTURE AND ALGORITHM BY: AREGATON
What is data structure and algorithm?
A data structure is an arrangement of data in a computer’s memory (or sometimes on a disk).
Data structures include arrays, linked lists, stacks, binary trees, and hash tables, among others.
Algorithms manipulate the data in these structures in various ways, such as searching for a
particular data item and sorting the data.
What sorts of problems can you solve with a knowledge of these topics? As a rough
approximation, we might divide the situations in which they’re useful into three categories:
Real-world data storage
Programmer’s tools
Modeling
4/4/2021 PC-108 DATA STRUCTURE AND ALGORITHM 2
Real-World Data Storage
Many of the structures and techniques we’ll discuss
are concerned with how to handle real-world data storage.
By real-world data, we mean data that describes physical
entities external to the computer. As some examples, a
personnel record describes an actual human being, an
inventory record describes an existing car part or grocery
item, and a financial transaction record describes, say, an
actual check written to pay the electric bill.
4/4/2021 PC-108 DATA STRUCTURE AND ALGORITHM 3
Programmer’s Tools
Not all data storage structures are used to store real-world data.
Typically, real-world data is accessed more or less directly by a
program’s user. Some data storage structures, however, are not
meant to be accessed by the user, but by the program itself. A
programmer uses such structures as tools to facilitate some other
operation. Stacks, queues, and priority queues are often used in this
way. We’ll see examples as we go along.
4/4/2021 PC-108 DATA STRUCTURE AND ALGORITHM 4
Real-World Modeling
Some data structures directly model real-world
situations. The most important data structure of this
type is the graph. You can use graphs to represent
airline routes between cities or connections in an
electric circuit or tasks in a project.
4/4/2021 PC-108 DATA STRUCTURE AND ALGORITHM 5
CHARACTERISTICS OF DATA STRUCTURE
4/4/2021 PC-108 DATA STRUCTURE AND ALGORITHM 6
CHARACTERISTICS OF DATA STRUCTURE
4/4/2021 PC-108 DATA STRUCTURE AND ALGORITHM 7
Overview of Algorithms
Many of the algorithms we’ll discuss apply directly to specific data structures. For most data
structures, you need to know how to
Insert a new data item.
Search for a specified item.
Delete a specified item.
4/4/2021 PC-108 DATA STRUCTURE AND ALGORITHM 8
Some Definitions
Database
We’ll use the term database to refer to all the data that will be dealt with in a particular
situation.
Record
Records are the units into which a database is divided. They provide a format for storing
information.
Field
A record is usually divided into several fields. A field holds a particular kind of data.
4/4/2021 PC-108 DATA STRUCTURE AND ALGORITHM 9
SAMPLE RECORD
4/4/2021 PC-108 DATA STRUCTURE AND ALGORITHM 10
RECORDS
FIELDS
Key
To search for a record within a database, you need to designate one of the record’s fields as a
key (or search key).
4/4/2021 PC-108 DATA STRUCTURE AND ALGORITHM 11
SUMMARY
• A data structure is the organization of data in a computer’s memory or in a disk file.
• The correct choice of data structure allows major improvements in program efficiency.
• Examples of data structures are arrays, stacks, and linked lists.
• An algorithm is a procedure for carrying out a particular task.
• In Java, an algorithm is usually implemented by a class method.
• Many of the data structures and algorithms described in this book are most often used to build
databases.
4/4/2021 PC-108 DATA STRUCTURE AND ALGORITHM 12
SUMMARY
• Some data structures are used as programmer’s tools: They help execute an algorithm.
• Other data structures model real-world situations, such as telephone lines running between
cities.
• A database is a unit of data storage composed of many similar records.
• A record often represents a real-world object, such as an employee or a car part.
• A record is divided into fields. Each field stores one characteristic of the object described by
the record.
• A key is a field in a record that’s used to carry out some operation on the data. For example,
personnel records might be sorted by a LastName field.
• A database can be searched for all records whose key field has a certain value. This value is
called a search key.
4/4/2021 PC-108 DATA STRUCTURE AND ALGORITHM 13

More Related Content

PDF
Lesson 2.2 abstraction
PDF
Lesson 4 stacks and queues
PDF
PDF
Lesson 5 link list
PDF
Lesson 6 recursion
PPTX
هياكلبيانات
PDF
Lesson 3 simple sorting
PPTX
Data structure,abstraction,abstract data type,static and dynamic,time and spa...
Lesson 2.2 abstraction
Lesson 4 stacks and queues
Lesson 5 link list
Lesson 6 recursion
هياكلبيانات
Lesson 3 simple sorting
Data structure,abstraction,abstract data type,static and dynamic,time and spa...

What's hot (20)

PDF
Data structures and algorithms short note (version 14).pd
PPTX
Computer Science-Data Structures :Abstract DataType (ADT)
PDF
Data structure using c++
PDF
Data structure
PPTX
Data structure
PPTX
Mca ii dfs u-1 introduction to data structure
PPT
Introduction of data structure
PPTX
Data structures using C
PPTX
Introduction to data structure
PPT
Data structures
PDF
Data Structure Basics
PPT
Basic data-structures-v.1.1
PPTX
Data Structure
PDF
Data structures
PPTX
Bsc cs ii dfs u-1 introduction to data structure
PPS
Data Structure
PDF
Ii pu cs practical viva voce questions
DOCX
Bc0038– data structure using c
PPTX
Data structure & algorithms introduction
PDF
UNIT I LINEAR DATA STRUCTURES – LIST
Data structures and algorithms short note (version 14).pd
Computer Science-Data Structures :Abstract DataType (ADT)
Data structure using c++
Data structure
Data structure
Mca ii dfs u-1 introduction to data structure
Introduction of data structure
Data structures using C
Introduction to data structure
Data structures
Data Structure Basics
Basic data-structures-v.1.1
Data Structure
Data structures
Bsc cs ii dfs u-1 introduction to data structure
Data Structure
Ii pu cs practical viva voce questions
Bc0038– data structure using c
Data structure & algorithms introduction
UNIT I LINEAR DATA STRUCTURES – LIST
Ad

Similar to Lesson 1 overview (20)

PPT
Chapter 1( intro & overview)
PDF
SALES BASED DATA EXTRACTION FOR BUSINESS INTELLIGENCE
PPT
Chapter 1 - Introduction to Data Structure.ppt
PPTX
INTRODUCTION TO DATA STRUCTURE & ABSTRACT DATA TYPE.pptx
PPT
Lect 1-2
PDF
3130703dsgtudarshan Enotesallunits Darshan Institute Of Engineering Technology
PPT
Lect 1-2 Zaheer Abbas
PDF
PDF
Lesson 1 - Data Structures and Algorithms Overview.pdf
PPTX
Introduction to data structure
PPTX
Introduction to data structure
DOCX
UNIT-5 DATA WAREHOUSING.docx
PPTX
Introduction to databae eChapter 1-.pptx
DOCX
Data architecture in enterprise architecture is the design of data for use in...
PPTX
Chapter 1- IT.pptx
PPTX
Data Structures_Introduction
PPTX
DS-UNIT 1 FINAL (2).pptx
PPTX
Recipes 6 of Data Warehouse and Business Intelligence - Naming convention tec...
PDF
Data Structures & algorithms kdkdkakdkadkd
PPT
Lec1
Chapter 1( intro & overview)
SALES BASED DATA EXTRACTION FOR BUSINESS INTELLIGENCE
Chapter 1 - Introduction to Data Structure.ppt
INTRODUCTION TO DATA STRUCTURE & ABSTRACT DATA TYPE.pptx
Lect 1-2
3130703dsgtudarshan Enotesallunits Darshan Institute Of Engineering Technology
Lect 1-2 Zaheer Abbas
Lesson 1 - Data Structures and Algorithms Overview.pdf
Introduction to data structure
Introduction to data structure
UNIT-5 DATA WAREHOUSING.docx
Introduction to databae eChapter 1-.pptx
Data architecture in enterprise architecture is the design of data for use in...
Chapter 1- IT.pptx
Data Structures_Introduction
DS-UNIT 1 FINAL (2).pptx
Recipes 6 of Data Warehouse and Business Intelligence - Naming convention tec...
Data Structures & algorithms kdkdkakdkadkd
Lec1
Ad

More from MLG College of Learning, Inc (20)

PPTX
PPTX
PC111-lesson1.pptx
PPTX
PC LEESOON 6.pptx
PPTX
PC 106 PPT-09.pptx
PPTX
PPTX
PPTX
PPTX
PC 106 Slide no.02
PPTX
PPTX
PPTX
PC 106 Slide 1.pptx
PDF
Db2 characteristics of db ms
PDF

Recently uploaded (20)

PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PPTX
Introduction to Building Materials
PDF
What if we spent less time fighting change, and more time building what’s rig...
PPTX
Lesson notes of climatology university.
PDF
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
advance database management system book.pdf
PDF
Weekly quiz Compilation Jan -July 25.pdf
PPTX
Unit 4 Skeletal System.ppt.pptxopresentatiom
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Cell Types and Its function , kingdom of life
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PDF
Empowerment Technology for Senior High School Guide
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Introduction to Building Materials
What if we spent less time fighting change, and more time building what’s rig...
Lesson notes of climatology university.
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
LDMMIA Reiki Yoga Finals Review Spring Summer
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
RMMM.pdf make it easy to upload and study
A systematic review of self-coping strategies used by university students to ...
advance database management system book.pdf
Weekly quiz Compilation Jan -July 25.pdf
Unit 4 Skeletal System.ppt.pptxopresentatiom
Supply Chain Operations Speaking Notes -ICLT Program
Cell Types and Its function , kingdom of life
Chinmaya Tiranga quiz Grand Finale.pdf
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Empowerment Technology for Senior High School Guide

Lesson 1 overview

  • 1. Lesson 1 - Overview 4/4/2021 PC-108 DATA STRUCTURE AND ALGORITHM BY: AREGATON
  • 2. What is data structure and algorithm? A data structure is an arrangement of data in a computer’s memory (or sometimes on a disk). Data structures include arrays, linked lists, stacks, binary trees, and hash tables, among others. Algorithms manipulate the data in these structures in various ways, such as searching for a particular data item and sorting the data. What sorts of problems can you solve with a knowledge of these topics? As a rough approximation, we might divide the situations in which they’re useful into three categories: Real-world data storage Programmer’s tools Modeling 4/4/2021 PC-108 DATA STRUCTURE AND ALGORITHM 2
  • 3. Real-World Data Storage Many of the structures and techniques we’ll discuss are concerned with how to handle real-world data storage. By real-world data, we mean data that describes physical entities external to the computer. As some examples, a personnel record describes an actual human being, an inventory record describes an existing car part or grocery item, and a financial transaction record describes, say, an actual check written to pay the electric bill. 4/4/2021 PC-108 DATA STRUCTURE AND ALGORITHM 3
  • 4. Programmer’s Tools Not all data storage structures are used to store real-world data. Typically, real-world data is accessed more or less directly by a program’s user. Some data storage structures, however, are not meant to be accessed by the user, but by the program itself. A programmer uses such structures as tools to facilitate some other operation. Stacks, queues, and priority queues are often used in this way. We’ll see examples as we go along. 4/4/2021 PC-108 DATA STRUCTURE AND ALGORITHM 4
  • 5. Real-World Modeling Some data structures directly model real-world situations. The most important data structure of this type is the graph. You can use graphs to represent airline routes between cities or connections in an electric circuit or tasks in a project. 4/4/2021 PC-108 DATA STRUCTURE AND ALGORITHM 5
  • 6. CHARACTERISTICS OF DATA STRUCTURE 4/4/2021 PC-108 DATA STRUCTURE AND ALGORITHM 6
  • 7. CHARACTERISTICS OF DATA STRUCTURE 4/4/2021 PC-108 DATA STRUCTURE AND ALGORITHM 7
  • 8. Overview of Algorithms Many of the algorithms we’ll discuss apply directly to specific data structures. For most data structures, you need to know how to Insert a new data item. Search for a specified item. Delete a specified item. 4/4/2021 PC-108 DATA STRUCTURE AND ALGORITHM 8
  • 9. Some Definitions Database We’ll use the term database to refer to all the data that will be dealt with in a particular situation. Record Records are the units into which a database is divided. They provide a format for storing information. Field A record is usually divided into several fields. A field holds a particular kind of data. 4/4/2021 PC-108 DATA STRUCTURE AND ALGORITHM 9
  • 10. SAMPLE RECORD 4/4/2021 PC-108 DATA STRUCTURE AND ALGORITHM 10 RECORDS FIELDS
  • 11. Key To search for a record within a database, you need to designate one of the record’s fields as a key (or search key). 4/4/2021 PC-108 DATA STRUCTURE AND ALGORITHM 11
  • 12. SUMMARY • A data structure is the organization of data in a computer’s memory or in a disk file. • The correct choice of data structure allows major improvements in program efficiency. • Examples of data structures are arrays, stacks, and linked lists. • An algorithm is a procedure for carrying out a particular task. • In Java, an algorithm is usually implemented by a class method. • Many of the data structures and algorithms described in this book are most often used to build databases. 4/4/2021 PC-108 DATA STRUCTURE AND ALGORITHM 12
  • 13. SUMMARY • Some data structures are used as programmer’s tools: They help execute an algorithm. • Other data structures model real-world situations, such as telephone lines running between cities. • A database is a unit of data storage composed of many similar records. • A record often represents a real-world object, such as an employee or a car part. • A record is divided into fields. Each field stores one characteristic of the object described by the record. • A key is a field in a record that’s used to carry out some operation on the data. For example, personnel records might be sorted by a LastName field. • A database can be searched for all records whose key field has a certain value. This value is called a search key. 4/4/2021 PC-108 DATA STRUCTURE AND ALGORITHM 13