SlideShare a Scribd company logo
Data Structure and Algorithm
Lecture Division
Week No . 1
Audience:
BSCS/BSIT 4th Semester
Instructor:
Muhammad Mukhtar Qureshi
Contact @ m_m_Qur@yahoo.com
Topic:
Introduction about Course
Discussion
 Course introduction and grading policy
 What is data structure
 Philosophy of data structure
 Memory organization
 Goal of the course
Assessments/Grading Policy
 Assignments 10%
 Quizzes 10%
 Mid 30%
 Final 50%
Friday,
January
19,
2024
4
Text Books
 Recommended Books
 Data Structures Using C++, By Author :D.S.Malik
 C++ Plus Data Structures Fifth Edition, Nell B. Dale (Author)
 Data Structures and Algorithms Analysis in C++, 3rd edition,
by Mark Allen Weiss
 Reference Books
 Data Structures and Algorithms in C++, 2ndEdition, Author:
Micheal T. Goodrich, Roberto Tamassia and David Mount John
Wiley and Sons, Inc
 Classic Data Structures, BySamanta Debasis(Author)
Friday,
January
19,
2024
5
What is Data Structure?
 In computer science, a data structure is a particular way of storing and
organizing data in a computer so that it can be used efficiently.
 The basic types of data structures include:
 Files, lists, arrays, records, trees, tables, graphs
Friday,
January
19,
2024
6
What is Algorithm?
 An algorithm is a generic, step-by-step list of instructions for solving a
problem. It is a method for solving any instance of the problem such that
given a particular input, the algorithm produces the desired result.
 A program, on the other hand, is an algorithm that has been encoded into
some programming language. There may be many programs for the same
algorithm, depending on the programmer and the programming language
being used.
7
Need for Data Structures
 Data structures organize data  more efficient programs.
 More powerful computers  more complex applications.
 More complex applications demand more calculations.
Need for Data Structures
 Data structures organize data  more efficient programs.
 More powerful computers  more complex applications.
 More complex applications demand more calculations.
Efficiency
 A solution is said to be efficient if it solves the problem within its
resource constraints.
 Space
 Time
 The cost of a solution is the amount of resources that the solution
consumes.
Selecting a Data Structure
Select a data structure as follows:
1. Analyze the problem to determine the resource constraints a
solution must meet.
2. Determine the basic operations that must be supported. Quantify
the resource constraints for each operation.
3. Select the data structure that best meets these requirements.
Some Questions to Ask
 Are all data inserted into the data structure at the beginning, or are
insertions interspersed with other operations?
 Can data be deleted?
 Are all data processed in some well-defined order, or is random
access allowed?
Data Structure Philosophy
 Each data structure has costs and benefits.
 Rarely is one data structure better than another in all situations.
 A data structure requires:
 space for each data item it stores,
 time to perform each basic operation,
 programming effort.
Memory Organization
 The memory that communicates directly with CPU is called main
memory.
 Devices that provides backup storage are called secondary memory.
 Only program and data currently needed by the processor resides in
main memory.
 All other information is stored in auxiliary (secondary) memory and
transferred to main memory when needed.
14
Memory Organization…
Friday,
January
19,
2024
15
Memory Organization…
 Memory is divided into fixed-size units called cells, and each cell is
associated with unique identifier called an address. These addresses are
the unsigned integers 0, 1, 2,……MAX.
 All access to memory are to a specified address, and we must always fetch
or store complete cell-that is, all the bits in that cell. The cell is the
minimum unit of access.
 The time it takes to fetch or store the contents of a cell is the same for all
the cells in memory.
Friday,
January
19,
2024
16
Memory Organization…
Friday,
January
19,
2024
17
Goals of this Course
1. Reinforce the concept that costs and benefits exist for every data
structure.
2. Learn the commonly used data structures.
 These form a programmer's basic data structure “toolkit”.
3. Understand how to measure the cost of a data structure or
program.
 These techniques also allow you to judge the merits of new data
structures that you or others might invent.
The END
Question and Answer
Friday,
January
19,
2024
19

More Related Content

Similar to Introduction of DSA||DATA STRUCTURE AND ALGORITHUM

MARAT ANALYSIS
MARAT ANALYSISMARAT ANALYSIS
MARAT ANALYSIS
Cyrus Bondo
 
Db lecture 1
Db lecture 1Db lecture 1
Final Project IEEE format
Final Project IEEE formatFinal Project IEEE format
Final Project IEEE formatFaizan Ahmed
 
Mis chapter 4 database management - copy
Mis chapter 4   database management - copyMis chapter 4   database management - copy
Mis chapter 4 database management - copyAjay Khot
 
data base unit one on what is databases.pptx
data base unit one on what is databases.pptxdata base unit one on what is databases.pptx
data base unit one on what is databases.pptx
mulukendemis44
 
Electronic Data Processing
Electronic Data ProcessingElectronic Data Processing
Electronic Data Processing
Anjan Mahanta
 
Lecture_1_Intro.pdf
Lecture_1_Intro.pdfLecture_1_Intro.pdf
Lecture_1_Intro.pdf
paijitk
 
