SlideShare a Scribd company logo
1 of 22
Download to read offline
Data Structures & Algorithms
Dr. Tehseen Ul Hassan
Computer Science Department & IT
December 10, 2021
Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 1 / 22
Things You Need To Know
Text Book
Data Structures and Algorithms in C++ by Adam Drozdek
Reference Books
Data Structures and Algorithms in C++ by Adam Drozdek
Data Structures and Algorithm Analysis in Java by Mark A. Weiss
Prerequisites
Object Oriented Programming
Course Webpage
Join the Whatsapp Group.
Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 2 / 22
Outline
1 Introduction to Data Structures and Algorithms
2 Goals of this Course
3 What you will Learn in the Course?
4 Good Computer Program
5 Terminologies in DSA
6 References
Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 3 / 22
Outline
1 Introduction to Data Structures and Algorithms
2 Goals of this Course
3 What you will Learn in the Course?
4 Good Computer Program
5 Terminologies in DSA
6 References
Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 4 / 22
Introduction to Data Structures and Algorithms
Data Structure is a way of collect-
ing and organizing data in such a
manner that we can perform oper-
ations on these data easily and ef-
fectively.
An algorithm is a finite set of se-
quential instructions to accomplish
a certain predefined task.
Steps of an algorithm may have
branching or repetition depending
upon the problem for which the al-
gorithm has been developed.
Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 5 / 22
Introduction to Data Structures & Algorithms
.
An algorithm is a definite procedure for solving a problem in finite
number of steps.
Algorithm is a well defined computational procedure that takes some
value (s) as input, and produces some value (s) as output.
Algorithm is finite number of computational statements that transform
input into the output.
Tool to solve well defined computational problem.
Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 6 / 22
Introduction to Data Structures & Algorithms
What kind of problems are solved by algorithms?
Human Genome Project
Internet: Routing, searches, security
Electronic commerce
Commercial enterprises
Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 7 / 22
Outline
1 Introduction to Data Structures and Algorithms
2 Goals of this Course
3 What you will Learn in the Course?
4 Good Computer Program
5 Terminologies in DSA
6 References
Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 8 / 22
Goals of this Course
Reinforce the concept that costs and benefits exist for every data struc-
ture.
Understand how to measure the cost of a data structure or program.
These techniques also allow you to judge the merits of new data struc-
tures that you or others might invent.
Test and review the solution
Step-1 Define the problem Perform.
Step-2 data Gathering To solve such problem you must know the how
to perform the addition (i.e. by using + operator)
Step-3 The problem can be solved in many ways like
Step-4 Select the best solution from these solutions and design the
algorithm
Step-5 Write the code for the algorithm in any language
Step-6 Test the solution
Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 9 / 22
Outline
1 Introduction to Data Structures and Algorithms
2 Goals of this Course
3 What you will Learn in the Course?
4 Good Computer Program
5 Terminologies in DSA
6 References
Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 10 / 22
What you will Learn in the Course?
What you will Learn in the Course?
How to think about data and operations on data.
How to design data structures for efficient use.
How to determine the efficiency of algorithms.
A set of common data structures and algorithms for typical operations
on data (e.g., searching, sorting, etc.)
Advanced programming techniques (e.g., recursion, etc.)
How to implement a larger software project with a professional IDE.
Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 11 / 22
Outline
1 Introduction to Data Structures and Algorithms
2 Goals of this Course
3 What you will Learn in the Course?
4 Good Computer Program
5 Terminologies in DSA
6 References
Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 12 / 22
Good Computer Program
Good Computer Program
A computer Program is a series of instruction to carry out a particular
task written in language that a computer can understand.
The process of preparing and feeding the instructions in to computer
for execution is referred as programming.
There are a numbers of features for a good program.
Run efficiently and correctly.
Have user friendly interface.
Be easy to read and understand.
Be easy to debug and maintain.
Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 13 / 22
Outline
1 Introduction to Data Structures and Algorithms
2 Goals of this Course
3 What you will Learn in the Course?
4 Good Computer Program
5 Terminologies in DSA
6 References
Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 14 / 22
Terminologies in DSA
Big Data
Big Data is a collection of data that is huge in volume, yet growing
exponentially with time.
It is a data with so large size and complexity that none of traditional
data management tools can store it or process it efficiently.
Big data is also a data but with huge size.
Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 15 / 22
Terminologies in DSA
Artificial Intelligence
Artificial intelligence (AI), the ability of a digital computer or computer-
controlled robot to perform tasks commonly associated with intelligent
beings.
The term is frequently applied to the project of developing systems
endowed with the intellectual processes characteristic of humans, such
as the ability to reason, discover meaning, generalize, or learn from
past experience.
Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 16 / 22
Terminologies in DSA
Complexity
Complexity of an algorithm is a measure of the amount of time and/or
space required by an algorithm for an input of a given size (n).
Complexity is the consumption of resources.
Most important aspect of complexity are
Space complexity
Time Complexity
Big O Notations
Big O Notation is a way to measure an algorithm’s efficiency.
It measures the time it takes to run your function as the input grows.
Or in other words, how well does the function scale.
Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 17 / 22
Terminologies in DSA
Arrays, Stack , Queue and Graphs
Tree
A tree is a nonlinear hierarchi-
cal data structure that consists of
nodes connected by edges.
The tree has one node called root.
The tree originates from this, and
hence it does not have any parent.
Each node has one parent only but
can have multiple children.
Each node is connected to its chil-
dren via edge.
Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 18 / 22
Terminologies in DSA
Arrays, Stack , Queue and Graphs
.
Arrays
Arrays Array is a container which can hold a fix number of items and
these items should be of the same type. Most of the data structures
make use of arrays to implement their algorithms.
Stack
Stack: Stack is an abstract data type with a bounded(predefined)
capacity. It is a simple data structure that allows adding and removing
elements in a particular order.
Every time an element is added, it goes on the top of the stack and
the only element that can be removed is the element that is at the top
of the stack, just like a pile of objects.
Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 19 / 22
Terminologies in DSA
Arrays, Stack , Queue and Graphs
.
Queue
Queue: A Queue is a linear structure which follows a particular order
in which the operations are performed.
The order is First In First Out (FIFO). A good example of a queue is
any queue of consumers for a resource where the consumer that came
first is served first.
Graphs
Graphs: A Graph is a non-linear data structure consisting of nodes and
edges.
The nodes are sometimes also referred to as vertices and the edges are
lines or arcs that connect any two nodes in the graph.
Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 20 / 22
Outline
1 Introduction to Data Structures and Algorithms
2 Goals of this Course
3 What you will Learn in the Course?
4 Good Computer Program
5 Terminologies in DSA
6 References
Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 21 / 22
.
Thank You!
Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 22 / 22

