SlideShare a Scribd company logo
DATA STRUCTURE
Chapter 0: Intro File
Prepared & Presented by
Mr. Mahmoud R. Alfarra
2010-2011
College of Science & Technology
Dep. Of Computer Science & IT
BCs of Information Technology
http://mfarra.cst.ps
Outline
 Who is Lecturer ?!
 Course objectives
 Resources
 Course guidelines
 Assessment
 A word about lectures
 Sending Home works & Questions
 Office Hours
 How to be successfully ?!
 Course outlines
 What is Data Structures ?
 Classification of Data structure
 Ahl Aljanna 
Who is Lecturer ?!
 Mahmoud Rafeek Alfarra
 Certificates:
 MSc Computer Science,2008, Pattern Recognition, AAST, Alexandria, Egypt.
 BSc Computer Science,2004, The Islamic University of Gaza, Palestine.
 General Secondary School Certificate,1999, Science division, Khan Younis, Gaza, Palestine.
 Currently :
 Lecturer in CST (Full Time) since 4-2009 .
 Lecturer in UCAS as part time since 9-2008.
 Head of ITF2
 Past:
 Head Of Computer Center in CST (9-2009 To 10-2010)
 Head of ITF1
 Lecturer in QOU, UP, CST as Part Time
 Contacts:
 E-mail: m.farra@cst.ps Site: http://mfarra.cst.ps
 YouTube channel: mralfarra1 FaceBook Page: mahmoudRfarra
 Office: AD010
3
Presented & Prepared by: Mahmoud R. Alfarra
Course objectives
 This course aims to make the student capable
of understanding and writing:
 Algorithms of Sorting, Searching .
 Different data structures as:
 Array, ArrayList
 Linked List
 Stack
 Queue
 Tree
 Graph
4
Presented & Prepared by: Mahmoud R. Alfarra
Resources
 Power point’s files prepared by me.
 Books:
 DATA STRUCTURES AND ALGORITHMS USING C#, Michael
McMillan, Cambridge University Press, 2007
 C# How to Program, Sixth Edition, By H. M. Deitel - Deitel &
Associates, Inc., P. J. Deitel - Deitel & Associates, Inc.
5
Presented & Prepared by: Mahmoud R. Alfarra
Course guidelines
 We have a common goal: It is my job to
teach you what you need to know. Therefore…
 Ask me questions.
 Do NOT let me continue if you aren’t clear about
something and remember that: question is the
half of knowledge.
 If I go too fast, ask me to slow down.
 If I use a term that you aren’t familiar with, ask me
for a definition.
 Attendance: is encouraged and required.
6
Presented & Prepared by: Mahmoud R. Alfarra
Course guidelines
 Prepare yourself: For best understanding…
 Study lecture one by one
 Respect the lecture:
 Any noise made during the lecture (e.g. A mobile
phone ringing, a student talking to, or laughing
with his or her mate, absent) will be considered
impolite.
 Plagiarism is strictly punished: Don’t
associate people’s work to yourself. Site
everything you include in your reports that is
not your original work.
7
Presented & Prepared by: Mahmoud R. Alfarra
Assessment
8
100
60
Semester work
20
Theoretical Exam
10
Practical Exam
15
Quizzes & Attend.& HW
15
Project
40
Final T. Exam
Presented & Prepared by: Mahmoud R. Alfarra
A word about lectures
 PPT notes will be available for all lectures on my
web site, BUT:
 You learn better when you actually have to write
things down yourself.
 Just reading/Listening along with my notes makes
you sleepy.
 Everything I say is NOT in the lecture notes, but
anything I say MIGHT be on an exam or in a
assignments, so you need to take notes on what I
say
 In this course, you should read/do practice/ ask
many times if you hope to have an excellent grade.
9
Presented & Prepared by: Mahmoud R. Alfarra
Notations
10
Presented & Prepared by: Mahmoud R. Alfarra
Home Work HW 1.1
Be Care
Very Important information
Sending Home works &
Questions
 All home work must be send by CST’s moodle.
 All your asks can be send to my e-mail
m.farra@cst.ps.
 You must set the title of your mail as
 DS – Question – fname lname
 You must respect the dead Line of sending
home work.
11
Presented & Prepared by: Mahmoud R. Alfarra
Office Hours
 Office Hours are a greatly time to have a good
Science.
 They are yours.
 Every
 Wed (12:00 To 13:00)
 Thur. (11:00 To 12:00)
 Office (AD010)