Computer Tools for Teaching and Learning.pptx
Computer Tools for Teaching and Learning.pptxComputer Tools for Teaching and Learning.pptx
Computer Tools for Teaching and Learning.pptx
AlmieJoyCaedaSasi
 
Mi0034 database management systems
Mi0034  database management systemsMi0034  database management systems
Mi0034 database management systems
smumbahelp
 
Detailed overview on Database and database system
Detailed overview on Database and database systemDetailed overview on Database and database system
Detailed overview on Database and database system
samreenghauri786
 
Mis
MisMis
U - 2 Emerging.pptx
U - 2 Emerging.pptxU - 2 Emerging.pptx
U - 2 Emerging.pptx
MulukenTamrat2
 
How do data analysts work with big data and distributed computing frameworks.pdf
How do data analysts work with big data and distributed computing frameworks.pdfHow do data analysts work with big data and distributed computing frameworks.pdf
How do data analysts work with big data and distributed computing frameworks.pdf
Soumodeep Nanee Kundu
 
Physical Database Design & Performance
Physical Database Design & PerformancePhysical Database Design & Performance
Physical Database Design & Performance
Abdullah Khosa
 
Lecture1 data structure(introduction)
Lecture1 data structure(introduction)Lecture1 data structure(introduction)
Chapter 1( intro & overview)
Chapter 1( intro & overview)Chapter 1( intro & overview)
Chapter 1( intro & overview)
MUHAMMAD AAMIR
 
Database, Lecture-1.ppt
Database, Lecture-1.pptDatabase, Lecture-1.ppt
Database, Lecture-1.ppt
MatshushimaSumaya
 
e computer notes - Introduction to data structures
e computer notes - Introduction to data structurese computer notes - Introduction to data structures
e computer notes - Introduction to data structuresecomputernotes
 
Chapter – 1 Intro to DBS.pdf
Chapter – 1 Intro to DBS.pdfChapter – 1 Intro to DBS.pdf
Chapter – 1 Intro to DBS.pdf
TamiratDejene1
 

Similar to Introduction of DSA||DATA STRUCTURE AND ALGORITHUM (20)

MARAT ANALYSIS
MARAT ANALYSISMARAT ANALYSIS
MARAT ANALYSIS
 
Db lecture 1
Db lecture 1Db lecture 1
Db lecture 1
 
Final Project IEEE format
Final Project IEEE formatFinal Project IEEE format
Final Project IEEE format
 
Mis chapter 4 database management - copy
Mis chapter 4   database management - copyMis chapter 4   database management - copy
Mis chapter 4 database management - copy
 
data base unit one on what is databases.pptx
data base unit one on what is databases.pptxdata base unit one on what is databases.pptx
data base unit one on what is databases.pptx
 
Electronic Data Processing
Electronic Data ProcessingElectronic Data Processing
Electronic Data Processing
 
Lecture_1_Intro.pdf
Lecture_1_Intro.pdfLecture_1_Intro.pdf
Lecture_1_Intro.pdf
 
Computer Tools for Teaching and Learning.pptx
Computer Tools for Teaching and Learning.pptxComputer Tools for Teaching and Learning.pptx
Computer Tools for Teaching and Learning.pptx
 
Mi0034 database management systems
Mi0034  database management systemsMi0034  database management systems
Mi0034 database management systems
 
Detailed overview on Database and database system
Detailed overview on Database and database systemDetailed overview on Database and database system
Detailed overview on Database and database system
 
Mis
MisMis
Mis
 
U - 2 Emerging.pptx
U - 2 Emerging.pptxU - 2 Emerging.pptx
U - 2 Emerging.pptx
 
How do data analysts work with big data and distributed computing frameworks.pdf
How do data analysts work with big data and distributed computing frameworks.pdfHow do data analysts work with big data and distributed computing frameworks.pdf
How do data analysts work with big data and distributed computing frameworks.pdf
 
Physical Database Design & Performance
Physical Database Design & PerformancePhysical Database Design & Performance
Physical Database Design & Performance
 
Lecture1 data structure(introduction)
Lecture1 data structure(introduction)Lecture1 data structure(introduction)
Lecture1 data structure(introduction)
 
Chapter 1( intro & overview)
Chapter 1( intro & overview)Chapter 1( intro & overview)
Chapter 1( intro & overview)
 
Database, Lecture-1.ppt
Database, Lecture-1.pptDatabase, Lecture-1.ppt
Database, Lecture-1.ppt
 
e computer notes - Introduction to data structures
e computer notes - Introduction to data structurese computer notes - Introduction to data structures
e computer notes - Introduction to data structures
 
Lect 1-2
Lect 1-2Lect 1-2
Lect 1-2
 
Chapter – 1 Intro to DBS.pdf
Chapter – 1 Intro to DBS.pdfChapter – 1 Intro to DBS.pdf
Chapter – 1 Intro to DBS.pdf
 

Recently uploaded

