SlideShare uma empresa Scribd logo
1 de 6
Standard Algorithms
DATA TYPES AND STRUCTURES
Linked Lists
 A linked list is a set of items which are arranged in an
sequential order, like an array, but each item links to the next
item in the list.
 Linked lists have advantages and disadvantages:
Advantages of Linked Lists
 No fixed size: the list can expand or reduce when the program
is run.
 Linked lists are flexible: the order within the lists can be
changed without having to move data (just the links are
moved).
 Memory efficient than an array: only needs to be the size
required for the number of items stored, not as large as the
possible number of items to be stored.
Disadvantages of Linked Lists
 Cannot use an index within a linked list to identify a particular
item. To find a specific item you need to go through the list
from beginning to end.
Inserting and Adding Items
 Inserting an item between two present items within a list can be achieved
by changing the link of the pointer to point to the inserted item.
 Adding an item to the end of the list can be done by redirecting the last
link to the new item and linking the new item to NUL .
 Adding an item to the beginning of the list can be done by redirecting the
Head of the list to the new item and pointing its link to the formal first
item.
Deleting Items
 Deleting an item from a list would be achieved by changing the link from
the item before to the item after, bypassing the item which is no longer
required.

Mais conteúdo relacionado

Mais procurados

ICT: SPREADSHEETS (MICROSOFT EXCEL)
ICT: SPREADSHEETS (MICROSOFT EXCEL)ICT: SPREADSHEETS (MICROSOFT EXCEL)
ICT: SPREADSHEETS (MICROSOFT EXCEL)Aj Mappala
 
CCPRO 2016 Power Presentation
CCPRO 2016 Power PresentationCCPRO 2016 Power Presentation
CCPRO 2016 Power PresentationDavid Onder
 
Ash hlt 540 week 3 assignment 1 coyne and messina articles
Ash  hlt 540 week 3 assignment 1 coyne and messina articlesAsh  hlt 540 week 3 assignment 1 coyne and messina articles
Ash hlt 540 week 3 assignment 1 coyne and messina articlesNoahliamwilliam
 
Spss vs excel which one is the best tool for statistics
Spss vs excel  which one is the best tool for statisticsSpss vs excel  which one is the best tool for statistics
Spss vs excel which one is the best tool for statisticsStat Analytica
 
Excel users: An end to the agonizing tracing of formula precedents & dependen...
Excel users: An end to the agonizing tracing of formula precedents & dependen...Excel users: An end to the agonizing tracing of formula precedents & dependen...
Excel users: An end to the agonizing tracing of formula precedents & dependen...Knut Gjelsvik
 
Overview on excel 2013 - 6th April 2017
Overview on excel 2013 -  6th April 2017Overview on excel 2013 -  6th April 2017
Overview on excel 2013 - 6th April 2017Ahmed Essam
 
Spreadsheet 1
Spreadsheet 1Spreadsheet 1
Spreadsheet 1norzaini
 
Exceeeeeeeeeelsuperogriginal
ExceeeeeeeeeelsuperogriginalExceeeeeeeeeelsuperogriginal
ExceeeeeeeeeelsuperogriginalCecy Tolentino
 
Excel Presentation
Excel PresentationExcel Presentation
Excel Presentationalexvai10
 
MS Sql Server: Reporting manipulating data
MS Sql Server: Reporting manipulating dataMS Sql Server: Reporting manipulating data
MS Sql Server: Reporting manipulating dataDataminingTools Inc
 

Mais procurados (19)

Data structures
Data structuresData structures
Data structures
 
ICT: SPREADSHEETS (MICROSOFT EXCEL)
ICT: SPREADSHEETS (MICROSOFT EXCEL)ICT: SPREADSHEETS (MICROSOFT EXCEL)
ICT: SPREADSHEETS (MICROSOFT EXCEL)
 
Using microsoft excel
Using microsoft excelUsing microsoft excel
Using microsoft excel
 
Linked list in DS
Linked list in DSLinked list in DS
Linked list in DS
 
