SlideShare a Scribd company logo
CS222
Lecture 1: Introduction
Objectives
To define data structures and explain their importance
To differentiate between data structures and databases
 To summarize the concepts of :
 Arrays and Multidimension Arrays
 Stack
Queue
Linked List
Tree
Graph
Introduction
“ Get your data structures correct first, and
the rest of the program will write itself.”
- David Jones
Program = Data Structures + Algorithms
Definition
 A data structure is a way of organizing and storing data in a computer
system or memory to enable efficient operations, such as data retrieval,
insertion, deletion, and manipulation.
It provides a logical and systematic arrangement of data elements, along
with relationships and operations defined on those elements.
Data structures serve as the foundation for designing algorithms and solving
problems in various domains of computer science and programming.
Importance
Efficient Data Organization: Data structures provide efficient organization
and storage mechanisms for managing and manipulating large volumes of
data.
 Fast Data Access: Well-designed data structures enable quick and direct
access to specific data elements, enhancing performance and reducing
retrieval time.
Optimal Memory Utilization: Data structures help in optimizing memory
usage by minimizing memory overhead and providing efficient allocation and
deallocation of resources.
Importance
Algorithm Design: Data structures are the building blocks for designing
efficient algorithms and solving complex computational problems.
Code Maintainability: Properly designed data structures enhance code
maintainability by providing clear and organized ways to manage and
access data, making it easier for developers to understand and modify code.
Search and Retrieval Efficiency: Certain data structures, such as binary
search trees and hash tables, offer efficient search and retrieval operations,
reducing time complexity.
Importance
Sorting and Sorting Algorithms: Data structures facilitate sorting
operations by providing efficient algorithms like quicksort, merge sort, and
heapsort.
 Code Reusability: By implementing common data structures, developers
can reuse code and leverage existing libraries, saving time and effort in
application development.
Scalability and Performance: Properly chosen data structures contribute
to scalable and high-performance systems, handling increasing data loads
efficiently.
Importance
Problem Solving and Software Engineering: A solid understanding of
data structures is crucial for effective problem-solving and designing robust
software applications.
 Dynamic Data Handling: Dynamic data structures, such as dynamic
arrays and linked lists, adapt to changing data sizes, providing flexibility and
efficient memory usage.
Data Compression: Certain data structures, such as Huffman trees,
facilitate data compression techniques, reducing storage space and
improving data transmission.
Data Structures vs. Databases
Types of Data Struct
1. Array 2. Linked List 3. Stack 4. Queue
5. Tree 6. Graph 7. Hash Table 8. Heap
9. Trie 10. Matrix 11. Set 12. Dictionary
13. Priority Queue 14. Disjoint Set 15. Bloom Filter 16. Red-Black Tree
17. B-tree 18. Sparse Matrix 19. Circular Buffer 20. Graph Adjacency List
Array
Short Description: An array is a contiguous block of memory that stores a
fixed-size sequence of elements of the same type.
Sample Applications:
 Sorting Algorithms
 Search Algorithms
 Counting and Frequency Analysis
Multidimensional Array
Short Description: A multidimensional array is an array with multiple
dimensions, such as 2D or 3D arrays.
Sample Applications:
 Storing and manipulating images or matrices in image processing and
scientific computations.
 Implementing game boards or grids for games and simulations.
 Representing tabular data in a spreadsheet or database.
Stack
Short Description: A stack is a Last-In-First-Out (LIFO) data structure that
stores elements in a sequential manner, allowing insertion and deletion only
at one end.
Sample Applications:
 Function call stack in programming languages for managing program
execution and memory allocation.
 Undo/Redo functionality in text editors or graphic design software.
 Depth-first search algorithm implementation in graph traversal.
Queue
Short Description: A queue is a First-In-First-Out (FIFO) data structure that
stores elements in a sequential manner, allowing insertion at one end and
deletion at the other end.
Sample Applications:
 Print spooling, where print jobs are queued and processed in the order
they are submitted.
 Process scheduling in operating systems
 Message queuing systems for reliable message delivery in distributed