How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 
Extraction Of Natural Dye From Beetroot (Beta Vulgaris) And Preparation Of He...
Extraction Of Natural Dye From Beetroot (Beta Vulgaris) And Preparation Of He...Extraction Of Natural Dye From Beetroot (Beta Vulgaris) And Preparation Of He...
Extraction Of Natural Dye From Beetroot (Beta Vulgaris) And Preparation Of He...
SachinKumar945617
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
rosedainty
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptxSolid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Denish Jangid
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
Nguyen Thanh Tu Collection
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
NLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptxNLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptx
ssuserbdd3e8
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 

Recently uploaded (20)

How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
Extraction Of Natural Dye From Beetroot (Beta Vulgaris) And Preparation Of He...
Extraction Of Natural Dye From Beetroot (Beta Vulgaris) And Preparation Of He...Extraction Of Natural Dye From Beetroot (Beta Vulgaris) And Preparation Of He...
Extraction Of Natural Dye From Beetroot (Beta Vulgaris) And Preparation Of He...
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)Template Jadual Bertugas Kelas (Boleh Edit)
Template Jadual Bertugas Kelas (Boleh Edit)
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptxSolid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
NLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptxNLC-2024-Orientation-for-RO-SDO (1).pptx
NLC-2024-Orientation-for-RO-SDO (1).pptx
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 

Introduction of DSA||DATA STRUCTURE AND ALGORITHUM

  • 1. Data Structure and Algorithm Lecture Division Week No . 1 Audience: BSCS/BSIT 4th Semester Instructor: Muhammad Mukhtar Qureshi Contact @ m_m_Qur@yahoo.com
  • 3. Discussion  Course introduction and grading policy  What is data structure  Philosophy of data structure  Memory organization  Goal of the course
  • 4. Assessments/Grading Policy  Assignments 10%  Quizzes 10%  Mid 30%  Final 50% Friday, January 19, 2024 4
  • 5. Text Books  Recommended Books  Data Structures Using C++, By Author :D.S.Malik  C++ Plus Data Structures Fifth Edition, Nell B. Dale (Author)  Data Structures and Algorithms Analysis in C++, 3rd edition, by Mark Allen Weiss  Reference Books  Data Structures and Algorithms in C++, 2ndEdition, Author: Micheal T. Goodrich, Roberto Tamassia and David Mount John Wiley and Sons, Inc  Classic Data Structures, BySamanta Debasis(Author) Friday, January 19, 2024 5
  • 6. What is Data Structure?  In computer science, a data structure is a particular way of storing and organizing data in a computer so that it can be used efficiently.  The basic types of data structures include:  Files, lists, arrays, records, trees, tables, graphs Friday, January 19, 2024 6
  • 7. What is Algorithm?  An algorithm is a generic, step-by-step list of instructions for solving a problem. It is a method for solving any instance of the problem such that given a particular input, the algorithm produces the desired result.  A program, on the other hand, is an algorithm that has been encoded into some programming language. There may be many programs for the same algorithm, depending on the programmer and the programming language being used. 7
  • 8. Need for Data Structures  Data structures organize data  more efficient programs.  More powerful computers  more complex applications.  More complex applications demand more calculations.
  • 9. Need for Data Structures  Data structures organize data  more efficient programs.  More powerful computers  more complex applications.  More complex applications demand more calculations.
  • 10. Efficiency  A solution is said to be efficient if it solves the problem within its resource constraints.  Space  Time  The cost of a solution is the amount of resources that the solution consumes.
  • 11. Selecting a Data Structure Select a data structure as follows: 1. Analyze the problem to determine the resource constraints a solution must meet. 2. Determine the basic operations that must be supported. Quantify the resource constraints for each operation. 3. Select the data structure that best meets these requirements.
  • 12. Some Questions to Ask  Are all data inserted into the data structure at the beginning, or are insertions interspersed with other operations?  Can data be deleted?  Are all data processed in some well-defined order, or is random access allowed?
  • 13. Data Structure Philosophy  Each data structure has costs and benefits.  Rarely is one data structure better than another in all situations.  A data structure requires:  space for each data item it stores,  time to perform each basic operation,  programming effort.
  • 14. Memory Organization  The memory that communicates directly with CPU is called main memory.  Devices that provides backup storage are called secondary memory.  Only program and data currently needed by the processor resides in main memory.  All other information is stored in auxiliary (secondary) memory and transferred to main memory when needed. 14
  • 16. Memory Organization…  Memory is divided into fixed-size units called cells, and each cell is associated with unique identifier called an address. These addresses are the unsigned integers 0, 1, 2,……MAX.  All access to memory are to a specified address, and we must always fetch or store complete cell-that is, all the bits in that cell. The cell is the minimum unit of access.  The time it takes to fetch or store the contents of a cell is the same for all the cells in memory. Friday, January 19, 2024 16
  • 18. Goals of this Course 1. Reinforce the concept that costs and benefits exist for every data structure. 2. Learn the commonly used data structures.  These form a programmer's basic data structure “toolkit”. 3. Understand how to measure the cost of a data structure or program.  These techniques also allow you to judge the merits of new data structures that you or others might invent.
  • 19. The END Question and Answer Friday, January 19, 2024 19