12
Presented & Prepared by: Mahmoud R. Alfarra
How to be successfully ?!
 Prepare my lectures.
 Re-study them.
 Have a mood.
 Choose your friends.
 Ask allah .
13
Presented & Prepared by: Mahmoud R. Alfarra
Course outlines
 Array data structure
 Sorting Algorithms
 Searching Algorithms
 Dynamic Data Structures
 Array Lists
 Linked Lists
 Stacks
 Queues
 Trees, graphs
 Collection Classes
14
Presented & Prepared by: Mahmoud R. Alfarra
What is Data Structures ?
 The collection of basic data types is called
data structure.
15
Presented & Prepared by: Mahmoud R. Alfarra
Classification of data structure
16
Presented & Prepared by: Mahmoud R. Alfarra
Structure
Non Linear
Hierarchical
Group
Linear
Linear data structure
17
Presented & Prepared by: Mahmoud R. Alfarra
Head
Linked List
Stack
Queue
Non-linear data structure
 A hierarchical collection is a group of items
divided into levels. An item at one level can
have successor items located at the next lower
level.
18
Presented & Prepared by: Mahmoud R. Alfarra
Non-linear data structure
 A nonlinear collection of items that are
unordered is called a group.
 The three major categories of group
collections are sets, graphs, and networks.
19
Presented & Prepared by: Mahmoud R. Alfarra
Classification of data structure
20
Presented & Prepared by: Mahmoud R. Alfarra
Memory
allocation
Dynamic
Static
Static memory allocation
 Static memory allocation means the program
must obtain its space before the execution and
can not obtain more while or after execution.
 Example: array data structure
21
Presented & Prepared by: Mahmoud R. Alfarra
Dynamic memory allocation
 The dynamic memory allocation is the ability
for a program to obtain more memory space at
execution time to hold new nodes and to
release space no longer needed.
 Dynamic data structures as:
 Array lists
 Linked Lists
 Stacks
 Queues
 Trees
22
Presented & Prepared by: Mahmoud R. Alfarra
Ahel Eljanna 

‫لَّل‬
ُ‫م‬‫ه‬َ
‫لَّلو‬َ
َََ
‫ني‬ُ
‫دن‬‫د‬‫ا‬
‫ُؤ‬‫م‬‫لَّله‬‫ا‬ُ‫لَّله‬َ‫د‬‫د‬َ
‫ع‬َ
‫و‬
‫د‬‫د‬َُ‫لَّل‬ ِ‫د‬‫د‬ َ
‫لَّلن‬ َ ِ‫د‬‫د‬َ
َ
‫ني‬ُ
‫ن‬‫ا‬
‫ؤ‬
‫لَّل‬ُ ‫د‬‫د‬َ
‫لَّلني‬‫ي‬َ
‫ر‬
‫لَّل‬َ
َ ‫د‬‫د‬‫د‬َ‫ِم‬َ
ِ‫لَّل‬‫ا‬
‫دِل‬‫د‬‫د‬َ
‫ه‬ُ‫د‬‫ه‬َُ
‫لَّلهن‬ِ‫د‬‫د‬‫د‬َ
‫ه‬َ‫ت‬َُ
‫َت‬
‫لَّل‬
َ‫ي‬َ ‫لَّل‬َ
ََِ‫د‬‫د‬‫د‬َ
‫ك‬َ
‫ني‬َ
‫لَّلو‬ِ‫د‬‫د‬‫د‬َ
‫يه‬َ‫ف‬
‫لَّل‬ َ‫لَّل‬‫ي‬‫ِف‬‫د‬‫د‬‫د‬َ‫ب‬
‫لَّله‬ُ ‫د‬‫د‬َ
‫لَّلني‬َ‫ه‬َ
‫دم‬‫د‬ُ
‫ا‬َ
‫ل‬َ
‫لَّلو‬َُ ‫د‬‫د‬َ
‫لَّلع‬ َ ِ‫د‬‫د‬ َ
‫ن‬
‫لَّل‬َ ‫د‬‫د‬َ‫م‬َ‫ك‬‫لَّل‬‫ا‬
‫در‬‫د‬َ
‫د‬‫ب‬ُ
ََ‫ك‬‫لَّل‬َ‫د‬‫د‬‫م‬
‫لَّل‬َ
‫دم‬‫د‬‫ا‬
‫لَّله‬
‫لَّل‬
‫ا‬
‫يم‬َ
‫ظ‬َ
‫ُع‬‫م‬‫لَّله‬‫ا‬
‫ز‬ُ
‫م‬َ
‫ف‬ُ‫م‬‫ه‬
‫لَّل‬‫ِف‬‫همتمب‬
72
‫أشكركم‬
24
‫البيانات‬ ‫تراكيب‬ ‫مساق‬
‫إعداد‬ ‫العلمية‬ ‫المادة‬
/
‫أ‬
.
‫ا‬ َّ‫الفــر‬ ‫رفيق‬ ‫محمود‬
‫كلها‬ ‫للعلوم‬ ‫مفتاح‬ ‫السؤال‬
...
‫الجاذبيــة‬ ‫قوانين‬ ‫إلى‬ ‫وصل‬ ‫التفاحـة‬ ‫وقعت‬ ‫لماذا‬ ‫سأل‬ ‫عندما‬ ‫نيوتن‬ ‫أن‬ ‫تذكر‬
...
Ad