systems.
Linked List
Short Description: A linked list is a linear data structure consisting of nodes
that contain data and a reference to the next node, forming a sequence.
Sample Applications:
 Implementing a stack or queue using a linked list as the underlying data
structure.
 Managing dynamic data structures like memory allocation in operating
systems.
 Implementing sparse matrices or sparse data structures to optimize
memory usage.
Tree
Short Description: A tree is a hierarchical data structure composed of
nodes connected by edges, with a root node at the top and child nodes
branching out from it.
Sample Applications:
 Representing file systems, where directories and subdirectories are
organized hierarchically.
 Implementing binary search trees for efficient searching and sorting.
 Parsing and evaluating mathematical expressions using expression
trees.
Graph
Short Description: A graph is a collection of vertices (nodes) connected by
edges, representing relationships or connections between entities.
Sample Applications:
 Social network analysis, where individuals and their connections are
represented by vertices and edges.
 Routing algorithms in transportation networks or computer networks.
 Image recognition and object detection using graph-based models like
convolutional neural networks.
CS222
End of Lecture 1
Next Lecture: Arrays

More Related Content

Similar to Lecture 1.pptx

Database-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptxDatabase-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptx
AnmolThakur67
 
Basic of Data Structure.pptx
Basic of Data Structure.pptxBasic of Data Structure.pptx
Basic of Data Structure.pptx
pooja chavan
 
Basic of Data Structure.pptx
Basic of Data Structure.pptxBasic of Data Structure.pptx
Basic of Data Structure.pptx
PoojaChavan51
 
Database Management System ppt
Database Management System pptDatabase Management System ppt
Database Management System ppt
OECLIB Odisha Electronics Control Library
 
csedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdfcsedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdf
SameerKhanPathan7
 
RDBMS to NoSQL. An overview.
RDBMS to NoSQL. An overview.RDBMS to NoSQL. An overview.
RDBMS to NoSQL. An overview.
Girish. N. Raghavan
 
Introduction-to-Coding-Challenges data structure.pptx
Introduction-to-Coding-Challenges data structure.pptxIntroduction-to-Coding-Challenges data structure.pptx
Introduction-to-Coding-Challenges data structure.pptx
Attitude Tally Academy
 
Introduction-to-Coding-Challenges in data structure.pptx
Introduction-to-Coding-Challenges in data structure.pptxIntroduction-to-Coding-Challenges in data structure.pptx
Introduction-to-Coding-Challenges in data structure.pptx
Attitude Tally Academy
 
Ch1- Introduction to dbms
Ch1- Introduction to dbmsCh1- Introduction to dbms
Ch1- Introduction to dbms
Shakila Mahjabin
 
Database Concepts & SQL(1).pdf
Database Concepts & SQL(1).pdfDatabase Concepts & SQL(1).pdf
Database Concepts & SQL(1).pdf
rsujeet169
 
ICT L5+.pptx
ICT L5+.pptxICT L5+.pptx
ICT L5+.pptx
AssemNazirova2
 
database introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdfdatabase introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdf
parveen204931475
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to Database
Siti Ismail
 
Presentaion on data structure mms-a-28
Presentaion on  data structure mms-a-28Presentaion on  data structure mms-a-28
Presentaion on data structure mms-a-28
KhanSayeed2
 
Introduction to DBMS and SQL Overview
Introduction to DBMS and SQL OverviewIntroduction to DBMS and SQL Overview
Introduction to DBMS and SQL Overview
Prabu U
 
Dbms
DbmsDbms
Data base management system
Data base management systemData base management system
Data base management systemNavneet Jingar
 
M.sc. engg (ict) admission guide database management system 4
M.sc. engg (ict) admission guide   database management system 4M.sc. engg (ict) admission guide   database management system 4
M.sc. engg (ict) admission guide database management system 4
Syed Ariful Islam Emon
 
