SlideShare a Scribd company logo
2
Most read
3
Most read
5
Most read
Linked Stacks and queuesRamziShihadehAlqrainy
Linked list* is one of the fundamental data structures, and can be used to implement other data structures. It consists of a sequence of nodes.                                                                                   Link                                   Data                                                                                                            NODE* Node that consists of two type:1- Data : The data being stored in the node.2- Link : A reference to the next or previous node, null if last node
Type of linked list1- Singly-linked list :The simplest kind of linked list is a singly-linked list (or slist for short), which has one link per node. This link points to the next node in the list, or to a null value or empty list if it is the final node.                                                                                                   Null              Head2- Doubly-linked list :A more sophisticated kind of linked list is a doubly-linked list or two-way linked list. Each node has two links: one points to the previous node, or points to a null value or empty list if it is the first node; and one points to the next, or points to a null value or empty list if it is the final node.
3- Circularly-linked listIn a circularly-linked list, the first and final nodes are linked together. This can be done for both singly and doubly linked lists.  You begin at any node and follow the list in either direction until you return to the original node. * One of the advantages of the Linked-List is Dynamic allocation of memory.
nodesOne of the basic of Linked Structures.*The first constructor does nothing except to set next to NULL , The second Constructor is used to set the data members of a Node To the values specified as Parameters.
Implementation of Node
 Example

More Related Content

PPTX
DBMS: Types of keys
PPTX
Relational model
PPT
Er & eer to relational mapping
PPTX
Linked List
PPTX
DBMS Keys
PPTX
Relational algebra ppt
PPTX
The Relational Database Model
PPTX
Dbms 4NF & 5NF
DBMS: Types of keys
Relational model
Er & eer to relational mapping
Linked List
DBMS Keys
Relational algebra ppt
The Relational Database Model
Dbms 4NF & 5NF

What's hot (20)