More Related Content

Similar to Chapter 0: introduction to data structure (20)

Welcome is431 s11
Welcome is431 s11Welcome is431 s11
Welcome is431 s11
Julian Scher
 
Amna Profile cv
Amna Profile cvAmna Profile cv
Amna Profile cv
Amna Manei
 
Lecture01 0089
Lecture01 0089Lecture01 0089
Lecture01 0089
ZUbaria Inayat
 
130704798265658191
130704798265658191130704798265658191
130704798265658191
Tanzeel Ahmad
 
Rami Almughrabi-Computer Science
Rami Almughrabi-Computer ScienceRami Almughrabi-Computer Science
Rami Almughrabi-Computer Science
Rami Al Mughrabi
 
Rasha Adil Alkhelaiwi
Rasha Adil AlkhelaiwiRasha Adil Alkhelaiwi
Rasha Adil Alkhelaiwi
Rasha ALkhelaiwi
 
Noura's _CV_LinkedIn
Noura's _CV_LinkedInNoura's _CV_LinkedIn
Noura's _CV_LinkedIn
Noura Al Marri
 
FRANK HORNSBY C.V[1]
FRANK HORNSBY C.V[1]FRANK HORNSBY C.V[1]
FRANK HORNSBY C.V[1]
Frank Ips
 
Datastructure_Course Plan_and_evaluation_.pptx
Datastructure_Course Plan_and_evaluation_.pptxDatastructure_Course Plan_and_evaluation_.pptx
Datastructure_Course Plan_and_evaluation_.pptx
wakeb66535
 
Fundamental Programming Lect 1
Fundamental Programming Lect 1Fundamental Programming Lect 1
Fundamental Programming Lect 1
Namrah Erum
 
MY CV
MY CVMY CV
MY CV
ALI Aizaz Shaikh
 
Resume_Shubham
Resume_ShubhamResume_Shubham
Resume_Shubham
Shubham Sharma
 
CV HEBA NEEEW
CV HEBA NEEEWCV HEBA NEEEW
CV HEBA NEEEW
Heba Zo3bi alzoubi
 
Thabiso CURRICULUM VITAE
Thabiso CURRICULUM VITAEThabiso CURRICULUM VITAE
Thabiso CURRICULUM VITAE
Thabiso Motsoane
 
Lobna Adwan CV
Lobna Adwan CVLobna Adwan CV
Lobna Adwan CV
Lobna Adwan
 
Tema_SM[1]
Tema_SM[1]Tema_SM[1]
Tema_SM[1]
Stephen Tema
 
Resume
ResumeResume
Resume
Chi Chan
 
#CV
#CV#CV
#CV
Hisham AL-Fayomi
 
Course Overview
Course OverviewCourse Overview
Course Overview
marcacohen
 
ahmed elbatrawy_2
ahmed elbatrawy_2ahmed elbatrawy_2
ahmed elbatrawy_2
Ahmed Elbatrwy
 

More from Mahmoud Alfarra (20)

Computer Programming, Loops using Java - part 2
Computer Programming, Loops using Java - part 2Computer Programming, Loops using Java - part 2
Computer Programming, Loops using Java - part 2
Mahmoud Alfarra
 
Computer Programming, Loops using Java
Computer Programming, Loops using JavaComputer Programming, Loops using Java
Computer Programming, Loops using Java
Mahmoud Alfarra
 