Ch-1-Introduction-to-Database.pdf
Ch-1-Introduction-to-Database.pdfCh-1-Introduction-to-Database.pdf
Ch-1-Introduction-to-Database.pdf
MrjJoker1
 

Similar to Lecture 1.pptx (20)

Database-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptxDatabase-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptx
 
Basic of Data Structure.pptx
Basic of Data Structure.pptxBasic of Data Structure.pptx
Basic of Data Structure.pptx
 
Basic of Data Structure.pptx
Basic of Data Structure.pptxBasic of Data Structure.pptx
Basic of Data Structure.pptx
 
Database Management System ppt
Database Management System pptDatabase Management System ppt
Database Management System ppt
 
csedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdfcsedatabasemanagementsystemppt-170825044344.pdf
csedatabasemanagementsystemppt-170825044344.pdf
 
RDBMS to NoSQL. An overview.
RDBMS to NoSQL. An overview.RDBMS to NoSQL. An overview.
RDBMS to NoSQL. An overview.
 
Introduction-to-Coding-Challenges data structure.pptx
Introduction-to-Coding-Challenges data structure.pptxIntroduction-to-Coding-Challenges data structure.pptx
Introduction-to-Coding-Challenges data structure.pptx
 
Introduction-to-Coding-Challenges in data structure.pptx
Introduction-to-Coding-Challenges in data structure.pptxIntroduction-to-Coding-Challenges in data structure.pptx
Introduction-to-Coding-Challenges in data structure.pptx
 
Unit01 dbms
Unit01 dbmsUnit01 dbms
Unit01 dbms
 
Ch1- Introduction to dbms
Ch1- Introduction to dbmsCh1- Introduction to dbms
Ch1- Introduction to dbms
 
Database Concepts & SQL(1).pdf
Database Concepts & SQL(1).pdfDatabase Concepts & SQL(1).pdf
Database Concepts & SQL(1).pdf
 
ICT L5+.pptx
ICT L5+.pptxICT L5+.pptx
ICT L5+.pptx
 
database introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdfdatabase introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdf
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to Database
 
Presentaion on data structure mms-a-28
Presentaion on  data structure mms-a-28Presentaion on  data structure mms-a-28
Presentaion on data structure mms-a-28
 
Introduction to DBMS and SQL Overview
Introduction to DBMS and SQL OverviewIntroduction to DBMS and SQL Overview
Introduction to DBMS and SQL Overview
 
Dbms
DbmsDbms
Dbms
 
Data base management system
Data base management systemData base management system
Data base management system
 
M.sc. engg (ict) admission guide database management system 4
M.sc. engg (ict) admission guide   database management system 4M.sc. engg (ict) admission guide   database management system 4
M.sc. engg (ict) admission guide database management system 4
 
Ch-1-Introduction-to-Database.pdf
Ch-1-Introduction-to-Database.pdfCh-1-Introduction-to-Database.pdf
Ch-1-Introduction-to-Database.pdf
 

Recently uploaded

The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
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
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
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
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
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
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 

Recently uploaded (20)

The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
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...
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.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
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
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
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 