More Related Content

What's hot

V2 i9 ijertv2is90699-1
V2 i9 ijertv2is90699-1V2 i9 ijertv2is90699-1
V2 i9 ijertv2is90699-1warishali570
 
Data science lecture2_doaa_mohey
Data science lecture2_doaa_mohey Data science lecture2_doaa_mohey
Data science lecture2_doaa_mohey Doaa Mohey Eldin
 
Data science lecture3_doaa_mohey
Data science lecture3_doaa_mohey Data science lecture3_doaa_mohey
Data science lecture3_doaa_mohey Doaa Mohey Eldin
 
TTG Int.LTD Data Mining Technique
TTG Int.LTD Data Mining TechniqueTTG Int.LTD Data Mining Technique
TTG Int.LTD Data Mining TechniqueMehmet Beyaz
 
Data science tutorial
Data science tutorialData science tutorial
Data science tutorialAakashdata
 
An Robust Outsourcing of Multi Party Dataset by Utilizing Super-Modularity an...
An Robust Outsourcing of Multi Party Dataset by Utilizing Super-Modularity an...An Robust Outsourcing of Multi Party Dataset by Utilizing Super-Modularity an...
An Robust Outsourcing of Multi Party Dataset by Utilizing Super-Modularity an...IRJET Journal
 
Regression with Microsoft Azure & Ms Excel
Regression with Microsoft Azure & Ms ExcelRegression with Microsoft Azure & Ms Excel
Regression with Microsoft Azure & Ms ExcelDr. Abdul Ahad Abro
 