Chapter 10: hashing data structure
Chapter 10:  hashing data structureChapter 10:  hashing data structure
Chapter 10: hashing data structure
Mahmoud Alfarra
 
Chapter9 graph data structure
Chapter9  graph data structureChapter9  graph data structure
Chapter9 graph data structure
Mahmoud Alfarra
 
Chapter 8: tree data structure
Chapter 8:  tree data structureChapter 8:  tree data structure
Chapter 8: tree data structure
Mahmoud Alfarra
 
Chapter 7: Queue data structure
Chapter 7:  Queue data structureChapter 7:  Queue data structure
Chapter 7: Queue data structure
Mahmoud Alfarra
 
Chapter 6: stack data structure
Chapter 6:  stack data structureChapter 6:  stack data structure
Chapter 6: stack data structure
Mahmoud Alfarra
 
Chapter 5: linked list data structure
Chapter 5: linked list data structureChapter 5: linked list data structure
Chapter 5: linked list data structure
Mahmoud Alfarra
 
Chapter 4: basic search algorithms data structure
Chapter 4: basic search algorithms data structureChapter 4: basic search algorithms data structure
Chapter 4: basic search algorithms data structure
Mahmoud Alfarra
 
Chapter 3: basic sorting algorithms data structure
Chapter 3: basic sorting algorithms data structureChapter 3: basic sorting algorithms data structure
Chapter 3: basic sorting algorithms data structure
Mahmoud Alfarra
 
Chapter 2: array and array list data structure
Chapter 2: array and array list  data structureChapter 2: array and array list  data structure
Chapter 2: array and array list data structure
Mahmoud Alfarra
 
Chapter1 intro toprincipleofc#_datastructure_b_cs
Chapter1  intro toprincipleofc#_datastructure_b_csChapter1  intro toprincipleofc#_datastructure_b_cs
Chapter1 intro toprincipleofc#_datastructure_b_cs
Mahmoud Alfarra
 
3 classification
3  classification3  classification
3 classification
Mahmoud Alfarra
 
8 programming-using-java decision-making practices 20102011
8 programming-using-java decision-making practices 201020118 programming-using-java decision-making practices 20102011
8 programming-using-java decision-making practices 20102011
Mahmoud Alfarra
 
7 programming-using-java decision-making220102011
7 programming-using-java decision-making2201020117 programming-using-java decision-making220102011
7 programming-using-java decision-making220102011
Mahmoud Alfarra
 
6 programming-using-java decision-making20102011-
6 programming-using-java decision-making20102011-6 programming-using-java decision-making20102011-
6 programming-using-java decision-making20102011-
Mahmoud Alfarra
 
5 programming-using-java intro-tooop20102011
5 programming-using-java intro-tooop201020115 programming-using-java intro-tooop20102011
5 programming-using-java intro-tooop20102011
Mahmoud Alfarra
 
4 programming-using-java intro-tojava20102011
4 programming-using-java intro-tojava201020114 programming-using-java intro-tojava20102011
4 programming-using-java intro-tojava20102011
Mahmoud Alfarra
 
3 programming-using-java introduction-to computer
3 programming-using-java introduction-to computer3 programming-using-java introduction-to computer
3 programming-using-java introduction-to computer
Mahmoud Alfarra
 
2 programming-using-java how to built application
2 programming-using-java how to built application2 programming-using-java how to built application
2 programming-using-java how to built application
Mahmoud Alfarra
 
Computer Programming, Loops using Java - part 2
Computer Programming, Loops using Java - part 2Computer Programming, Loops using Java - part 2
Computer Programming, Loops using Java - part 2
Mahmoud Alfarra
 
Computer Programming, Loops using Java
Computer Programming, Loops using JavaComputer Programming, Loops using Java
Computer Programming, Loops using Java
Mahmoud Alfarra
 
Chapter 10: hashing data structure
Chapter 10:  hashing data structureChapter 10:  hashing data structure
Chapter 10: hashing data structure
Mahmoud Alfarra
 
Chapter9 graph data structure
Chapter9  graph data structureChapter9  graph data structure
Chapter9 graph data structure
Mahmoud Alfarra
 
Chapter 8: tree data structure
Chapter 8:  tree data structureChapter 8:  tree data structure
Chapter 8: tree data structure
Mahmoud Alfarra
 
