SlideShare a Scribd company logo
6
Most read
7
Most read
14
Most read
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

PPT
Unit01 dbms
arnold 7490
 
PPTX
Dbms Introduction and Basics
SHIKHA GAUTAM
 
PPT
Database Relationships
wmassie
 
PPTX
Ooad ppt
Radhika Yadav
 
PPTX
All data models in dbms
Naresh Kumar
 
PPTX
Introduction to Database
Siti Ismail
 
PPTX
database language ppt.pptx
Anusha sivakumar
 
PDF
300+ top database management system questions and answers 2020
tadeseguchi
 
Unit01 dbms
arnold 7490
 
Dbms Introduction and Basics
SHIKHA GAUTAM
 
Database Relationships
wmassie
 
Ooad ppt
Radhika Yadav
 
All data models in dbms
Naresh Kumar
 
Introduction to Database
Siti Ismail
 
database language ppt.pptx
Anusha sivakumar
 
300+ top database management system questions and answers 2020
tadeseguchi
 

What's hot (20)

PDF
Chapter 6 Database Security and Authorization (4).pdf
abrehamcheru14
 
PPTX
Basic Behavioral Modeling
AMITJain879
 
PPT
Advanced data modeling
Dhani Ahmad
 
PPTX
Slide 6 er strong & weak entity
Visakh V
 
PPTX
Presentation on array
topu93
 
PPTX
Structure of the page table
duvvuru madhuri
 
PPTX
Operators and expressions in c language
tanmaymodi4
 
PPTX
Types of keys in database management system by Dr. Kamal Gulati
Amity University | FMS - DU | IMT | Stratford University | KKMI International Institute | AIMA | DTU
 
PDF
Database users
Param Radadiya
 
PPTX
Chapter 1- INTRODUCTION TO SYSTEM ANALYSIS AND DESIGN by DEEPA (1).pptx
anumayived
 
PPTX
This pointer
Kamal Acharya
 
PPTX
Data structures - unit 1
SaranyaP45
 
PDF
Java conditional statements
Kuppusamy P
 
PDF
Object oriented programming c++
Ankur Pandey
 
PPS
DBA
Anuj Modi
 
PPTX
Column oriented database
Kanike Krishna
 
PPTX
Array in c++
Mahesha Mano
 
PDF
Structured analysis and structured design
Sudeep Singh
 
PPTX
Schema
Pragya Srivastava
 
Chapter 6 Database Security and Authorization (4).pdf
abrehamcheru14
 
Basic Behavioral Modeling
AMITJain879
 
Advanced data modeling
Dhani Ahmad
 
Slide 6 er strong & weak entity
Visakh V
 
Presentation on array
topu93
 
Structure of the page table
duvvuru madhuri
 
Operators and expressions in c language
tanmaymodi4
 
Database users
Param Radadiya
 
Chapter 1- INTRODUCTION TO SYSTEM ANALYSIS AND DESIGN by DEEPA (1).pptx
anumayived
 
This pointer
Kamal Acharya
 
Data structures - unit 1
SaranyaP45
 
Java conditional statements
Kuppusamy P
 
Object oriented programming c++
Ankur Pandey
 
Column oriented database
Kanike Krishna
 
Array in c++
Mahesha Mano
 
Structured analysis and structured design
Sudeep Singh
 
Ad

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

PPTX
OE Assignment - explains about assignment and dbms
cleopatraxer003
 
PDF
DSA 1- Introduction.pdf
AliyanAbbas1
 
PDF
chalenges and apportunity of deep learning for big data analysis f
maru kindeneh
 
PDF
Solutions for Problems: Modern Database Management (12th Edition) by Hoffer a...
AbrahamBenjamin12
 
PPT
Database Systems
Usman Tariq
 
PPT
Database Systems
Usman Tariq
 
PDF
Database Management System ( Dbms )
Kimberly Brooks
 
PDF
Database Management Systems ( Dbms )
Patty Buckley
 
PPTX
Fundamentals of Database system - Databases and Database Users
Mustafa Kamel Mohammadi
 
PPTX
INTRODUCTION TO DATA STRUCTURE & ABSTRACT DATA TYPE.pptx
talhaarif554
 
PPTX
optimization and technology of something
NasserAlMusalhi1
 