Building Azure Machine Learning Models
Building Azure Machine Learning ModelsBuilding Azure Machine Learning Models
Building Azure Machine Learning ModelsEng Teong Cheah
 
A Comparative Study of Various Data Mining Techniques: Statistics, Decision T...
A Comparative Study of Various Data Mining Techniques: Statistics, Decision T...A Comparative Study of Various Data Mining Techniques: Statistics, Decision T...
A Comparative Study of Various Data Mining Techniques: Statistics, Decision T...Editor IJCATR
 
Knowledgebase vs Database
Knowledgebase vs DatabaseKnowledgebase vs Database
Knowledgebase vs DatabaseCJ Jenkins
 
BIAM 410 Final Paper - Beyond the Buzzwords: Big Data, Machine Learning, What...
BIAM 410 Final Paper - Beyond the Buzzwords: Big Data, Machine Learning, What...BIAM 410 Final Paper - Beyond the Buzzwords: Big Data, Machine Learning, What...
BIAM 410 Final Paper - Beyond the Buzzwords: Big Data, Machine Learning, What...Thomas Rones
 
Machine Learning part 3 - Introduction to data science
Machine Learning part 3 - Introduction to data science Machine Learning part 3 - Introduction to data science
Machine Learning part 3 - Introduction to data science Frank Kienle
 

What's hot (20)

Text Analytics for Legal work
Text Analytics for Legal workText Analytics for Legal work
Text Analytics for Legal work
 
V2 i9 ijertv2is90699-1
V2 i9 ijertv2is90699-1V2 i9 ijertv2is90699-1
V2 i9 ijertv2is90699-1
 
Data science lecture2_doaa_mohey
Data science lecture2_doaa_mohey Data science lecture2_doaa_mohey
Data science lecture2_doaa_mohey
 
Data science lecture3_doaa_mohey
Data science lecture3_doaa_mohey Data science lecture3_doaa_mohey
Data science lecture3_doaa_mohey
 
TTG Int.LTD Data Mining Technique
TTG Int.LTD Data Mining TechniqueTTG Int.LTD Data Mining Technique
TTG Int.LTD Data Mining Technique
 
Data science tutorial
Data science tutorialData science tutorial
Data science tutorial
 
An Robust Outsourcing of Multi Party Dataset by Utilizing Super-Modularity an...
An Robust Outsourcing of Multi Party Dataset by Utilizing Super-Modularity an...An Robust Outsourcing of Multi Party Dataset by Utilizing Super-Modularity an...
An Robust Outsourcing of Multi Party Dataset by Utilizing Super-Modularity an...
 
Artificial Neural Networks for Data Mining
Artificial Neural Networks for Data MiningArtificial Neural Networks for Data Mining
Artificial Neural Networks for Data Mining
 
Cognitive automation
Cognitive automationCognitive automation
Cognitive automation
 
Regression with Microsoft Azure & Ms Excel
Regression with Microsoft Azure & Ms ExcelRegression with Microsoft Azure & Ms Excel
Regression with Microsoft Azure & Ms Excel
 
Introduction
IntroductionIntroduction
Introduction
 
Building Azure Machine Learning Models
Building Azure Machine Learning ModelsBuilding Azure Machine Learning Models
Building Azure Machine Learning Models
 
Image Analytics In Healthcare
Image Analytics In HealthcareImage Analytics In Healthcare
Image Analytics In Healthcare
 
A Comparative Study of Various Data Mining Techniques: Statistics, Decision T...
A Comparative Study of Various Data Mining Techniques: Statistics, Decision T...A Comparative Study of Various Data Mining Techniques: Statistics, Decision T...
A Comparative Study of Various Data Mining Techniques: Statistics, Decision T...
 
Knowledgebase vs Database
Knowledgebase vs DatabaseKnowledgebase vs Database
Knowledgebase vs Database
 
BIAM 410 Final Paper - Beyond the Buzzwords: Big Data, Machine Learning, What...
BIAM 410 Final Paper - Beyond the Buzzwords: Big Data, Machine Learning, What...BIAM 410 Final Paper - Beyond the Buzzwords: Big Data, Machine Learning, What...
BIAM 410 Final Paper - Beyond the Buzzwords: Big Data, Machine Learning, What...
 