Chapter 7: Queue data structure
Chapter 7:  Queue data structureChapter 7:  Queue data structure
Chapter 7: Queue data structure
Mahmoud Alfarra
 
Chapter 6: stack data structure
Chapter 6:  stack data structureChapter 6:  stack data structure
Chapter 6: stack data structure
Mahmoud Alfarra
 
Chapter 5: linked list data structure
Chapter 5: linked list data structureChapter 5: linked list data structure
Chapter 5: linked list data structure
Mahmoud Alfarra
 
Chapter 4: basic search algorithms data structure
Chapter 4: basic search algorithms data structureChapter 4: basic search algorithms data structure
Chapter 4: basic search algorithms data structure
Mahmoud Alfarra
 
Chapter 3: basic sorting algorithms data structure
Chapter 3: basic sorting algorithms data structureChapter 3: basic sorting algorithms data structure
Chapter 3: basic sorting algorithms data structure
Mahmoud Alfarra
 
Chapter 2: array and array list data structure
Chapter 2: array and array list  data structureChapter 2: array and array list  data structure
Chapter 2: array and array list data structure
Mahmoud Alfarra
 
Chapter1 intro toprincipleofc#_datastructure_b_cs
Chapter1  intro toprincipleofc#_datastructure_b_csChapter1  intro toprincipleofc#_datastructure_b_cs
Chapter1 intro toprincipleofc#_datastructure_b_cs
Mahmoud Alfarra
 
8 programming-using-java decision-making practices 20102011
8 programming-using-java decision-making practices 201020118 programming-using-java decision-making practices 20102011
8 programming-using-java decision-making practices 20102011
Mahmoud Alfarra
 
7 programming-using-java decision-making220102011
7 programming-using-java decision-making2201020117 programming-using-java decision-making220102011
7 programming-using-java decision-making220102011
Mahmoud Alfarra
 
6 programming-using-java decision-making20102011-
6 programming-using-java decision-making20102011-6 programming-using-java decision-making20102011-
6 programming-using-java decision-making20102011-
Mahmoud Alfarra
 
5 programming-using-java intro-tooop20102011
5 programming-using-java intro-tooop201020115 programming-using-java intro-tooop20102011
5 programming-using-java intro-tooop20102011
Mahmoud Alfarra
 
4 programming-using-java intro-tojava20102011
4 programming-using-java intro-tojava201020114 programming-using-java intro-tojava20102011
4 programming-using-java intro-tojava20102011
Mahmoud Alfarra
 
3 programming-using-java introduction-to computer
3 programming-using-java introduction-to computer3 programming-using-java introduction-to computer
3 programming-using-java introduction-to computer
Mahmoud Alfarra
 
2 programming-using-java how to built application
2 programming-using-java how to built application2 programming-using-java how to built application
2 programming-using-java how to built application
Mahmoud Alfarra
 
Ad

Recently uploaded (20)

K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public SchoolsK12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
dogden2
 
To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
03#UNTAGGED. Generosity in architecture.
03#UNTAGGED. Generosity in architecture.03#UNTAGGED. Generosity in architecture.
03#UNTAGGED. Generosity in architecture.
MCH
 
How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025
Mebane Rash
 
One Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learningOne Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learning
momer9505
 
Biophysics Chapter 3 Methods of Studying Macromolecules.pdf
Biophysics Chapter 3 Methods of Studying Macromolecules.pdfBiophysics Chapter 3 Methods of Studying Macromolecules.pdf
Biophysics Chapter 3 Methods of Studying Macromolecules.pdf
PKLI-Institute of Nursing and Allied Health Sciences Lahore , Pakistan.
 
How to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odooHow to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odoo
Celine George
 
How to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POSHow to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POS
Celine George
 
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar RabbiPresentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Md Shaifullar Rabbi
 
Political History of Pala dynasty Pala Rulers NEP.pptx
Political History of Pala dynasty Pala Rulers NEP.pptxPolitical History of Pala dynasty Pala Rulers NEP.pptx
Political History of Pala dynasty Pala Rulers NEP.pptx
Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
Geography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjectsGeography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjects
ProfDrShaikhImran
 
Introduction-to-Communication-and-Media-Studies-1736283331.pdf
Introduction-to-Communication-and-Media-Studies-1736283331.pdfIntroduction-to-Communication-and-Media-Studies-1736283331.pdf
Introduction-to-Communication-and-Media-Studies-1736283331.pdf
james5028
 
