SlideShare a Scribd company logo
1 of 23
Algorithms & Data Structures
Ust. Khalid Bana
Data structures
We have already learned how groups of sequential data
can be used in C++
But this is somewhat restrictive, since in many occasions
what we want to store are not mere sequences of
elements all of the same data type , but sets
of different elements with different data types.
Data structures ( Cont… )
A data structure is a group of data elements grouped
together under one name
These data elements, known as members , can
have different types and different lengths
What about data structures
Structure: how data is organized
 Place data continue
 Place data here and there with “links”
 Place data with “formula”
What about algorithms
 Algorithms: how to access data for a result
 Scan data sequentially
 Scan data according to the sequence of a structure
 Scan data with “formula”
 Algorithms: how to provide a smart solution
Basic data types – the simplest data structure
Basic data types a language supports:
 Integer, float, double, char, Boolean , String
Basic Data structures
 A single datum in one of the basic types
 A structure is a combination of the basic types
Data
Structure
Advance
D.S
Main D.S
Main D.S
Array
Record
Set
File
Advance D.S
stack
Queue
Double
ended queue
Tree
Different Between
 Data
 Information
 Knowledge
 Experience
 Expert System
 Data
‫الحالي‬ ‫الوقت‬ ‫في‬ ‫مفهومة‬ ‫وغير‬ ‫معالجتها‬ ‫تتم‬ ‫لم‬ ‫خام‬ ‫بيانات‬ ‫عن‬ ‫عبارة‬
 Information
‫قيمة‬ ‫ولديها‬ ‫معالجتها‬ ‫تمت‬ ‫بيانات‬ ‫عن‬ ‫عبارة‬
 Knowledge
‫الـــــــ‬ ‫من‬ ‫مجموعة‬ ‫عن‬ ‫عبارة‬Information
 Experience
‫الـــــــ‬ ‫من‬ ‫مجموعة‬ ‫عن‬ ‫عبارة‬Knowledge
 Expert System
‫الـــــــ‬ ‫من‬ ‫مجموعة‬ ‫عن‬ ‫عبارة‬
Decision Support System & Data Mining
‫البيانات‬ ‫وتنقيب‬ ‫القرار‬ ‫دعم‬ ‫نظم‬
Search
(1)
 Set
 File
 Record
Data structures
‫لكثرة‬ ‫انشاؤها‬ ‫تم‬ ‫طريقة‬ ‫هي‬‫البيانات‬(Data)‫كل‬ ‫في‬ ‫المستخدمة‬‫المجاالت‬
‫لزاما‬ ‫فكان‬‫وتنظيمها‬ ‫هيكلتها‬ ‫علينا‬‫لمعرفة‬‫للبيانات‬ ‫الوصول‬ ‫كيفية‬
‫بالطرق‬‫االسهل‬‫واالدق‬.
What the different between :
Program & Algorithm ?
 Program
Syntax (Machine Languages)
 Algorithm
Semantic (Natural Languages ) or ( Human Languages)
Algorithm
‫تؤدي‬ ‫والتي‬ ‫منطقي‬ ‫تسلسل‬ ‫المتسلسة‬ ‫الخطوات‬ ‫من‬ ‫مجموعه‬ ‫عبارة‬ ‫هي‬
‫معينة‬ ‫مشكلة‬ ‫حل‬ ‫الي‬.
‫التالية‬ ‫الخطوات‬ ‫اتباع‬ ‫يجب‬ ‫الحاسوب‬ ‫في‬ ‫مشكلة‬ ‫اي‬ ‫ولحل‬:
1-‫اي‬ ‫المشكلة‬ ‫تعريف‬(‫فهمها‬)‫مدخالت‬ ‫وتحديد‬‫ومخرجات‬‫المشكلة‬ ‫هذه‬.
2-‫المشكلة‬ ‫لحل‬ ‫تؤدي‬ ‫التي‬ ‫المطلوبة‬ ‫العمليات‬ ‫تحديد‬.
3-‫الناتج‬ ‫وايجاد‬ ‫المشكلة‬ ‫لحل‬ ‫الحاسوب‬ ‫في‬ ‫البرنامج‬ ‫ادخال‬ ، ‫التنفيذ‬.
‫الخوارزميات‬ ‫في‬ ‫تتوفر‬ ‫التي‬ ‫المواصفات‬:
1- Input (less value 0 )
2- Output (less value 1)
3- Instruction
4- End ( Number of Steps )
The Relationship between Algorithms & Data
structure :-
‫الكائنات‬ ‫دمج‬ ‫نتيجة‬ ‫هي‬ ‫البيانات‬ ‫هياكل‬(Objects )‫الخوارزميات‬ ‫مع‬
What is the Object ?
Anything is an Object
Any Object Has :
 Attributes ‫خصائص‬
 Functions ‫أفعال‬