CCPRO 2016 Power Presentation
CCPRO 2016 Power PresentationCCPRO 2016 Power Presentation
CCPRO 2016 Power Presentation
 
Ash hlt 540 week 3 assignment 1 coyne and messina articles
Ash  hlt 540 week 3 assignment 1 coyne and messina articlesAsh  hlt 540 week 3 assignment 1 coyne and messina articles
Ash hlt 540 week 3 assignment 1 coyne and messina articles
 
Spss vs excel which one is the best tool for statistics
Spss vs excel  which one is the best tool for statisticsSpss vs excel  which one is the best tool for statistics
Spss vs excel which one is the best tool for statistics
 
Excel
ExcelExcel
Excel
 
Data Modelling QlikView
Data Modelling QlikViewData Modelling QlikView
Data Modelling QlikView
 
Excel users: An end to the agonizing tracing of formula precedents & dependen...
Excel users: An end to the agonizing tracing of formula precedents & dependen...Excel users: An end to the agonizing tracing of formula precedents & dependen...
Excel users: An end to the agonizing tracing of formula precedents & dependen...
 
Overview on excel 2013 - 6th April 2017
Overview on excel 2013 -  6th April 2017Overview on excel 2013 -  6th April 2017
Overview on excel 2013 - 6th April 2017
 
Excel
ExcelExcel
Excel
 
Ms office excel
Ms office excelMs office excel
Ms office excel
 
AVL Tree
AVL Tree  AVL Tree
AVL Tree
 
Spreadsheet 1
Spreadsheet 1Spreadsheet 1
Spreadsheet 1
 
Digital tools
Digital toolsDigital tools
Digital tools
 
Exceeeeeeeeeelsuperogriginal
ExceeeeeeeeeelsuperogriginalExceeeeeeeeeelsuperogriginal
Exceeeeeeeeeelsuperogriginal
 
Excel Presentation
Excel PresentationExcel Presentation
Excel Presentation
 
MS Sql Server: Reporting manipulating data
MS Sql Server: Reporting manipulating dataMS Sql Server: Reporting manipulating data
MS Sql Server: Reporting manipulating data
 

Destaque

Programming Paradigm
Programming ParadigmProgramming Paradigm
Programming ParadigmSabahtHussein
 
Database Systems and SQL
Database Systems and SQLDatabase Systems and SQL
Database Systems and SQLSabahtHussein
 
Database and Web Integration
Database and Web IntegrationDatabase and Web Integration
Database and Web IntegrationSabahtHussein
 
CS152 Programming Paradigm
CS152 Programming Paradigm CS152 Programming Paradigm
CS152 Programming Paradigm Kaya Ota
 
Programming Paradigms
Programming ParadigmsProgramming Paradigms
Programming ParadigmsDirecti Group
 
The next 2500 days
The next 2500 daysThe next 2500 days
The next 2500 daysKevin Feenan
 
MITH Digital Dialogues: Intro to Programming for Humanists (with Ruby)
MITH Digital Dialogues: Intro to Programming for Humanists (with Ruby)MITH Digital Dialogues: Intro to Programming for Humanists (with Ruby)
MITH Digital Dialogues: Intro to Programming for Humanists (with Ruby)joegilbert
 
XKE - Programming Paradigms & Constructs
XKE - Programming Paradigms & ConstructsXKE - Programming Paradigms & Constructs
XKE - Programming Paradigms & ConstructsNicolas Demengel
 
Programming Paradigms
Programming ParadigmsProgramming Paradigms
Programming ParadigmsLi SUN
 
Virtual machines, emulators and mobile devices
Virtual machines, emulators and mobile devicesVirtual machines, emulators and mobile devices
Virtual machines, emulators and mobile devicesForrester High School
 
Fetch Execute Cycle
Fetch Execute CycleFetch Execute Cycle
Fetch Execute Cyclepy7rjs
 

Destaque (20)

Programming Paradigm
Programming ParadigmProgramming Paradigm
Programming Paradigm
 
File handling
File handlingFile handling
File handling
 
Project management
Project managementProject management
Project management
 