ODP
ER Model in DBMS
PPTX
Introduction to data structure and algorithms
PDF
Dbms 3: 3 Schema Architecture
PPTX
DATABASE CONSTRAINTS
PPTX
Transaction management DBMS
PPTX
Types Of Keys in DBMS
PPT
Databases: Normalisation
PPTX
single linked list
PPT
Advanced sql
PPT
Constraints In Sql
PPT
15. Transactions in DBMS
PPTX
Linked list in Data Structure and Algorithm
PDF
Dbms 14: Relational Calculus
PPTX
Decomposition using Functional Dependency
PPTX
Er diagram
PPTX
database language ppt.pptx
PPTX
Presentation on pointer.
DOCX
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
PPTX
Integrity Constraints
PPT
ER-Model-ER Diagram
ER Model in DBMS
Introduction to data structure and algorithms
Dbms 3: 3 Schema Architecture
DATABASE CONSTRAINTS
Transaction management DBMS
Types Of Keys in DBMS
Databases: Normalisation
single linked list
Advanced sql
Constraints In Sql
15. Transactions in DBMS
Linked list in Data Structure and Algorithm
Dbms 14: Relational Calculus
Decomposition using Functional Dependency
Er diagram
database language ppt.pptx
Presentation on pointer.
The Relational Data Model and Relational Database Constraints Ch5 (Navathe 4t...
Integrity Constraints
ER-Model-ER Diagram
Ad

Viewers also liked (16)

DOC
Ds lab manual by s.k.rath
PPTX
Data Structures - Lecture 9 [Stack & Queue using Linked List]
PDF
Stacks,queues,linked-list
PPT
Formulacion de-qumica-inorganica-120319205240-phpapp01-131119105305-phpapp02-...
PPT
Stacks and queue
PPT
Stacks, Queues, Deques
PDF
Linked List Implementation of Deque in C
DOCX
Data structure new lab manual
PPTX
Stack using Linked List
PPT
Stacks & Queues By Ms. Niti Arora
PPTX
Ppt on Linked list,stack,queue
PPT
Equipos de emergencia y salvamento
PPT
Linked lists
PPTX
Linked list
PPTX
Queue Implementation Using Array & Linked List
PPT
Estructura datos pilas y colas
Ds lab manual by s.k.rath
Data Structures - Lecture 9 [Stack & Queue using Linked List]
Stacks,queues,linked-list
Formulacion de-qumica-inorganica-120319205240-phpapp01-131119105305-phpapp02-...
Stacks and queue
Stacks, Queues, Deques
Linked List Implementation of Deque in C
Data structure new lab manual
Stack using Linked List
Stacks & Queues By Ms. Niti Arora
Ppt on Linked list,stack,queue
Equipos de emergencia y salvamento
Linked lists
Linked list
Queue Implementation Using Array & Linked List
Estructura datos pilas y colas
Ad

Similar to Linked stacks and queues (20)

PPTX
linked list.pptx
PPTX
LINKED LIST.pptx
DOCX
Introduction to linked lists
PDF
DS Module 03.pdf
PPTX
Linear Data Structures - List, Stack and Queue
PDF
Linked List-Types.pdf
DOCX
Link list assi
PPTX
Data Structures Introduction & Linear DS
PPTX
Linked list
DOCX
Linked list.docx
PPTX
Different types of Linked list.
PPTX
Linked Lists, Single Linked list and its operations
PPTX
Data Structures(Part 1)
PPTX
Linked List in Data Structure
PPTX
Linked_List_Presentation_1.pptxjsjkskxjjdjekdlkdjmdkdk
PPTX
Linked List.pptx
PPT
PPT
PPT
linked list.pptx
LINKED LIST.pptx
Introduction to linked lists
DS Module 03.pdf
Linear Data Structures - List, Stack and Queue
Linked List-Types.pdf
Link list assi
Data Structures Introduction & Linear DS
Linked list
Linked list.docx
Different types of Linked list.
Linked Lists, Single Linked list and its operations
Data Structures(Part 1)
Linked List in Data Structure
Linked_List_Presentation_1.pptxjsjkskxjjdjekdlkdjmdkdk
Linked List.pptx

More from Ramzi Alqrainy (20)

PDF
Non English Search as a Machine Learning Problem
PDF
OpenSooq Image Recognition on AWS - AWS ML Lab
PDF
A Few Milliseconds in the Life of an HTTP Request - AWS Summit 2019
PDF
Mastering Chaos - OpenSooq’s journey from Monolithic to Microservices
PDF
Infrastructure OpenSooq Mobile @ Scale
PDF
Choosing the Right Technologies for OpenSooq
PDF
Retrieving Information From Solr
PDF
PDF
Arabic Content with Apache Solr
PDF
Recommender Systems, Part 1 - Introduction to approaches and algorithms
PDF
Apache Solr 4 Part 1 - Introduction, Features, Recency Ranking and Popularity...
PDF
Evaluating Search Engines
PDF
Starting From Zero - Winning Strategies for Zero Results Page
PDF
Search Behavior Patterns
PPT
Intel microprocessor history
PDF
How to prevent the cache problem in AJAX
PDF
Advance Data Structure
PDF
PPT
Markov Matrix
PPT
Non English Search as a Machine Learning Problem
OpenSooq Image Recognition on AWS - AWS ML Lab
A Few Milliseconds in the Life of an HTTP Request - AWS Summit 2019
Mastering Chaos - OpenSooq’s journey from Monolithic to Microservices
Infrastructure OpenSooq Mobile @ Scale
Choosing the Right Technologies for OpenSooq
Retrieving Information From Solr
Arabic Content with Apache Solr
Recommender Systems, Part 1 - Introduction to approaches and algorithms
Apache Solr 4 Part 1 - Introduction, Features, Recency Ranking and Popularity...
Evaluating Search Engines
Starting From Zero - Winning Strategies for Zero Results Page
Search Behavior Patterns
Intel microprocessor history
How to prevent the cache problem in AJAX
Advance Data Structure
Markov Matrix

Recently uploaded (20)

PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
Business Ethics Teaching Materials for college
PPTX
Cell Structure & Organelles in detailed.
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
COMPUTERS AS DATA ANALYSIS IN PRECLINICAL DEVELOPMENT.pptx
PDF
The Final Stretch: How to Release a Game and Not Die in the Process.
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Insiders guide to clinical Medicine.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Cardiovascular Pharmacology for pharmacy students.pptx
PDF
Basic Mud Logging Guide for educational purpose
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
Open folder Downloads.pdf yes yes ges yes
PDF
Anesthesia in Laparoscopic Surgery in India
Week 4 Term 3 Study Techniques revisited.pptx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
STATICS OF THE RIGID BODIES Hibbelers.pdf
Pre independence Education in Inndia.pdf
Business Ethics Teaching Materials for college
Cell Structure & Organelles in detailed.
PPH.pptx obstetrics and gynecology in nursing
COMPUTERS AS DATA ANALYSIS IN PRECLINICAL DEVELOPMENT.pptx
The Final Stretch: How to Release a Game and Not Die in the Process.
O5-L3 Freight Transport Ops (International) V1.pdf
Insiders guide to clinical Medicine.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Pharma ospi slides which help in ospi learning
Cardiovascular Pharmacology for pharmacy students.pptx
Basic Mud Logging Guide for educational purpose
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Open folder Downloads.pdf yes yes ges yes
Anesthesia in Laparoscopic Surgery in India

Linked stacks and queues

  • 1. Linked Stacks and queuesRamziShihadehAlqrainy
  • 2. Linked list* is one of the fundamental data structures, and can be used to implement other data structures. It consists of a sequence of nodes. Link Data NODE* Node that consists of two type:1- Data : The data being stored in the node.2- Link : A reference to the next or previous node, null if last node
  • 3. Type of linked list1- Singly-linked list :The simplest kind of linked list is a singly-linked list (or slist for short), which has one link per node. This link points to the next node in the list, or to a null value or empty list if it is the final node. Null Head2- Doubly-linked list :A more sophisticated kind of linked list is a doubly-linked list or two-way linked list. Each node has two links: one points to the previous node, or points to a null value or empty list if it is the first node; and one points to the next, or points to a null value or empty list if it is the final node.
  • 4. 3- Circularly-linked listIn a circularly-linked list, the first and final nodes are linked together. This can be done for both singly and doubly linked lists. You begin at any node and follow the list in either direction until you return to the original node. * One of the advantages of the Linked-List is Dynamic allocation of memory.
  • 5. nodesOne of the basic of Linked Structures.*The first constructor does nothing except to set next to NULL , The second Constructor is used to set the data members of a Node To the values specified as Parameters.