‫االنسيابية‬ ‫المخططات‬ ‫أشكال‬:
Identify the meaning of the these shapes
Basics of java
Reading…
 Structure of a program .
 Variables. Data Types .
 Basic Input/output .
Control Structures
 Conditional structure: if and else .
 Iteration structures (loops) : The for loop , do-while
 Functions .
END

More Related Content

What's hot

What's hot (19)

Odbms concepts
Odbms conceptsOdbms concepts
Odbms concepts
 
104333 sri vidhya eng notes
104333 sri vidhya eng notes104333 sri vidhya eng notes
104333 sri vidhya eng notes
 
Object oriented database concepts
Object oriented database conceptsObject oriented database concepts
Object oriented database concepts
 
Data structures basics
Data structures basicsData structures basics
Data structures basics
 
Object oriented databases
Object oriented databasesObject oriented databases
Object oriented databases
 
Object database standards, languages and design
Object database standards, languages and designObject database standards, languages and design
Object database standards, languages and design
 
data abstraction ,encapsulation,A.D.T
data abstraction ,encapsulation,A.D.Tdata abstraction ,encapsulation,A.D.T
data abstraction ,encapsulation,A.D.T
 
Introduction to Data Abstraction
Introduction to Data AbstractionIntroduction to Data Abstraction
Introduction to Data Abstraction
 
Encapsulation of operations, methods & persistence
Encapsulation of operations, methods & persistenceEncapsulation of operations, methods & persistence
Encapsulation of operations, methods & persistence
 
Dsa unit 1
Dsa unit 1Dsa unit 1
Dsa unit 1
 
Data structure
Data  structureData  structure
Data structure
 
EDI Training Module 12: An Introduction to Metadata and Data Repositories
EDI Training Module 12:  An Introduction to Metadata and Data RepositoriesEDI Training Module 12:  An Introduction to Metadata and Data Repositories
EDI Training Module 12: An Introduction to Metadata and Data Repositories
 
Introduction to Data Structures
Introduction to Data StructuresIntroduction to Data Structures
Introduction to Data Structures
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
Data Structure Introduction chapter 1
Data Structure Introduction chapter 1Data Structure Introduction chapter 1
Data Structure Introduction chapter 1
 
Data models
Data modelsData models
Data models
 
Data Structures - Lecture 2 [Introduction to Data Structures]
Data Structures - Lecture 2 [Introduction to Data Structures]Data Structures - Lecture 2 [Introduction to Data Structures]
Data Structures - Lecture 2 [Introduction to Data Structures]
 
Lecture 1 introduction
Lecture 1 introductionLecture 1 introduction
Lecture 1 introduction
 
Over view of data structures
Over view of data structuresOver view of data structures
Over view of data structures
 

Similar to Introduction to Data Structure

DSA 1- Introduction.pdf
DSA 1- Introduction.pdfDSA 1- Introduction.pdf
DSA 1- Introduction.pdf
AliyanAbbas1
 
Dsc -session01_introduction_to_data_structures_v2_1_.2
Dsc  -session01_introduction_to_data_structures_v2_1_.2Dsc  -session01_introduction_to_data_structures_v2_1_.2
Dsc -session01_introduction_to_data_structures_v2_1_.2
sivakumar323849
 

Similar to Introduction to Data Structure (20)

Lect 1-2 Zaheer Abbas
Lect 1-2 Zaheer AbbasLect 1-2 Zaheer Abbas
Lect 1-2 Zaheer Abbas
 
Lect 1-2
Lect 1-2Lect 1-2
Lect 1-2
 
DSA 1- Introduction.pdf
DSA 1- Introduction.pdfDSA 1- Introduction.pdf
DSA 1- Introduction.pdf
 
Chapter 1( intro & overview)
Chapter 1( intro & overview)Chapter 1( intro & overview)
Chapter 1( intro & overview)
 
