SlideShare una empresa de Scribd logo
1 de 34
Data Structures and Algorithm Analysis Dr. Nagwa Badr
The Need for Data Structures ,[object Object],[object Object],[object Object],[object Object],[object Object]
What is a data structure? ,[object Object],[object Object]
Organizing Data ,[object Object],[object Object]
Efficiency ,[object Object],[object Object],[object Object],[object Object]
Costs and Benefits ,[object Object],[object Object],[object Object],[object Object]
Example: Banking Application ,[object Object],[object Object],[object Object],[object Object],[object Object]
Example: Banking Application ,[object Object],[object Object]
Example: Banking Application ,[object Object],[object Object],[object Object],[object Object]
Example: Banking Application ,[object Object],[object Object],[object Object],[object Object],[object Object]
Example: City Database ,[object Object],[object Object],[object Object]
Example: City Database ,[object Object],[object Object],[object Object]
Example: City Database ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Selecting a Data Structure ,[object Object],[object Object],[object Object],[object Object]
Some Questions to Ask ,[object Object],[object Object],[object Object]
Data Structure Philosophy ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Data Structure Philosophy  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],continued
Goals of this Course ,[object Object],[object Object],[object Object],[object Object],[object Object]
Abstract Data Types ,[object Object],[object Object],[object Object]
Data Structure ,[object Object],[object Object],[object Object],[object Object],[object Object]
Labeling collections of objects ,[object Object],[object Object],[object Object],[object Object]
Logical vs. Physical Form ,[object Object],[object Object],[object Object],[object Object],[object Object]
Data Type ,[object Object],[object Object],[object Object],Data Items:  Logical Form Data Items: Physical Form ,[object Object],[object Object],[object Object]
Problems, Algorithms and Programs ,[object Object],[object Object],[object Object],[object Object],[object Object]
Problems ,[object Object],[object Object],[object Object]
Problems (cont) ,[object Object],[object Object],[object Object],[object Object],[object Object]
Algorithms and Programs ,[object Object],[object Object],[object Object],[object Object],[object Object]
A problem can have many algorithms  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Algorithm Properties ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Programs ,[object Object],[object Object]
To Summarize: ,[object Object],[object Object],[object Object]
Example ,[object Object],[object Object],[object Object],[object Object],[object Object]
Example (cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
In class exercises ,[object Object],[object Object]

Más contenido relacionado

La actualidad más candente

DMDW Lesson 04 - Data Mining Theory
DMDW Lesson 04 - Data Mining TheoryDMDW Lesson 04 - Data Mining Theory
DMDW Lesson 04 - Data Mining Theory
Johannes Hoppe
 

La actualidad más candente (19)

Unit 1 dsa
Unit 1 dsaUnit 1 dsa
Unit 1 dsa
 
Introduction to data structure and algorithms
Introduction to data structure and algorithmsIntroduction to data structure and algorithms
Introduction to data structure and algorithms
 
Major ppt
Major pptMajor ppt
Major ppt
 
Binary Sort
Binary SortBinary Sort
Binary Sort
 
DMDW Lesson 04 - Data Mining Theory
DMDW Lesson 04 - Data Mining TheoryDMDW Lesson 04 - Data Mining Theory
DMDW Lesson 04 - Data Mining Theory
 
Machine Learning for Dummies
Machine Learning for DummiesMachine Learning for Dummies
Machine Learning for Dummies
 
Algorithms.
Algorithms. Algorithms.
Algorithms.
 
Abstract data types
Abstract data typesAbstract data types
Abstract data types
 
Data Structure and Algorithms
Data Structure and AlgorithmsData Structure and Algorithms
Data Structure and Algorithms
 
A Friendly Introduction to Machine Learning
A Friendly Introduction to Machine LearningA Friendly Introduction to Machine Learning
A Friendly Introduction to Machine Learning
 
Prog lang-c
Prog lang-cProg lang-c
Prog lang-c
 
Cs 331 Data Structures
Cs 331 Data StructuresCs 331 Data Structures
Cs 331 Data Structures
 
Top tableau questions and answers in 2019
Top tableau questions and answers in 2019Top tableau questions and answers in 2019
Top tableau questions and answers in 2019
 
Introduction to data_structure
Introduction to data_structureIntroduction to data_structure
Introduction to data_structure
 
DATA STRUCTURE AND ALGORITHM FULL NOTES
DATA STRUCTURE AND ALGORITHM FULL NOTESDATA STRUCTURE AND ALGORITHM FULL NOTES
DATA STRUCTURE AND ALGORITHM FULL NOTES
 
DataRobot R Package
DataRobot R PackageDataRobot R Package
DataRobot R Package
 
VTU 7TH SEM CSE DATA WAREHOUSING AND DATA MINING SOLVED PAPERS OF DEC2013 JUN...
VTU 7TH SEM CSE DATA WAREHOUSING AND DATA MINING SOLVED PAPERS OF DEC2013 JUN...VTU 7TH SEM CSE DATA WAREHOUSING AND DATA MINING SOLVED PAPERS OF DEC2013 JUN...
VTU 7TH SEM CSE DATA WAREHOUSING AND DATA MINING SOLVED PAPERS OF DEC2013 JUN...
 
Study on Sorting Algorithm and Position Determining Sort
Study on Sorting Algorithm and Position Determining SortStudy on Sorting Algorithm and Position Determining Sort
Study on Sorting Algorithm and Position Determining Sort
 
NLP applied to French legal decisions
NLP applied to French legal decisionsNLP applied to French legal decisions
NLP applied to French legal decisions
 

Similar a Lec1

CS3114_09212011.ppt
CS3114_09212011.pptCS3114_09212011.ppt
CS3114_09212011.ppt
Arumugam90
 

Similar a Lec1 (20)

Lect1.pptx
Lect1.pptxLect1.pptx
Lect1.pptx
 
Data Structures and Algorithms Unit 01
Data Structures and Algorithms Unit 01Data Structures and Algorithms Unit 01
Data Structures and Algorithms Unit 01
 
Chapter 1 Data structure.pptx
Chapter 1 Data structure.pptxChapter 1 Data structure.pptx
Chapter 1 Data structure.pptx
 
Introduction to Data Structure
Introduction to Data Structure Introduction to Data Structure
Introduction to Data Structure
 
Chapter 1( intro & overview)
Chapter 1( intro & overview)Chapter 1( intro & overview)
Chapter 1( intro & overview)
 
Introduction to Data Structure and algorithm.pptx
Introduction to Data Structure and algorithm.pptxIntroduction to Data Structure and algorithm.pptx
Introduction to Data Structure and algorithm.pptx
 
algo 1.ppt
algo 1.pptalgo 1.ppt
algo 1.ppt
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
251 - Alogarithms Lects.pdf
251 - Alogarithms Lects.pdf251 - Alogarithms Lects.pdf
251 - Alogarithms Lects.pdf
 
Intro to DS.pptx
Intro to DS.pptxIntro to DS.pptx
Intro to DS.pptx
 
CS3114_09212011.ppt
CS3114_09212011.pptCS3114_09212011.ppt
CS3114_09212011.ppt
 
Chapter 1- IT.pptx
Chapter 1- IT.pptxChapter 1- IT.pptx
Chapter 1- IT.pptx
 
Lecture#1(Algorithmic Notations).ppt
Lecture#1(Algorithmic Notations).pptLecture#1(Algorithmic Notations).ppt
Lecture#1(Algorithmic Notations).ppt
 
Lecture 1 and 2
Lecture 1 and 2Lecture 1 and 2
Lecture 1 and 2
 
Introduction to Data structure and algorithm.pptx
Introduction to Data structure and algorithm.pptxIntroduction to Data structure and algorithm.pptx
Introduction to Data structure and algorithm.pptx
 
RAJAT PROJECT.pptx
RAJAT PROJECT.pptxRAJAT PROJECT.pptx
RAJAT PROJECT.pptx
 
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
 
Data structures & problem solving unit 1 ppt
Data structures & problem solving unit 1 pptData structures & problem solving unit 1 ppt
Data structures & problem solving unit 1 ppt
 
Basic of Data Structure - Data Structure - Notes
Basic of Data Structure - Data Structure - NotesBasic of Data Structure - Data Structure - Notes
Basic of Data Structure - Data Structure - Notes
 
data structures and its importance
 data structures and its importance  data structures and its importance
data structures and its importance
 

Más de Ibrahim El-Torbany (15)

Idea2
Idea2Idea2
Idea2
 
Cpp lernaufgabe linked_list
Cpp lernaufgabe linked_listCpp lernaufgabe linked_list
Cpp lernaufgabe linked_list
 
C++ examples &revisions
C++ examples &revisionsC++ examples &revisions
C++ examples &revisions
 
Lec6 mod linked list
Lec6 mod linked listLec6 mod linked list
Lec6 mod linked list
 
Lec5
Lec5Lec5
Lec5
 
Lec3
Lec3Lec3
Lec3
 
Lec2
Lec2Lec2
Lec2
 
Lec2&3 data structure
Lec2&3 data structureLec2&3 data structure
Lec2&3 data structure
 
Lec4
Lec4Lec4
Lec4
 
Ass logic
Ass logicAss logic
Ass logic
 
Math lecture 4 Part 1
Math lecture 4 Part 1Math lecture 4 Part 1
Math lecture 4 Part 1
 
Tutorial 1
Tutorial 1Tutorial 1
Tutorial 1
 
Lec2&3_DataStructure
Lec2&3_DataStructureLec2&3_DataStructure
Lec2&3_DataStructure
 
Lecture 2 math 2
Lecture 2 math 2Lecture 2 math 2
Lecture 2 math 2
 
Chapter 1 what is statistics
Chapter 1 what is statisticsChapter 1 what is statistics
Chapter 1 what is statistics
 

Lec1

  • 1. Data Structures and Algorithm Analysis Dr. Nagwa Badr
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.

Notas del editor

  1. A primary concern for this course is efficiency. You might believe that faster computers make it unnecessary to be concerned with efficiency. However… So we need special training.
  2. If you are willing to pay enough in time delay. Example: Simple unordered array of records.
  3. Alternate definition: Better than known alternatives (“relatively efficient”). Space and time are typical constraints for programs. This does not mean always strive for the most efficient program. If the program operates well within resource constraints, there is no benefit to making it faster or smaller.
  4. Typically want the “simplest” data structure that will meet the requirements.
  5. These questions often help to narrow the possibilities. If data can be deleted, a more complex representation is typically required.
  6. The space required includes data and overhead. Some data structures/algorithms are more complicated than others.
  7. The first goal is a worldview to adopt The second goal is the “nuts and bolts” of the course. The third goal prepares a student for the future.
  8. The concept of an ADT is one instance of an important principle that must be understood By any successful computer specialist: managing complexity through abstraction.
  9. In this class, we frequently move above and below “the line” separating logical and physical forms.
  10. But NO constraints on HOW the problem is solved
  11. “ Correct” means computes the proper function. “ Concrete steps” are executable by the machine in question. We frequently interchange use of “algorithm” and “program” though they are actually different concepts.