Data Visualization: Sales forecasting
Data Visualization: Sales forecastingData Visualization: Sales forecasting
Data Visualization: Sales forecasting
 
Algorithms and Data Structures~hmftj
Algorithms and Data Structures~hmftjAlgorithms and Data Structures~hmftj
Algorithms and Data Structures~hmftj
 
Machine Learning and Multi Drug Resistant(MDR) Infections case study
Machine Learning and Multi Drug Resistant(MDR) Infections case studyMachine Learning and Multi Drug Resistant(MDR) Infections case study
Machine Learning and Multi Drug Resistant(MDR) Infections case study
 
Machine Learning part 3 - Introduction to data science
Machine Learning part 3 - Introduction to data science Machine Learning part 3 - Introduction to data science
Machine Learning part 3 - Introduction to data science
 

Similar to Dsal#01

Data structure introduction
Data structure introductionData structure introduction
Data structure introductionramyasanthosh
 
Futuristic knowledge management ppt bec bagalkot mba
Futuristic knowledge management ppt bec bagalkot mbaFuturistic knowledge management ppt bec bagalkot mba
Futuristic knowledge management ppt bec bagalkot mbaBabasab Patil
 
Analyzing the solutions of DEA through information visualization and data min...
Analyzing the solutions of DEA through information visualization and data min...Analyzing the solutions of DEA through information visualization and data min...
Analyzing the solutions of DEA through information visualization and data min...ertekg
 
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.pptxiamultapromax
 
Programming Assignment Help
Programming Assignment HelpProgramming Assignment Help
Programming Assignment Help#essaywriting
 
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
 
Physical Database Requirements.pdf
Physical Database Requirements.pdfPhysical Database Requirements.pdf
Physical Database Requirements.pdfseifusisay06
 
Analyzing the solutions of DEA through information visualization and data min...
Analyzing the solutions of DEA through information visualization and data min...Analyzing the solutions of DEA through information visualization and data min...
Analyzing the solutions of DEA through information visualization and data min...Gurdal Ertek
 
Lecture_1_Introduction to Data Structures and Algorithm.pptx
Lecture_1_Introduction to Data Structures and Algorithm.pptxLecture_1_Introduction to Data Structures and Algorithm.pptx
Lecture_1_Introduction to Data Structures and Algorithm.pptxmueedmughal88
 
Key Skills Required for Data Engineering
Key Skills Required for Data EngineeringKey Skills Required for Data Engineering
Key Skills Required for Data EngineeringFibonalabs
 
Introduction of Data Science and Data Analytics
Introduction of Data Science and Data AnalyticsIntroduction of Data Science and Data Analytics
Introduction of Data Science and Data AnalyticsVrushaliSolanke
 
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.pdfLeandroJrErcia
 

Similar to Dsal#01 (20)

Ds intro
Ds introDs intro
Ds intro
 
Data structure introduction
Data structure introductionData structure introduction
Data structure introduction
 
Lec1
Lec1Lec1
Lec1
 
Lec1
Lec1Lec1
Lec1
 
Futuristic knowledge management ppt bec bagalkot mba
Futuristic knowledge management ppt bec bagalkot mbaFuturistic knowledge management ppt bec bagalkot mba
Futuristic knowledge management ppt bec bagalkot mba
 
Analyzing the solutions of DEA through information visualization and data min...
Analyzing the solutions of DEA through information visualization and data min...Analyzing the solutions of DEA through information visualization and data min...
Analyzing the solutions of DEA through information visualization and data min...
 
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
 
Programming Assignment Help
Programming Assignment HelpProgramming Assignment Help
Programming Assignment Help
 
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
 
Paper presentation
Paper presentationPaper presentation
Paper presentation
 
Physical Database Requirements.pdf
Physical Database Requirements.pdfPhysical Database Requirements.pdf
Physical Database Requirements.pdf
 
Analyzing the solutions of DEA through information visualization and data min...
Analyzing the solutions of DEA through information visualization and data min...Analyzing the solutions of DEA through information visualization and data min...
Analyzing the solutions of DEA through information visualization and data min...
 