Database Systems and SQL
Database Systems and SQLDatabase Systems and SQL
Database Systems and SQL
 
Database and Web Integration
Database and Web IntegrationDatabase and Web Integration
Database and Web Integration
 
Linked Lists
Linked ListsLinked Lists
Linked Lists
 
Design Techniques
Design TechniquesDesign Techniques
Design Techniques
 
Web Development
Web DevelopmentWeb Development
Web Development
 
CS152 Programming Paradigm
CS152 Programming Paradigm CS152 Programming Paradigm
CS152 Programming Paradigm
 
Programming Paradigms
Programming ParadigmsProgramming Paradigms
Programming Paradigms
 
Paradigm 1218656614474137 8
Paradigm 1218656614474137 8Paradigm 1218656614474137 8
Paradigm 1218656614474137 8
 
The next 2500 days
The next 2500 daysThe next 2500 days
The next 2500 days
 
MITH Digital Dialogues: Intro to Programming for Humanists (with Ruby)
MITH Digital Dialogues: Intro to Programming for Humanists (with Ruby)MITH Digital Dialogues: Intro to Programming for Humanists (with Ruby)
MITH Digital Dialogues: Intro to Programming for Humanists (with Ruby)
 
XKE - Programming Paradigms & Constructs
XKE - Programming Paradigms & ConstructsXKE - Programming Paradigms & Constructs
XKE - Programming Paradigms & Constructs
 
Programming Paradigms
Programming ParadigmsProgramming Paradigms
Programming Paradigms
 
Audio Compression
Audio CompressionAudio Compression
Audio Compression
 
Virtual machines, emulators and mobile devices
Virtual machines, emulators and mobile devicesVirtual machines, emulators and mobile devices
Virtual machines, emulators and mobile devices
 
Menu vb
Menu vbMenu vb
Menu vb
 
Programming paradigms
Programming paradigmsProgramming paradigms
Programming paradigms
 
Fetch Execute Cycle
Fetch Execute CycleFetch Execute Cycle
Fetch Execute Cycle
 

Semelhante a Standard Algorithms

Data Structures and Algorithms - Lec 05.pptx
Data Structures and Algorithms - Lec 05.pptxData Structures and Algorithms - Lec 05.pptx
Data Structures and Algorithms - Lec 05.pptxRameshaFernando2
 
What is a linked listWhat is a linked lists general syntaxCan .pdf
What is a linked listWhat is a linked lists general syntaxCan .pdfWhat is a linked listWhat is a linked lists general syntaxCan .pdf
What is a linked listWhat is a linked lists general syntaxCan .pdfbhim1213
 
Static arrays are structures whose size is fixed at compile time and.pdf
Static arrays are structures whose size is fixed at compile time and.pdfStatic arrays are structures whose size is fixed at compile time and.pdf
Static arrays are structures whose size is fixed at compile time and.pdfanjanacottonmills
 
46267037-Data-Structures-PPT.ppt
46267037-Data-Structures-PPT.ppt46267037-Data-Structures-PPT.ppt
46267037-Data-Structures-PPT.pptRizwanBasha12
 
Data_structure.pptx
Data_structure.pptxData_structure.pptx
Data_structure.pptxpriya415376
 
linked list.pptx
linked list.pptxlinked list.pptx
linked list.pptxpijuschal1
 
Unit 1 linked list
Unit 1 linked listUnit 1 linked list
Unit 1 linked listLavanyaJ28
 
linked list in Data Structure, Simple and Easy Tutorial
linked list in Data Structure, Simple and Easy Tutoriallinked list in Data Structure, Simple and Easy Tutorial
linked list in Data Structure, Simple and Easy TutorialAfzal Badshah
 
DATA STRUCTURES AND LINKED LISTS IN C.pptx
DATA STRUCTURES AND LINKED LISTS IN C.pptxDATA STRUCTURES AND LINKED LISTS IN C.pptx
DATA STRUCTURES AND LINKED LISTS IN C.pptxSKUP1
 