Data structure
Data structureData structure
Data structure
 
Database
DatabaseDatabase
Database
 
Database
DatabaseDatabase
Database
 
Algorithms and Data Structures~hmftj
Algorithms and Data Structures~hmftjAlgorithms and Data Structures~hmftj
Algorithms and Data Structures~hmftj
 
Lesson 1 - Data Structures and Algorithms Overview.pdf
Lesson 1 - Data Structures and Algorithms Overview.pdfLesson 1 - Data Structures and Algorithms Overview.pdf
Lesson 1 - Data Structures and Algorithms Overview.pdf
 
data structures and its importance
 data structures and its importance  data structures and its importance
data structures and its importance
 
EE-232-LEC-01 Data_structures.pptx
EE-232-LEC-01 Data_structures.pptxEE-232-LEC-01 Data_structures.pptx
EE-232-LEC-01 Data_structures.pptx
 
Chapter 1 Introduction to Data Structures and Algorithms.pdf
Chapter 1 Introduction to Data Structures and Algorithms.pdfChapter 1 Introduction to Data Structures and Algorithms.pdf
Chapter 1 Introduction to Data Structures and Algorithms.pdf
 
8.unit-1-fds-2022-23.pptx
8.unit-1-fds-2022-23.pptx8.unit-1-fds-2022-23.pptx
8.unit-1-fds-2022-23.pptx
 
Database Management System, Lecture-1
Database Management System, Lecture-1Database Management System, Lecture-1
Database Management System, Lecture-1
 
Lecture1 data structure(introduction)
Lecture1 data structure(introduction)Lecture1 data structure(introduction)
Lecture1 data structure(introduction)
 
Basics of data structure
Basics of data structureBasics of data structure
Basics of data structure
 
Ch-1-Introduction-to-Database.pdf
Ch-1-Introduction-to-Database.pdfCh-1-Introduction-to-Database.pdf
Ch-1-Introduction-to-Database.pdf
 
Database
DatabaseDatabase
Database
 
Lecture 1 and 2
Lecture 1 and 2Lecture 1 and 2
Lecture 1 and 2
 
Dsc -session01_introduction_to_data_structures_v2_1_.2
Dsc  -session01_introduction_to_data_structures_v2_1_.2Dsc  -session01_introduction_to_data_structures_v2_1_.2
Dsc -session01_introduction_to_data_structures_v2_1_.2
 

Recently uploaded