Lecture_1_Introduction to Data Structures and Algorithm.pptx
Lecture_1_Introduction to Data Structures and Algorithm.pptxLecture_1_Introduction to Data Structures and Algorithm.pptx
Lecture_1_Introduction to Data Structures and Algorithm.pptx
 
RDBMS to NoSQL. An overview.
RDBMS to NoSQL. An overview.RDBMS to NoSQL. An overview.
RDBMS to NoSQL. An overview.
 
Database Systems Essay
Database Systems EssayDatabase Systems Essay
Database Systems Essay
 
Key Skills Required for Data Engineering
Key Skills Required for Data EngineeringKey Skills Required for Data Engineering
Key Skills Required for Data Engineering
 
Introduction of Data Science and Data Analytics
Introduction of Data Science and Data AnalyticsIntroduction of Data Science and Data Analytics
Introduction of Data Science and Data Analytics
 
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
 
ET Ch - 2.pptx
ET Ch - 2.pptxET Ch - 2.pptx
ET Ch - 2.pptx
 
DBMS an Example
DBMS an ExampleDBMS an Example
DBMS an Example
 

Recently uploaded

20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfgstagge
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一F sss
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...Pooja Nehwal
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationshipsccctableauusergroup
 
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...ThinkInnovation
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptSonatrach
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一fhwihughh
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfJohn Sterrett
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)jennyeacort
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样vhwb25kk
 

Recently uploaded (20)

20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
RadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdfRadioAdProWritingCinderellabyButleri.pdf
RadioAdProWritingCinderellabyButleri.pdf
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
 
04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships04242024_CCC TUG_Joins and Relationships
04242024_CCC TUG_Joins and Relationships
 
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
 
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdf
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
 