PPTX
2016 Chapter 2 - Intro. to Data Sciences.pptx
mussie143tadesse
 
DOC
MARAT ANALYSIS
Cyrus Bondo
 
DOC
Final Project IEEE format
Faizan Ahmed
 
PPTX
Mis chapter 4 database management - copy
Ajay Khot
 
PPTX
Database systems - 1.pptxdassdfsdf dasdas da
Barkat20
 
PPTX
data base unit one on what is databases.pptx
mulukendemis44
 
PDF
1. Database Engineering Author Subasish Mohapatra.pdf
talentachiradza
 
PDF
055240_Data Engineering - Course Introduction and (Review)-updated .pdf
KhoaTrn536520
 
OE Assignment - explains about assignment and dbms
cleopatraxer003
 
DSA 1- Introduction.pdf
AliyanAbbas1
 
chalenges and apportunity of deep learning for big data analysis f
maru kindeneh
 
Solutions for Problems: Modern Database Management (12th Edition) by Hoffer a...
AbrahamBenjamin12
 
Database Systems
Usman Tariq
 
Database Systems
Usman Tariq
 
Database Management System ( Dbms )
Kimberly Brooks
 
Database Management Systems ( Dbms )
Patty Buckley
 
Fundamentals of Database system - Databases and Database Users
Mustafa Kamel Mohammadi
 
INTRODUCTION TO DATA STRUCTURE & ABSTRACT DATA TYPE.pptx
talhaarif554
 
optimization and technology of something
NasserAlMusalhi1
 
2016 Chapter 2 - Intro. to Data Sciences.pptx
mussie143tadesse
 
MARAT ANALYSIS
Cyrus Bondo
 
Final Project IEEE format
Faizan Ahmed
 
Mis chapter 4 database management - copy
Ajay Khot
 
Database systems - 1.pptxdassdfsdf dasdas da
Barkat20
 
data base unit one on what is databases.pptx
mulukendemis44
 
1. Database Engineering Author Subasish Mohapatra.pdf
talentachiradza
 
055240_Data Engineering - Course Introduction and (Review)-updated .pdf
KhoaTrn536520
 
Ad

Recently uploaded (20)

PPTX
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
PPTX
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
PDF
RA 12028_ARAL_Orientation_Day-2-Sessions_v2.pdf
Seven De Los Reyes
 
PDF
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
PDF
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
PPTX
Software Engineering BSC DS UNIT 1 .pptx
Dr. Pallawi Bulakh
 
PDF
Study Material and notes for Women Empowerment
ComputerScienceSACWC
 
PPTX
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
PPT
Python Programming Unit II Control Statements.ppt
CUO VEERANAN VEERANAN
 
PPTX
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
DOCX
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
PDF
The Picture of Dorian Gray summary and depiction
opaliyahemel
 
PPTX
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
PDF
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
PDF
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
PPTX
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
PDF
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
Miraj Khan
 
PDF
Sunset Boulevard Student Revision Booklet
jpinnuck
 
PPTX
Care of patients with elImination deviation.pptx
AneetaSharma15
 
PPTX
FSSAI (Food Safety and Standards Authority of India) & FDA (Food and Drug Adm...
Dr. Paindla Jyothirmai
 
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
An introduction to Prepositions for beginners.pptx
drsiddhantnagine
 
RA 12028_ARAL_Orientation_Day-2-Sessions_v2.pdf
Seven De Los Reyes
 
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
Software Engineering BSC DS UNIT 1 .pptx
Dr. Pallawi Bulakh
 
Study Material and notes for Women Empowerment
ComputerScienceSACWC
 
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
Python Programming Unit II Control Statements.ppt
CUO VEERANAN VEERANAN
 
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
The Picture of Dorian Gray summary and depiction
opaliyahemel
 
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
Artificial-Intelligence-in-Drug-Discovery by R D Jawarkar.pptx
Rahul Jawarkar
 
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
Miraj Khan
 
Sunset Boulevard Student Revision Booklet
jpinnuck
 
Care of patients with elImination deviation.pptx
AneetaSharma15
 
FSSAI (Food Safety and Standards Authority of India) & FDA (Food and Drug Adm...
Dr. Paindla Jyothirmai
 

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 @ [email protected]
  • 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