Operations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdfOperations Management (Dr. Abdulfatah Salem).pdf
Operations Management (Dr. Abdulfatah Salem).pdf
Arab Academy for Science, Technology and Maritime Transport
 
Kasdorf "Accessibility Essentials: A 2025 NISO Training Series, Session 5, Ac...
Kasdorf "Accessibility Essentials: A 2025 NISO Training Series, Session 5, Ac...Kasdorf "Accessibility Essentials: A 2025 NISO Training Series, Session 5, Ac...
Kasdorf "Accessibility Essentials: A 2025 NISO Training Series, Session 5, Ac...
National Information Standards Organization (NISO)
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 
Exercise Physiology MCQS By DR. NASIR MUSTAFA
Exercise Physiology MCQS By DR. NASIR MUSTAFAExercise Physiology MCQS By DR. NASIR MUSTAFA
Exercise Physiology MCQS By DR. NASIR MUSTAFA
Dr. Nasir Mustafa
 
Herbs Used in Cosmetic Formulations .pptx
Herbs Used in Cosmetic Formulations .pptxHerbs Used in Cosmetic Formulations .pptx
Herbs Used in Cosmetic Formulations .pptx
RAJU THENGE
 
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public SchoolsK12 Tableau Tuesday  - Algebra Equity and Access in Atlanta Public Schools
K12 Tableau Tuesday - Algebra Equity and Access in Atlanta Public Schools
dogden2
 
To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
03#UNTAGGED. Generosity in architecture.
03#UNTAGGED. Generosity in architecture.03#UNTAGGED. Generosity in architecture.
03#UNTAGGED. Generosity in architecture.
MCH
 
How to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of saleHow to manage Multiple Warehouses for multiple floors in odoo point of sale
How to manage Multiple Warehouses for multiple floors in odoo point of sale
Celine George
 
Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025Stein, Hunt, Green letter to Congress April 2025
Stein, Hunt, Green letter to Congress April 2025
Mebane Rash
 
One Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learningOne Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learning
momer9505
 
How to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odooHow to Set warnings for invoicing specific customers in odoo
How to Set warnings for invoicing specific customers in odoo
Celine George
 
How to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POSHow to Manage Opening & Closing Controls in Odoo 17 POS
How to Manage Opening & Closing Controls in Odoo 17 POS
Celine George
 
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar RabbiPresentation on Tourism Product Development By Md Shaifullar Rabbi
Presentation on Tourism Product Development By Md Shaifullar Rabbi
Md Shaifullar Rabbi
 
Geography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjectsGeography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjects
ProfDrShaikhImran
 
Introduction-to-Communication-and-Media-Studies-1736283331.pdf
Introduction-to-Communication-and-Media-Studies-1736283331.pdfIntroduction-to-Communication-and-Media-Studies-1736283331.pdf
Introduction-to-Communication-and-Media-Studies-1736283331.pdf
james5028
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 
Exercise Physiology MCQS By DR. NASIR MUSTAFA
Exercise Physiology MCQS By DR. NASIR MUSTAFAExercise Physiology MCQS By DR. NASIR MUSTAFA
Exercise Physiology MCQS By DR. NASIR MUSTAFA
Dr. Nasir Mustafa
 
Herbs Used in Cosmetic Formulations .pptx
Herbs Used in Cosmetic Formulations .pptxHerbs Used in Cosmetic Formulations .pptx
Herbs Used in Cosmetic Formulations .pptx
RAJU THENGE
 
Ad