DATA STRUCTURES AND LINKED LISTS IN C.pptx
DATA STRUCTURES AND LINKED LISTS IN C.pptxDATA STRUCTURES AND LINKED LISTS IN C.pptx
DATA STRUCTURES AND LINKED LISTS IN C.pptxLECO9
 
LINKED LIST.pptx
LINKED LIST.pptxLINKED LIST.pptx
LINKED LIST.pptxDr.Shweta
 
Data Structures- Part7 linked lists
Data Structures- Part7 linked listsData Structures- Part7 linked lists
Data Structures- Part7 linked listsAbdullah Al-hazmy
 
Different types of Linked list.
Different types of Linked list.Different types of Linked list.
Different types of Linked list.JAYANTAOJHA
 
Linear Data Structures - List, Stack and Queue
Linear Data Structures - List, Stack and QueueLinear Data Structures - List, Stack and Queue
Linear Data Structures - List, Stack and QueueSelvaraj Seerangan
 
Which data structure is it? What are the various data structure kinds and wha...
Which data structure is it? What are the various data structure kinds and wha...Which data structure is it? What are the various data structure kinds and wha...
Which data structure is it? What are the various data structure kinds and wha...Tutort Academy
 
Linked list in Data Structure and Algorithm
Linked list in Data Structure and Algorithm Linked list in Data Structure and Algorithm
Linked list in Data Structure and Algorithm KristinaBorooah
 

Semelhante a Standard Algorithms (20)

Lecture 2b lists
Lecture 2b listsLecture 2b lists
Lecture 2b lists
 
Data Structures and Algorithms - Lec 05.pptx
Data Structures and Algorithms - Lec 05.pptxData Structures and Algorithms - Lec 05.pptx
Data Structures and Algorithms - Lec 05.pptx
 
What is a linked listWhat is a linked lists general syntaxCan .pdf
What is a linked listWhat is a linked lists general syntaxCan .pdfWhat is a linked listWhat is a linked lists general syntaxCan .pdf
What is a linked listWhat is a linked lists general syntaxCan .pdf
 
Static arrays are structures whose size is fixed at compile time and.pdf
Static arrays are structures whose size is fixed at compile time and.pdfStatic arrays are structures whose size is fixed at compile time and.pdf
Static arrays are structures whose size is fixed at compile time and.pdf
 
46267037-Data-Structures-PPT.ppt
46267037-Data-Structures-PPT.ppt46267037-Data-Structures-PPT.ppt
46267037-Data-Structures-PPT.ppt
 
Data_structure.pptx
Data_structure.pptxData_structure.pptx
Data_structure.pptx
 
linked list.pptx
linked list.pptxlinked list.pptx
linked list.pptx
 
Unit 1 linked list
Unit 1 linked listUnit 1 linked list
Unit 1 linked list
 
linked list in Data Structure, Simple and Easy Tutorial
linked list in Data Structure, Simple and Easy Tutoriallinked list in Data Structure, Simple and Easy Tutorial
linked list in Data Structure, Simple and Easy Tutorial
 
DATA STRUCTURES AND LINKED LISTS IN C.pptx
DATA STRUCTURES AND LINKED LISTS IN C.pptxDATA STRUCTURES AND LINKED LISTS IN C.pptx
DATA STRUCTURES AND LINKED LISTS IN C.pptx
 
DATA STRUCTURES AND LINKED LISTS IN C.pptx
DATA STRUCTURES AND LINKED LISTS IN C.pptxDATA STRUCTURES AND LINKED LISTS IN C.pptx
DATA STRUCTURES AND LINKED LISTS IN C.pptx
 
LINKED LIST.pptx
LINKED LIST.pptxLINKED LIST.pptx
LINKED LIST.pptx
 
Data Structures- Part7 linked lists
Data Structures- Part7 linked listsData Structures- Part7 linked lists
Data Structures- Part7 linked lists
 
Linked list
Linked listLinked list
Linked list
 
Different types of Linked list.
Different types of Linked list.Different types of Linked list.
Different types of Linked list.
 
