SlideShare a Scribd company logo
ASSIGNMENTPRESENTED BY:SHANNITISHBHIMDEVINAARSHAD (didn’t gave notes + not presenting)
PRESENTING ON:ALGORITHMS TO INSERT AND DELETE DATA INTO/FROM:-STACKS-QUEUESLINKED LISTS:-INITIALISATION-INSERTION OF DATA-DELETION-SEARCHING OF DATA ELEMENTS
STACKSA stack is a container of abstract data or structure data that are inserted and removed according to the principle of LAST IN FIRST OUT (LIFO). The object can be inserted at any time but only the last object can be removed. It is mainly based on the push and pop operation.PUSH OPERATION:    It add data to the top of the list, hiding any item already on the stack.POP OPERATION:    It removes an item from the top of the lists.
EXAMPLE OF PUSH AND POP:
QUEUESAQueue differ from a stack. A queue is a particular kind of collection in which the entities are kept in order  and principle of FIRST IN FIRST OUT (FIFO) data structure.
FIFO:    In FIFO the first element added to a queue will be the first one to be removed. ENQUEUE:    It is element that are inserted at the rear.DEQUEUE:   It is element that are removed at the front.
EXAMPLE OF ENQUEUE AND DEQUEUE:
LINKED LISTS In computer science, a linked list is a data structure that consists of a sequence of data records such that in each record there is a field that contains a reference (i.e., a link) to the next record in the sequence.
Linked lists and arrays are similar since they both store collections of data. The terminology is that arrays and linked lists store "elements" on behalf of "client" code. The specific type of element is not important since essentially the same structure works to store elements of any type. One way to think about linked lists is to look at how arrays work and think about alternate approaches.INITIALISATION(To assign a value to a variable or storage location in a computer program)Initialization in computing is the setting (or “formatting”) of a variable to some initial value, either by statically embedding the value at compile time, or else by assignment at run time. A section of code that performs such initialization is generally known as “initialization code” and may include other, one-time-only, functions such as opening files. Setting a memory location to hexadecimal zeroes is also sometimes known as “clearing” and is often performed by an exclusive or instruction (both operands specifying the same variable), at machine code level, since it requires no additional memory access.
INITIALISATION (CONTD.)Certain linked list operations (init, insert, etc.) may change element at start of list (what ListStart points at)to change what ListStart points to could pass a pointer to ListStart (pointer to pointer)
alternately, in each such routine, always return a pointer to ListStart and set ListStart to the result of function call (if ListStart doesn’t change it doesn’t hurt)EPtr initList() {  return NULL;}ListStart = initList();
FIRST EXAMPLES OF INITIALISATION:
SECOND EXAMPLE OF INITIALISATION
INSERTION OF DATA:Add new element to list:Make new element’s next pointer point to start of listMake pointer to new element start of listEPtr insertF(EPtr start, DataType dnew) {  return newElement(dnew,start);} To use, get new value to add (ask user, read from file, whatever), then call insertF:ListStart = insertF(ListStart,NewDataValue);
EXAMPLES OF INSERTION OF DATA:
DELETIONDeletion is act of deleting or removing by striking out material such as a word or passage that has been removed from a written body.
TYPES OF DELETION: SPEEDY DELETIONPROPOSED DELETION
SPEEDY DELETIONThis is meant to be used in uncontroversial cases. The main reason articles are speedily delete are for being extremely short on material or context.
PROPOSED DELETIONThis type of deletion is used to delete an article in seven days if no one objects. Proposed deletion should only be used for uncontroversial deletion nomination, it should not be used as a way of getting an article deleted.

More Related Content

PPTX
Assignment 2
PPTX
Adt of lists
DOCX
Stacks in data structure
PPTX
STACK, LINKED LIST ,AND QUEUE
PPT
linked list
PPTX
Linked list1
PPT
Data structure lecture 5
PPTX
Mca ii dfs u-3 linklist,stack,queue
Assignment 2
Adt of lists
Stacks in data structure
STACK, LINKED LIST ,AND QUEUE
linked list
Linked list1
Data structure lecture 5
Mca ii dfs u-3 linklist,stack,queue