Dsal#01

  • 1. Data Structures & Algorithms Dr. Tehseen Ul Hassan Computer Science Department & IT December 10, 2021 Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 1 / 22
  • 2. Things You Need To Know Text Book Data Structures and Algorithms in C++ by Adam Drozdek Reference Books Data Structures and Algorithms in C++ by Adam Drozdek Data Structures and Algorithm Analysis in Java by Mark A. Weiss Prerequisites Object Oriented Programming Course Webpage Join the Whatsapp Group. Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 2 / 22
  • 3. Outline 1 Introduction to Data Structures and Algorithms 2 Goals of this Course 3 What you will Learn in the Course? 4 Good Computer Program 5 Terminologies in DSA 6 References Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 3 / 22
  • 4. Outline 1 Introduction to Data Structures and Algorithms 2 Goals of this Course 3 What you will Learn in the Course? 4 Good Computer Program 5 Terminologies in DSA 6 References Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 4 / 22
  • 5. Introduction to Data Structures and Algorithms Data Structure is a way of collect- ing and organizing data in such a manner that we can perform oper- ations on these data easily and ef- fectively. An algorithm is a finite set of se- quential instructions to accomplish a certain predefined task. Steps of an algorithm may have branching or repetition depending upon the problem for which the al- gorithm has been developed. Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 5 / 22
  • 6. Introduction to Data Structures & Algorithms . An algorithm is a definite procedure for solving a problem in finite number of steps. Algorithm is a well defined computational procedure that takes some value (s) as input, and produces some value (s) as output. Algorithm is finite number of computational statements that transform input into the output. Tool to solve well defined computational problem. Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 6 / 22
  • 7. Introduction to Data Structures & Algorithms What kind of problems are solved by algorithms? Human Genome Project Internet: Routing, searches, security Electronic commerce Commercial enterprises Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 7 / 22
  • 8. Outline 1 Introduction to Data Structures and Algorithms 2 Goals of this Course 3 What you will Learn in the Course? 4 Good Computer Program 5 Terminologies in DSA 6 References Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 8 / 22
  • 9. Goals of this Course Reinforce the concept that costs and benefits exist for every data struc- ture. Understand how to measure the cost of a data structure or program. These techniques also allow you to judge the merits of new data struc- tures that you or others might invent. Test and review the solution Step-1 Define the problem Perform. Step-2 data Gathering To solve such problem you must know the how to perform the addition (i.e. by using + operator) Step-3 The problem can be solved in many ways like Step-4 Select the best solution from these solutions and design the algorithm Step-5 Write the code for the algorithm in any language Step-6 Test the solution Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 9 / 22
  • 10. Outline 1 Introduction to Data Structures and Algorithms 2 Goals of this Course 3 What you will Learn in the Course? 4 Good Computer Program 5 Terminologies in DSA 6 References Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 10 / 22
  • 11. What you will Learn in the Course? What you will Learn in the Course? How to think about data and operations on data. How to design data structures for efficient use. How to determine the efficiency of algorithms. A set of common data structures and algorithms for typical operations on data (e.g., searching, sorting, etc.) Advanced programming techniques (e.g., recursion, etc.) How to implement a larger software project with a professional IDE. Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 11 / 22
  • 12. Outline 1 Introduction to Data Structures and Algorithms 2 Goals of this Course 3 What you will Learn in the Course? 4 Good Computer Program 5 Terminologies in DSA 6 References Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 12 / 22
  • 13. Good Computer Program Good Computer Program A computer Program is a series of instruction to carry out a particular task written in language that a computer can understand. The process of preparing and feeding the instructions in to computer for execution is referred as programming. There are a numbers of features for a good program. Run efficiently and correctly. Have user friendly interface. Be easy to read and understand. Be easy to debug and maintain. Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 13 / 22
  • 14. Outline 1 Introduction to Data Structures and Algorithms 2 Goals of this Course 3 What you will Learn in the Course? 4 Good Computer Program 5 Terminologies in DSA 6 References Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 14 / 22
  • 15. Terminologies in DSA Big Data Big Data is a collection of data that is huge in volume, yet growing exponentially with time. It is a data with so large size and complexity that none of traditional data management tools can store it or process it efficiently. Big data is also a data but with huge size. Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 15 / 22
  • 16. Terminologies in DSA Artificial Intelligence Artificial intelligence (AI), the ability of a digital computer or computer- controlled robot to perform tasks commonly associated with intelligent beings. The term is frequently applied to the project of developing systems endowed with the intellectual processes characteristic of humans, such as the ability to reason, discover meaning, generalize, or learn from past experience. Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 16 / 22
  • 17. Terminologies in DSA Complexity Complexity of an algorithm is a measure of the amount of time and/or space required by an algorithm for an input of a given size (n). Complexity is the consumption of resources. Most important aspect of complexity are Space complexity Time Complexity Big O Notations Big O Notation is a way to measure an algorithm’s efficiency. It measures the time it takes to run your function as the input grows. Or in other words, how well does the function scale. Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 17 / 22
  • 18. Terminologies in DSA Arrays, Stack , Queue and Graphs Tree A tree is a nonlinear hierarchi- cal data structure that consists of nodes connected by edges. The tree has one node called root. The tree originates from this, and hence it does not have any parent. Each node has one parent only but can have multiple children. Each node is connected to its chil- dren via edge. Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 18 / 22
  • 19. Terminologies in DSA Arrays, Stack , Queue and Graphs . Arrays Arrays Array is a container which can hold a fix number of items and these items should be of the same type. Most of the data structures make use of arrays to implement their algorithms. Stack Stack: Stack is an abstract data type with a bounded(predefined) capacity. It is a simple data structure that allows adding and removing elements in a particular order. Every time an element is added, it goes on the top of the stack and the only element that can be removed is the element that is at the top of the stack, just like a pile of objects. Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 19 / 22
  • 20. Terminologies in DSA Arrays, Stack , Queue and Graphs . Queue Queue: A Queue is a linear structure which follows a particular order in which the operations are performed. The order is First In First Out (FIFO). A good example of a queue is any queue of consumers for a resource where the consumer that came first is served first. Graphs Graphs: A Graph is a non-linear data structure consisting of nodes and edges. The nodes are sometimes also referred to as vertices and the edges are lines or arcs that connect any two nodes in the graph. Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 20 / 22
  • 21. Outline 1 Introduction to Data Structures and Algorithms 2 Goals of this Course 3 What you will Learn in the Course? 4 Good Computer Program 5 Terminologies in DSA 6 References Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 21 / 22
  • 22. . Thank You! Dr. Tehseen Ul Hassan Data Structures & Algorithms December 10, 2021 22 / 22