Linear Data Structures - List, Stack and Queue
Linear Data Structures - List, Stack and QueueLinear Data Structures - List, Stack and Queue
Linear Data Structures - List, Stack and Queue
 
Unit 3 dsa LINKED LIST
Unit 3 dsa LINKED LISTUnit 3 dsa LINKED LIST
Unit 3 dsa LINKED LIST
 
Linked list
Linked listLinked list
Linked list
 
Which data structure is it? What are the various data structure kinds and wha...
Which data structure is it? What are the various data structure kinds and wha...Which data structure is it? What are the various data structure kinds and wha...
Which data structure is it? What are the various data structure kinds and wha...
 
Linked list in Data Structure and Algorithm
Linked list in Data Structure and Algorithm Linked list in Data Structure and Algorithm
Linked list in Data Structure and Algorithm
 

Mais de SabahtHussein

Mais de SabahtHussein (20)

S3 HTML Hyperlinks and Images
S3 HTML Hyperlinks and ImagesS3 HTML Hyperlinks and Images
S3 HTML Hyperlinks and Images
 
S3 HTML Lists and Tables
S3 HTML Lists and TablesS3 HTML Lists and Tables
S3 HTML Lists and Tables
 
S3 HTML Structure and Formatting
S3 HTML Structure and FormattingS3 HTML Structure and Formatting
S3 HTML Structure and Formatting
 
S3 HTML Introduction
S3 HTML IntroductionS3 HTML Introduction
S3 HTML Introduction
 
S1 Programming Lesson 1
S1 Programming Lesson 1S1 Programming Lesson 1
S1 Programming Lesson 1
 
S1 Web Development
S1 Web DevelopmentS1 Web Development
S1 Web Development
 
Video Games Development
Video Games DevelopmentVideo Games Development
Video Games Development
 
S2 Data Types
S2 Data TypesS2 Data Types
S2 Data Types
 
Introduction to Pseudocode
Introduction to PseudocodeIntroduction to Pseudocode
Introduction to Pseudocode
 
S3 SQL
S3 SQLS3 SQL
S3 SQL
 
Query Design
Query DesignQuery Design
Query Design
 
SQL PT
SQL PTSQL PT
SQL PT
 
Query design
Query designQuery design
Query design
 
S3 Field Types
S3 Field TypesS3 Field Types
S3 Field Types
 
Testing a Database
Testing a DatabaseTesting a Database
Testing a Database
 
Testing a Database
Testing a DatabaseTesting a Database
Testing a Database
 
Database Testing and Evaluation
Database Testing and EvaluationDatabase Testing and Evaluation
Database Testing and Evaluation
 
DPA and GDPR
DPA and GDPRDPA and GDPR
DPA and GDPR
 
Database Analysis
Database AnalysisDatabase Analysis
Database Analysis
 
Database Analysis
Database AnalysisDatabase Analysis
Database Analysis
 

Último

social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 

Último (20)

social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 

Standard Algorithms

  • 2. Linked Lists  A linked list is a set of items which are arranged in an sequential order, like an array, but each item links to the next item in the list.  Linked lists have advantages and disadvantages:
  • 3. Advantages of Linked Lists  No fixed size: the list can expand or reduce when the program is run.  Linked lists are flexible: the order within the lists can be changed without having to move data (just the links are moved).  Memory efficient than an array: only needs to be the size required for the number of items stored, not as large as the possible number of items to be stored.
  • 4. Disadvantages of Linked Lists  Cannot use an index within a linked list to identify a particular item. To find a specific item you need to go through the list from beginning to end.
  • 5. Inserting and Adding Items  Inserting an item between two present items within a list can be achieved by changing the link of the pointer to point to the inserted item.  Adding an item to the end of the list can be done by redirecting the last link to the new item and linking the new item to NUL .  Adding an item to the beginning of the list can be done by redirecting the Head of the list to the new item and pointing its link to the formal first item.
  • 6. Deleting Items  Deleting an item from a list would be achieved by changing the link from the item before to the item after, bypassing the item which is no longer required.