Lecture 1.pptx

  • 2. Objectives To define data structures and explain their importance To differentiate between data structures and databases  To summarize the concepts of :  Arrays and Multidimension Arrays  Stack Queue Linked List Tree Graph
  • 3. Introduction “ Get your data structures correct first, and the rest of the program will write itself.” - David Jones Program = Data Structures + Algorithms
  • 4. Definition  A data structure is a way of organizing and storing data in a computer system or memory to enable efficient operations, such as data retrieval, insertion, deletion, and manipulation. It provides a logical and systematic arrangement of data elements, along with relationships and operations defined on those elements. Data structures serve as the foundation for designing algorithms and solving problems in various domains of computer science and programming.
  • 5. Importance Efficient Data Organization: Data structures provide efficient organization and storage mechanisms for managing and manipulating large volumes of data.  Fast Data Access: Well-designed data structures enable quick and direct access to specific data elements, enhancing performance and reducing retrieval time. Optimal Memory Utilization: Data structures help in optimizing memory usage by minimizing memory overhead and providing efficient allocation and deallocation of resources.
  • 6. Importance Algorithm Design: Data structures are the building blocks for designing efficient algorithms and solving complex computational problems. Code Maintainability: Properly designed data structures enhance code maintainability by providing clear and organized ways to manage and access data, making it easier for developers to understand and modify code. Search and Retrieval Efficiency: Certain data structures, such as binary search trees and hash tables, offer efficient search and retrieval operations, reducing time complexity.
  • 7. Importance Sorting and Sorting Algorithms: Data structures facilitate sorting operations by providing efficient algorithms like quicksort, merge sort, and heapsort.  Code Reusability: By implementing common data structures, developers can reuse code and leverage existing libraries, saving time and effort in application development. Scalability and Performance: Properly chosen data structures contribute to scalable and high-performance systems, handling increasing data loads efficiently.
  • 8. Importance Problem Solving and Software Engineering: A solid understanding of data structures is crucial for effective problem-solving and designing robust software applications.  Dynamic Data Handling: Dynamic data structures, such as dynamic arrays and linked lists, adapt to changing data sizes, providing flexibility and efficient memory usage. Data Compression: Certain data structures, such as Huffman trees, facilitate data compression techniques, reducing storage space and improving data transmission.
  • 10. Types of Data Struct 1. Array 2. Linked List 3. Stack 4. Queue 5. Tree 6. Graph 7. Hash Table 8. Heap 9. Trie 10. Matrix 11. Set 12. Dictionary 13. Priority Queue 14. Disjoint Set 15. Bloom Filter 16. Red-Black Tree 17. B-tree 18. Sparse Matrix 19. Circular Buffer 20. Graph Adjacency List
  • 11. Array Short Description: An array is a contiguous block of memory that stores a fixed-size sequence of elements of the same type. Sample Applications:  Sorting Algorithms  Search Algorithms  Counting and Frequency Analysis
  • 12. Multidimensional Array Short Description: A multidimensional array is an array with multiple dimensions, such as 2D or 3D arrays. Sample Applications:  Storing and manipulating images or matrices in image processing and scientific computations.  Implementing game boards or grids for games and simulations.  Representing tabular data in a spreadsheet or database.
  • 13. Stack Short Description: A stack is a Last-In-First-Out (LIFO) data structure that stores elements in a sequential manner, allowing insertion and deletion only at one end. Sample Applications:  Function call stack in programming languages for managing program execution and memory allocation.  Undo/Redo functionality in text editors or graphic design software.  Depth-first search algorithm implementation in graph traversal.
  • 14. Queue Short Description: A queue is a First-In-First-Out (FIFO) data structure that stores elements in a sequential manner, allowing insertion at one end and deletion at the other end. Sample Applications:  Print spooling, where print jobs are queued and processed in the order they are submitted.  Process scheduling in operating systems  Message queuing systems for reliable message delivery in distributed systems.
  • 15. Linked List Short Description: A linked list is a linear data structure consisting of nodes that contain data and a reference to the next node, forming a sequence. Sample Applications:  Implementing a stack or queue using a linked list as the underlying data structure.  Managing dynamic data structures like memory allocation in operating systems.  Implementing sparse matrices or sparse data structures to optimize memory usage.
  • 16. Tree Short Description: A tree is a hierarchical data structure composed of nodes connected by edges, with a root node at the top and child nodes branching out from it. Sample Applications:  Representing file systems, where directories and subdirectories are organized hierarchically.  Implementing binary search trees for efficient searching and sorting.  Parsing and evaluating mathematical expressions using expression trees.
  • 17. Graph Short Description: A graph is a collection of vertices (nodes) connected by edges, representing relationships or connections between entities. Sample Applications:  Social network analysis, where individuals and their connections are represented by vertices and edges.  Routing algorithms in transportation networks or computer networks.  Image recognition and object detection using graph-based models like convolutional neural networks.
  • 18. CS222 End of Lecture 1 Next Lecture: Arrays