Chapter 0: introduction to data structure

  • 1. DATA STRUCTURE Chapter 0: Intro File Prepared & Presented by Mr. Mahmoud R. Alfarra 2010-2011 College of Science & Technology Dep. Of Computer Science & IT BCs of Information Technology http://mfarra.cst.ps
  • 2. Outline  Who is Lecturer ?!  Course objectives  Resources  Course guidelines  Assessment  A word about lectures  Sending Home works & Questions  Office Hours  How to be successfully ?!  Course outlines  What is Data Structures ?  Classification of Data structure  Ahl Aljanna 
  • 3. Who is Lecturer ?!  Mahmoud Rafeek Alfarra  Certificates:  MSc Computer Science,2008, Pattern Recognition, AAST, Alexandria, Egypt.  BSc Computer Science,2004, The Islamic University of Gaza, Palestine.  General Secondary School Certificate,1999, Science division, Khan Younis, Gaza, Palestine.  Currently :  Lecturer in CST (Full Time) since 4-2009 .  Lecturer in UCAS as part time since 9-2008.  Head of ITF2  Past:  Head Of Computer Center in CST (9-2009 To 10-2010)  Head of ITF1  Lecturer in QOU, UP, CST as Part Time  Contacts:  E-mail: [email protected] Site: http://mfarra.cst.ps  YouTube channel: mralfarra1 FaceBook Page: mahmoudRfarra  Office: AD010 3 Presented & Prepared by: Mahmoud R. Alfarra
  • 4. Course objectives  This course aims to make the student capable of understanding and writing:  Algorithms of Sorting, Searching .  Different data structures as:  Array, ArrayList  Linked List  Stack  Queue  Tree  Graph 4 Presented & Prepared by: Mahmoud R. Alfarra
  • 5. Resources  Power point’s files prepared by me.  Books:  DATA STRUCTURES AND ALGORITHMS USING C#, Michael McMillan, Cambridge University Press, 2007  C# How to Program, Sixth Edition, By H. M. Deitel - Deitel & Associates, Inc., P. J. Deitel - Deitel & Associates, Inc. 5 Presented & Prepared by: Mahmoud R. Alfarra
  • 6. Course guidelines  We have a common goal: It is my job to teach you what you need to know. Therefore…  Ask me questions.  Do NOT let me continue if you aren’t clear about something and remember that: question is the half of knowledge.  If I go too fast, ask me to slow down.  If I use a term that you aren’t familiar with, ask me for a definition.  Attendance: is encouraged and required. 6 Presented & Prepared by: Mahmoud R. Alfarra
  • 7. Course guidelines  Prepare yourself: For best understanding…  Study lecture one by one  Respect the lecture:  Any noise made during the lecture (e.g. A mobile phone ringing, a student talking to, or laughing with his or her mate, absent) will be considered impolite.  Plagiarism is strictly punished: Don’t associate people’s work to yourself. Site everything you include in your reports that is not your original work. 7 Presented & Prepared by: Mahmoud R. Alfarra
  • 8. Assessment 8 100 60 Semester work 20 Theoretical Exam 10 Practical Exam 15 Quizzes & Attend.& HW 15 Project 40 Final T. Exam Presented & Prepared by: Mahmoud R. Alfarra
  • 9. A word about lectures  PPT notes will be available for all lectures on my web site, BUT:  You learn better when you actually have to write things down yourself.  Just reading/Listening along with my notes makes you sleepy.  Everything I say is NOT in the lecture notes, but anything I say MIGHT be on an exam or in a assignments, so you need to take notes on what I say  In this course, you should read/do practice/ ask many times if you hope to have an excellent grade. 9 Presented & Prepared by: Mahmoud R. Alfarra
  • 10. Notations 10 Presented & Prepared by: Mahmoud R. Alfarra Home Work HW 1.1 Be Care Very Important information
  • 11. Sending Home works & Questions  All home work must be send by CST’s moodle.  All your asks can be send to my e-mail [email protected].  You must set the title of your mail as  DS – Question – fname lname  You must respect the dead Line of sending home work. 11 Presented & Prepared by: Mahmoud R. Alfarra
  • 12. Office Hours  Office Hours are a greatly time to have a good Science.  They are yours.  Every  Wed (12:00 To 13:00)  Thur. (11:00 To 12:00)  Office (AD010) 12 Presented & Prepared by: Mahmoud R. Alfarra
  • 13. How to be successfully ?!  Prepare my lectures.  Re-study them.  Have a mood.  Choose your friends.  Ask allah . 13 Presented & Prepared by: Mahmoud R. Alfarra
  • 14. Course outlines  Array data structure  Sorting Algorithms  Searching Algorithms  Dynamic Data Structures  Array Lists  Linked Lists  Stacks  Queues  Trees, graphs  Collection Classes 14 Presented & Prepared by: Mahmoud R. Alfarra
  • 15. What is Data Structures ?  The collection of basic data types is called data structure. 15 Presented & Prepared by: Mahmoud R. Alfarra
  • 16. Classification of data structure 16 Presented & Prepared by: Mahmoud R. Alfarra Structure Non Linear Hierarchical Group Linear
  • 17. Linear data structure 17 Presented & Prepared by: Mahmoud R. Alfarra Head Linked List Stack Queue
  • 18. Non-linear data structure  A hierarchical collection is a group of items divided into levels. An item at one level can have successor items located at the next lower level. 18 Presented & Prepared by: Mahmoud R. Alfarra
  • 19. Non-linear data structure  A nonlinear collection of items that are unordered is called a group.  The three major categories of group collections are sets, graphs, and networks. 19 Presented & Prepared by: Mahmoud R. Alfarra
  • 20. Classification of data structure 20 Presented & Prepared by: Mahmoud R. Alfarra Memory allocation Dynamic Static
  • 21. Static memory allocation  Static memory allocation means the program must obtain its space before the execution and can not obtain more while or after execution.  Example: array data structure 21 Presented & Prepared by: Mahmoud R. Alfarra
  • 22. Dynamic memory allocation  The dynamic memory allocation is the ability for a program to obtain more memory space at execution time to hold new nodes and to release space no longer needed.  Dynamic data structures as:  Array lists  Linked Lists  Stacks  Queues  Trees 22 Presented & Prepared by: Mahmoud R. Alfarra
  • 23. Ahel Eljanna   ‫لَّل‬ ُ‫م‬‫ه‬َ ‫لَّلو‬َ َََ ‫ني‬ُ ‫دن‬‫د‬‫ا‬ ‫ُؤ‬‫م‬‫لَّله‬‫ا‬ُ‫لَّله‬َ‫د‬‫د‬َ ‫ع‬َ ‫و‬ ‫د‬‫د‬َُ‫لَّل‬ ِ‫د‬‫د‬ َ ‫لَّلن‬ َ ِ‫د‬‫د‬َ َ ‫ني‬ُ ‫ن‬‫ا‬ ‫ؤ‬ ‫لَّل‬ُ ‫د‬‫د‬َ ‫لَّلني‬‫ي‬َ ‫ر‬ ‫لَّل‬َ َ ‫د‬‫د‬‫د‬َ‫ِم‬َ ِ‫لَّل‬‫ا‬ ‫دِل‬‫د‬‫د‬َ ‫ه‬ُ‫د‬‫ه‬َُ ‫لَّلهن‬ِ‫د‬‫د‬‫د‬َ ‫ه‬َ‫ت‬َُ ‫َت‬ ‫لَّل‬ َ‫ي‬َ ‫لَّل‬َ ََِ‫د‬‫د‬‫د‬َ ‫ك‬َ ‫ني‬َ ‫لَّلو‬ِ‫د‬‫د‬‫د‬َ ‫يه‬َ‫ف‬ ‫لَّل‬ َ‫لَّل‬‫ي‬‫ِف‬‫د‬‫د‬‫د‬َ‫ب‬ ‫لَّله‬ُ ‫د‬‫د‬َ ‫لَّلني‬َ‫ه‬َ ‫دم‬‫د‬ُ ‫ا‬َ ‫ل‬َ ‫لَّلو‬َُ ‫د‬‫د‬َ ‫لَّلع‬ َ ِ‫د‬‫د‬ َ ‫ن‬ ‫لَّل‬َ ‫د‬‫د‬َ‫م‬َ‫ك‬‫لَّل‬‫ا‬ ‫در‬‫د‬َ ‫د‬‫ب‬ُ ََ‫ك‬‫لَّل‬َ‫د‬‫د‬‫م‬ ‫لَّل‬َ ‫دم‬‫د‬‫ا‬ ‫لَّله‬ ‫لَّل‬ ‫ا‬ ‫يم‬َ ‫ظ‬َ ‫ُع‬‫م‬‫لَّله‬‫ا‬ ‫ز‬ُ ‫م‬َ ‫ف‬ُ‫م‬‫ه‬ ‫لَّل‬‫ِف‬‫همتمب‬ 72
  • 24. ‫أشكركم‬ 24 ‫البيانات‬ ‫تراكيب‬ ‫مساق‬ ‫إعداد‬ ‫العلمية‬ ‫المادة‬ / ‫أ‬ . ‫ا‬ َّ‫الفــر‬ ‫رفيق‬ ‫محمود‬ ‫كلها‬ ‫للعلوم‬ ‫مفتاح‬ ‫السؤال‬ ... ‫الجاذبيــة‬ ‫قوانين‬ ‫إلى‬ ‫وصل‬ ‫التفاحـة‬ ‫وقعت‬ ‫لماذا‬ ‫سأل‬ ‫عندما‬ ‫نيوتن‬ ‫أن‬ ‫تذكر‬ ...