Team Transformation Tactics for Holistic Testing and Quality (NewCrafts Paris...
Team Transformation Tactics for Holistic Testing and Quality (NewCrafts Paris...Team Transformation Tactics for Holistic Testing and Quality (NewCrafts Paris...
Team Transformation Tactics for Holistic Testing and Quality (NewCrafts Paris...
Lisi Hocke
 
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
drm1699
 

Recently uploaded (20)

From Knowledge Graphs via Lego Bricks to scientific conversations.pptx
From Knowledge Graphs via Lego Bricks to scientific conversations.pptxFrom Knowledge Graphs via Lego Bricks to scientific conversations.pptx
From Knowledge Graphs via Lego Bricks to scientific conversations.pptx
 
Community is Just as Important as Code by Andrea Goulet
Community is Just as Important as Code by Andrea GouletCommunity is Just as Important as Code by Andrea Goulet
Community is Just as Important as Code by Andrea Goulet
 
Abortion Clinic Pretoria ](+27832195400*)[ Abortion Clinic Near Me ● Abortion...
Abortion Clinic Pretoria ](+27832195400*)[ Abortion Clinic Near Me ● Abortion...Abortion Clinic Pretoria ](+27832195400*)[ Abortion Clinic Near Me ● Abortion...
Abortion Clinic Pretoria ](+27832195400*)[ Abortion Clinic Near Me ● Abortion...
 
Team Transformation Tactics for Holistic Testing and Quality (NewCrafts Paris...
Team Transformation Tactics for Holistic Testing and Quality (NewCrafts Paris...Team Transformation Tactics for Holistic Testing and Quality (NewCrafts Paris...
Team Transformation Tactics for Holistic Testing and Quality (NewCrafts Paris...
 
Abortion Pill Prices Germiston ](+27832195400*)[ 🏥 Women's Abortion Clinic in...
Abortion Pill Prices Germiston ](+27832195400*)[ 🏥 Women's Abortion Clinic in...Abortion Pill Prices Germiston ](+27832195400*)[ 🏥 Women's Abortion Clinic in...
Abortion Pill Prices Germiston ](+27832195400*)[ 🏥 Women's Abortion Clinic in...
 
Modern binary build systems - PyCon 2024
Modern binary build systems - PyCon 2024Modern binary build systems - PyCon 2024
Modern binary build systems - PyCon 2024
 
Lessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdfLessons Learned from Building a Serverless Notifications System.pdf
Lessons Learned from Building a Serverless Notifications System.pdf
 
Test Automation Design Patterns_ A Comprehensive Guide.pdf
Test Automation Design Patterns_ A Comprehensive Guide.pdfTest Automation Design Patterns_ A Comprehensive Guide.pdf
Test Automation Design Patterns_ A Comprehensive Guide.pdf
 
GraphSummit Milan - Visione e roadmap del prodotto Neo4j
GraphSummit Milan - Visione e roadmap del prodotto Neo4jGraphSummit Milan - Visione e roadmap del prodotto Neo4j
GraphSummit Milan - Visione e roadmap del prodotto Neo4j
 
Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...
Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...
Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...
 
The Strategic Impact of Buying vs Building in Test Automation
The Strategic Impact of Buying vs Building in Test AutomationThe Strategic Impact of Buying vs Building in Test Automation
The Strategic Impact of Buying vs Building in Test Automation
 
Software Engineering - Introduction + Process Models + Requirements Engineering
Software Engineering - Introduction + Process Models + Requirements EngineeringSoftware Engineering - Introduction + Process Models + Requirements Engineering
Software Engineering - Introduction + Process Models + Requirements Engineering
 
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
 
Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...
Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...
Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...
 
Navigation in flutter – how to add stack, tab, and drawer navigators to your ...
Navigation in flutter – how to add stack, tab, and drawer navigators to your ...Navigation in flutter – how to add stack, tab, and drawer navigators to your ...
Navigation in flutter – how to add stack, tab, and drawer navigators to your ...
 
architecting-ai-in-the-enterprise-apis-and-applications.pdf
architecting-ai-in-the-enterprise-apis-and-applications.pdfarchitecting-ai-in-the-enterprise-apis-and-applications.pdf
architecting-ai-in-the-enterprise-apis-and-applications.pdf
 
Abortion Pill Prices Turfloop ](+27832195400*)[ 🏥 Women's Abortion Clinic in ...
Abortion Pill Prices Turfloop ](+27832195400*)[ 🏥 Women's Abortion Clinic in ...Abortion Pill Prices Turfloop ](+27832195400*)[ 🏥 Women's Abortion Clinic in ...
Abortion Pill Prices Turfloop ](+27832195400*)[ 🏥 Women's Abortion Clinic in ...
 
CERVED e Neo4j su una nuvola, migrazione ed evoluzione di un grafo mission cr...
CERVED e Neo4j su una nuvola, migrazione ed evoluzione di un grafo mission cr...CERVED e Neo4j su una nuvola, migrazione ed evoluzione di un grafo mission cr...
CERVED e Neo4j su una nuvola, migrazione ed evoluzione di un grafo mission cr...
 
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
 
UNI DI NAPOLI FEDERICO II - Il ruolo dei grafi nell'AI Conversazionale Ibrida
UNI DI NAPOLI FEDERICO II - Il ruolo dei grafi nell'AI Conversazionale IbridaUNI DI NAPOLI FEDERICO II - Il ruolo dei grafi nell'AI Conversazionale Ibrida
UNI DI NAPOLI FEDERICO II - Il ruolo dei grafi nell'AI Conversazionale Ibrida
 

Introduction to Data Structure

  • 1. Algorithms & Data Structures Ust. Khalid Bana
  • 2. Data structures We have already learned how groups of sequential data can be used in C++ But this is somewhat restrictive, since in many occasions what we want to store are not mere sequences of elements all of the same data type , but sets of different elements with different data types.
  • 3. Data structures ( Cont… ) A data structure is a group of data elements grouped together under one name These data elements, known as members , can have different types and different lengths
  • 4. What about data structures Structure: how data is organized  Place data continue  Place data here and there with “links”  Place data with “formula”
  • 5. What about algorithms  Algorithms: how to access data for a result  Scan data sequentially  Scan data according to the sequence of a structure  Scan data with “formula”  Algorithms: how to provide a smart solution
  • 6. Basic data types – the simplest data structure Basic data types a language supports:  Integer, float, double, char, Boolean , String
  • 7. Basic Data structures  A single datum in one of the basic types  A structure is a combination of the basic types
  • 11. Different Between  Data  Information  Knowledge  Experience  Expert System
  • 12.  Data ‫الحالي‬ ‫الوقت‬ ‫في‬ ‫مفهومة‬ ‫وغير‬ ‫معالجتها‬ ‫تتم‬ ‫لم‬ ‫خام‬ ‫بيانات‬ ‫عن‬ ‫عبارة‬  Information ‫قيمة‬ ‫ولديها‬ ‫معالجتها‬ ‫تمت‬ ‫بيانات‬ ‫عن‬ ‫عبارة‬  Knowledge ‫الـــــــ‬ ‫من‬ ‫مجموعة‬ ‫عن‬ ‫عبارة‬Information
  • 13.  Experience ‫الـــــــ‬ ‫من‬ ‫مجموعة‬ ‫عن‬ ‫عبارة‬Knowledge  Expert System ‫الـــــــ‬ ‫من‬ ‫مجموعة‬ ‫عن‬ ‫عبارة‬ Decision Support System & Data Mining ‫البيانات‬ ‫وتنقيب‬ ‫القرار‬ ‫دعم‬ ‫نظم‬
  • 15. Data structures ‫لكثرة‬ ‫انشاؤها‬ ‫تم‬ ‫طريقة‬ ‫هي‬‫البيانات‬(Data)‫كل‬ ‫في‬ ‫المستخدمة‬‫المجاالت‬ ‫لزاما‬ ‫فكان‬‫وتنظيمها‬ ‫هيكلتها‬ ‫علينا‬‫لمعرفة‬‫للبيانات‬ ‫الوصول‬ ‫كيفية‬ ‫بالطرق‬‫االسهل‬‫واالدق‬.
  • 16. What the different between : Program & Algorithm ?  Program Syntax (Machine Languages)  Algorithm Semantic (Natural Languages ) or ( Human Languages)
  • 17. Algorithm ‫تؤدي‬ ‫والتي‬ ‫منطقي‬ ‫تسلسل‬ ‫المتسلسة‬ ‫الخطوات‬ ‫من‬ ‫مجموعه‬ ‫عبارة‬ ‫هي‬ ‫معينة‬ ‫مشكلة‬ ‫حل‬ ‫الي‬. ‫التالية‬ ‫الخطوات‬ ‫اتباع‬ ‫يجب‬ ‫الحاسوب‬ ‫في‬ ‫مشكلة‬ ‫اي‬ ‫ولحل‬: 1-‫اي‬ ‫المشكلة‬ ‫تعريف‬(‫فهمها‬)‫مدخالت‬ ‫وتحديد‬‫ومخرجات‬‫المشكلة‬ ‫هذه‬. 2-‫المشكلة‬ ‫لحل‬ ‫تؤدي‬ ‫التي‬ ‫المطلوبة‬ ‫العمليات‬ ‫تحديد‬. 3-‫الناتج‬ ‫وايجاد‬ ‫المشكلة‬ ‫لحل‬ ‫الحاسوب‬ ‫في‬ ‫البرنامج‬ ‫ادخال‬ ، ‫التنفيذ‬.
  • 18. ‫الخوارزميات‬ ‫في‬ ‫تتوفر‬ ‫التي‬ ‫المواصفات‬: 1- Input (less value 0 ) 2- Output (less value 1) 3- Instruction 4- End ( Number of Steps )
  • 19. The Relationship between Algorithms & Data structure :- ‫الكائنات‬ ‫دمج‬ ‫نتيجة‬ ‫هي‬ ‫البيانات‬ ‫هياكل‬(Objects )‫الخوارزميات‬ ‫مع‬ What is the Object ? Anything is an Object Any Object Has :  Attributes ‫خصائص‬  Functions ‫أفعال‬
  • 21. Basics of java Reading…  Structure of a program .  Variables. Data Types .  Basic Input/output .
  • 22. Control Structures  Conditional structure: if and else .  Iteration structures (loops) : The for loop , do-while  Functions .
  • 23. END