What's hot (20)

PDF
Stacks,queues,linked-list
PPTX
Ppt on Linked list,stack,queue
PPSX
Dynamic memory allocation
PPTX
Linear data structure concepts
PPTX
Linked lists in Data Structure
PDF
Circular linked list
PPT
10 Linked Lists Sacks and Queues
PPSX
Data Structure (Dynamic Array and Linked List)
PPTX
Stack and queue
PPT
Stacks & Queues By Ms. Niti Arora
PDF
Linked List Static and Dynamic Memory Allocation
PPTX
Chapter 3 part2
PPT
linked list (c#)
PPTX
Data Structure -List Stack Queue
PPTX
Bca ii dfs u-2 linklist,stack,queue
PPTX
Stack and Queue
PPTX
Stack data structure in Data Structure using C
PPT
358 33 powerpoint-slides_8-linked-lists_chapter-8
PPT
List Data Structure
PPTX
Data Structures - Lecture 9 [Stack & Queue using Linked List]
Stacks,queues,linked-list
Ppt on Linked list,stack,queue
Dynamic memory allocation
Linear data structure concepts
Linked lists in Data Structure
Circular linked list
10 Linked Lists Sacks and Queues
Data Structure (Dynamic Array and Linked List)
Stack and queue
Stacks & Queues By Ms. Niti Arora
Linked List Static and Dynamic Memory Allocation
Chapter 3 part2
linked list (c#)
Data Structure -List Stack Queue
Bca ii dfs u-2 linklist,stack,queue
Stack and Queue
Stack data structure in Data Structure using C
358 33 powerpoint-slides_8-linked-lists_chapter-8
List Data Structure
Data Structures - Lecture 9 [Stack & Queue using Linked List]
Ad

Viewers also liked (20)

PDF
On bueno iniziativa 996
PPT
Thong diep cua Duc Da Lai La Ma 2009
PDF
Silabus mata kuliah pip unsera 2011
PDF
Latest Offshore Operations
PPTX
5 monkeys past tense
PPSX
Photo album1
PDF
Innovator cx brochure
PDF
Cells homeostasis_and_disease
PDF
Newsletter digital
PDF
Drip fund
PPT
Бумеранг за ЗОЖ
PDF
Jhe 33-3-147-11-2176-bhasin-v-tt
ODP
Kites
PDF
Notam 15-nov-16
PPT
Literate environment presentation
PPT
PPT
Growing your Business with the JRD
ODP
White-tailed Kites at Lake Hodges
PDF
Chuong 1 tu bat on vi mo den con duong tai co cau
PPTX
Lifestyle unit 8
On bueno iniziativa 996
Thong diep cua Duc Da Lai La Ma 2009
Silabus mata kuliah pip unsera 2011
Latest Offshore Operations
5 monkeys past tense
Photo album1
Innovator cx brochure
Cells homeostasis_and_disease
Newsletter digital
Drip fund
Бумеранг за ЗОЖ
Jhe 33-3-147-11-2176-bhasin-v-tt
Kites
Notam 15-nov-16
Literate environment presentation
Growing your Business with the JRD
White-tailed Kites at Lake Hodges
Chuong 1 tu bat on vi mo den con duong tai co cau
Lifestyle unit 8
Ad

Similar to Assignment (20)

PPTX
Data -structures for class 12 , easy ppt
DOC
Data Structure
PPTX
Stack and Queue by M.Gomathi Lecturer
PPTX
Introduction in Data Structure - stack, Queue
PDF
Data-structures7 class xii ashdshd hfuidshfkjhjsa ioh
PPTX
Bsc cs ii dfs u-2 linklist,stack,queue
PPT
Intro ds
PPTX
TSAT Presentation1.pptx
PPTX
Stack and queue power point presentation data structure and algorithms Stack-...
PDF
Fjdkkdnncmckkgkhkhkkhkhkhkhkhkhkhkhkhkhhl
PPT
Stacks & Queues
PPTX
Data structure,abstraction,abstract data type,static and dynamic,time and spa...
PPTX
Data structure and its types.
PPTX
Data Structures & Algorithms Unit 1.pptx
PPT
Rana Junaid Rasheed
PPT
Stacks queues-1220971554378778-9
PPTX
General Data structures
DOCX
CDS artificial intelligence and Machine.docx
PPTX
Collections and its types in C# (with examples)
PPT
Introduction to Data structures and Trees.ppt
Data -structures for class 12 , easy ppt
Data Structure
Stack and Queue by M.Gomathi Lecturer
Introduction in Data Structure - stack, Queue
Data-structures7 class xii ashdshd hfuidshfkjhjsa ioh
Bsc cs ii dfs u-2 linklist,stack,queue
Intro ds
TSAT Presentation1.pptx
Stack and queue power point presentation data structure and algorithms Stack-...
Fjdkkdnncmckkgkhkhkkhkhkhkhkhkhkhkhkhkhhl
Stacks & Queues
Data structure,abstraction,abstract data type,static and dynamic,time and spa...
Data structure and its types.
Data Structures & Algorithms Unit 1.pptx
Rana Junaid Rasheed
Stacks queues-1220971554378778-9
General Data structures
CDS artificial intelligence and Machine.docx
Collections and its types in C# (with examples)
Introduction to Data structures and Trees.ppt

More from FALLEE31188 (20)

PPT
Lecture4
PPT
Lecture2
PPT
PPTX
Inheritance
PDF
Inheritance
PPT
Functions
DOC
Field name
PPT
Encapsulation
PPT
Cpp tutorial
PPT
Cis068 08
PPT
Chapter14
PPT
Chapt03
PPT
C++lecture9
PPT
C++ polymorphism
PPT
C++ classes tutorials
PPT
C1320prespost
PPT
Brookshear 06
PPT
Book ppt
PPT
Lecture4
Lecture2
Inheritance
Inheritance
Functions
Field name
Encapsulation
Cpp tutorial
Cis068 08
Chapter14
Chapt03
C++lecture9
C++ polymorphism
C++ classes tutorials
C1320prespost
Brookshear 06
Book ppt

Recently uploaded (20)

PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
UNIT III MENTAL HEALTH NURSING ASSESSMENT
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Unit 4 Skeletal System.ppt.pptxopresentatiom
PPTX
History, Philosophy and sociology of education (1).pptx
PDF
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
IGGE1 Understanding the Self1234567891011
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PDF
Complications of Minimal Access Surgery at WLH
PPTX
202450812 BayCHI UCSC-SV 20250812 v17.pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
Classroom Observation Tools for Teachers
PPTX
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
PPTX
Cell Types and Its function , kingdom of life
PPTX
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
PDF
What if we spent less time fighting change, and more time building what’s rig...
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
UNIT III MENTAL HEALTH NURSING ASSESSMENT
Paper A Mock Exam 9_ Attempt review.pdf.
A systematic review of self-coping strategies used by university students to ...
Supply Chain Operations Speaking Notes -ICLT Program
Unit 4 Skeletal System.ppt.pptxopresentatiom
History, Philosophy and sociology of education (1).pptx
ChatGPT for Dummies - Pam Baker Ccesa007.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
IGGE1 Understanding the Self1234567891011
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
Complications of Minimal Access Surgery at WLH
202450812 BayCHI UCSC-SV 20250812 v17.pptx
Final Presentation General Medicine 03-08-2024.pptx
LDMMIA Reiki Yoga Finals Review Spring Summer
Classroom Observation Tools for Teachers
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
Cell Types and Its function , kingdom of life
CHAPTER IV. MAN AND BIOSPHERE AND ITS TOTALITY.pptx
What if we spent less time fighting change, and more time building what’s rig...

Assignment

  • 2. PRESENTING ON:ALGORITHMS TO INSERT AND DELETE DATA INTO/FROM:-STACKS-QUEUESLINKED LISTS:-INITIALISATION-INSERTION OF DATA-DELETION-SEARCHING OF DATA ELEMENTS
  • 3. STACKSA stack is a container of abstract data or structure data that are inserted and removed according to the principle of LAST IN FIRST OUT (LIFO). The object can be inserted at any time but only the last object can be removed. It is mainly based on the push and pop operation.PUSH OPERATION: It add data to the top of the list, hiding any item already on the stack.POP OPERATION: It removes an item from the top of the lists.
  • 4. EXAMPLE OF PUSH AND POP:
  • 5. QUEUESAQueue differ from a stack. A queue is a particular kind of collection in which the entities are kept in order and principle of FIRST IN FIRST OUT (FIFO) data structure.
  • 6. FIFO: In FIFO the first element added to a queue will be the first one to be removed. ENQUEUE: It is element that are inserted at the rear.DEQUEUE: It is element that are removed at the front.
  • 7. EXAMPLE OF ENQUEUE AND DEQUEUE:
  • 8. LINKED LISTS In computer science, a linked list is a data structure that consists of a sequence of data records such that in each record there is a field that contains a reference (i.e., a link) to the next record in the sequence.
  • 9. Linked lists and arrays are similar since they both store collections of data. The terminology is that arrays and linked lists store "elements" on behalf of "client" code. The specific type of element is not important since essentially the same structure works to store elements of any type. One way to think about linked lists is to look at how arrays work and think about alternate approaches.INITIALISATION(To assign a value to a variable or storage location in a computer program)Initialization in computing is the setting (or “formatting”) of a variable to some initial value, either by statically embedding the value at compile time, or else by assignment at run time. A section of code that performs such initialization is generally known as “initialization code” and may include other, one-time-only, functions such as opening files. Setting a memory location to hexadecimal zeroes is also sometimes known as “clearing” and is often performed by an exclusive or instruction (both operands specifying the same variable), at machine code level, since it requires no additional memory access.
  • 10. INITIALISATION (CONTD.)Certain linked list operations (init, insert, etc.) may change element at start of list (what ListStart points at)to change what ListStart points to could pass a pointer to ListStart (pointer to pointer)
  • 11. alternately, in each such routine, always return a pointer to ListStart and set ListStart to the result of function call (if ListStart doesn’t change it doesn’t hurt)EPtr initList() { return NULL;}ListStart = initList();
  • 12. FIRST EXAMPLES OF INITIALISATION:
  • 13. SECOND EXAMPLE OF INITIALISATION
  • 14. INSERTION OF DATA:Add new element to list:Make new element’s next pointer point to start of listMake pointer to new element start of listEPtr insertF(EPtr start, DataType dnew) { return newElement(dnew,start);} To use, get new value to add (ask user, read from file, whatever), then call insertF:ListStart = insertF(ListStart,NewDataValue);
  • 16. DELETIONDeletion is act of deleting or removing by striking out material such as a word or passage that has been removed from a written body.
  • 17. TYPES OF DELETION: SPEEDY DELETIONPROPOSED DELETION
  • 18. SPEEDY DELETIONThis is meant to be used in uncontroversial cases. The main reason articles are speedily delete are for being extremely short on material or context.
  • 19. PROPOSED DELETIONThis type of deletion is used to delete an article in seven days if no one objects. Proposed deletion should only be used for uncontroversial deletion nomination, it should not be used as a way of getting an article deleted.
  • 21. SEARCHING OF DATA ELEMENTSIn computer, a search algorithm, broadly speaking, is an algorithm for finding an item with specified properties among a collection of item. The items may be stored individually as a record in a database or may be elements of a search space defined by a mathematical formula or procedure.
  • 22. THANK YOU FOR YOUR ATTENTION