SlideShare a Scribd company logo
100 21
INFO LINK
300 41
200 31
400 51
500 NULL
11 41
21
31
51
Add
SRCHSL (INFO, LINK, START, ITEM, LOC)
START=11
ITEM=300
LOC=?
100 21
INFO LINK
300 41
200 31
400 51
500 NULL
41
21
31
51
1. Set PTR:= START
START=11
ITEM=300
LOC=?
11
Add
PTR=
100 21
INFO LINK
300 41
200 31
400 51
500 NULL
41
21
31
51
2. Repeat Step 3 while PTR≠ NULL
START=11
ITEM=300
LOC=?
11
Add
PTR=
100 21
INFO LINK
300 41
200 31
400 51
500 NULL
41
21
31
51
3. If ITEM>INFO[PTR]
START=11
ITEM=300
LOC=?
11
Add
PTR=
Means
300>100
100 21
INFO LINK
300 41
200 31
400 51
500 NULL
41
21
31
51
3. If ITEM>INFO[PTR] then
Set PTR:= LINK[PTR]
START=11
ITEM=300
LOC=?
11
Add
PTR=
Means
300>100
100 21
INFO LINK
300 41
200 31
400 51
500 NULL
41
21
31
51
3. If ITEM>INFO[PTR] then
Set PTR:= LINK[PTR]
START=11
ITEM=300
LOC=?
11
Add
PTR=
300>300
100 21
INFO LINK
300 41
200 31
400 51
500 NULL
41
21
31
51
3. If ITEM>INFO[PTR] then
Set PTR:= LINK[PTR]
Else if ITEM=INFO[PTR]
SET LOC=PTR and EXIT
START=11
ITEM=300
LOC= 21
11
Add
PTR=
300=300
100 21
INFO LINK
300 41
200 31
400 51
500 NULL
41
21
31
51
3. If ITEM>INFO[PTR] then
Set PTR:= LINK[PTR]
Else if ITEM=INFO[PTR]
SET LOC=PTR and EXIT
Else Set LOC:= NULL and Exit
START=11
ITEM=300
LOC= 21
11
Add
PTR=
300=300
Else if
if(ccondition)
{
Statement;
}
else if(condition 2)
{
Statement2;
}
else
{
Statement3
}
100 21
INFO LINK
300 41
200 31
400 51
500 NULL
41
21
31
51
1.[OVERFLOW?] IF AVAIL=NULL, the Write: OVERFLOW
START=11
11
START
AVAIL
100 21
INFO LINK
300 41
200 31
400 51
500 NULL
41
21
31
51
2. SET NEW:= AVAIL AND AVAIL:=LINK AVAIL
START=11
11
START
AVAIL LINK
NEW
100 21
INFO LINK
300 41
200 31
400 51
500 NULL
41
21
31
51
4. SET LINK[NEW]=START
START=11
11
NEW 23 11
START
100 21
INFO LINK
300 41
200 31
400 51
500 NULL
41
21
31
51
5. SET START=NEW
START=11
11
NEW 23 11
START

More Related Content

PPTX
Addition of Integers.pptx
PPTX
Davis a directorsnotebook
PPTX
Mercedes perkinsdonyalebrooks directorsnb
PDF
Stop the Evil, Protect the Endpoint
PDF
Rotary club of Dhone souviner 2012 - 13
PPT
Actividades Colegio Cervantes
DOC
Indie music
PDF
January pml r.c. dhone
Addition of Integers.pptx
Davis a directorsnotebook
Mercedes perkinsdonyalebrooks directorsnb
Stop the Evil, Protect the Endpoint
Rotary club of Dhone souviner 2012 - 13
Actividades Colegio Cervantes
Indie music
January pml r.c. dhone

Viewers also liked (15)

PPTX
Yale red ox presentation draft 1
PDF
Rotary club of Dhone Oct 2012 pml
PDF
October gml
PPT
Religious studies
PDF
Rotaract certificate final print
PPT
Modulo 2
PPT
Matter 123
PDF
How to create facebook ads
PPTX
IT3196 final presentation
PPTX
Masat (2)
PPTX
Randolph a directorsnotebook
PDF
External Attacks Against Privileged Accounts - How Federal Agencies Can Build...
PDF
Feb pml
PDF
Rotary club, dhone may 2013 pml
PDF
IBM and BeyondTrust Presents: Protecting Your Sensitive Data in the Cloud
Yale red ox presentation draft 1
Rotary club of Dhone Oct 2012 pml
October gml
Religious studies
Rotaract certificate final print
Modulo 2
Matter 123
How to create facebook ads
IT3196 final presentation
Masat (2)
Randolph a directorsnotebook
External Attacks Against Privileged Accounts - How Federal Agencies Can Build...
Feb pml
Rotary club, dhone may 2013 pml
IBM and BeyondTrust Presents: Protecting Your Sensitive Data in the Cloud
Ad

More from Sharon Manmothe (8)

PPTX
Introduction to No SQL - Learn nosql databases
PPTX
Planning and MBO A goal without a plan is just a wish.
PPTX
CSR Reputation and Brand Image Social License to Operate
PPTX
Decision Making Demonstrate leadership Manage change
PPTX
Social Media Analytics for Computer science students
PPTX
Pointers and Structures.pptx
PDF
php_string.pdf
PPTX
It health applications
Introduction to No SQL - Learn nosql databases
Planning and MBO A goal without a plan is just a wish.
CSR Reputation and Brand Image Social License to Operate
Decision Making Demonstrate leadership Manage change
Social Media Analytics for Computer science students
Pointers and Structures.pptx
php_string.pdf
It health applications
Ad

Recently uploaded (20)

PDF
Visual Aids for Exploratory Data Analysis.pdf
PPTX
Nature of X-rays, X- Ray Equipment, Fluoroscopy
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
UNIT 4 Total Quality Management .pptx
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPT
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
PDF
Integrating Fractal Dimension and Time Series Analysis for Optimized Hyperspe...
PDF
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
PDF
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
PDF
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
PPTX
Current and future trends in Computer Vision.pptx
PPTX
communication and presentation skills 01
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PDF
Exploratory_Data_Analysis_Fundamentals.pdf
PDF
R24 SURVEYING LAB MANUAL for civil enggi
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
PPTX
Fundamentals of safety and accident prevention -final (1).pptx
PDF
Soil Improvement Techniques Note - Rabbi
PDF
737-MAX_SRG.pdf student reference guides
Visual Aids for Exploratory Data Analysis.pdf
Nature of X-rays, X- Ray Equipment, Fluoroscopy
Automation-in-Manufacturing-Chapter-Introduction.pdf
UNIT 4 Total Quality Management .pptx
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Introduction, IoT Design Methodology, Case Study on IoT System for Weather Mo...
Integrating Fractal Dimension and Time Series Analysis for Optimized Hyperspe...
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
Current and future trends in Computer Vision.pptx
communication and presentation skills 01
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Exploratory_Data_Analysis_Fundamentals.pdf
R24 SURVEYING LAB MANUAL for civil enggi
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
Fundamentals of safety and accident prevention -final (1).pptx
Soil Improvement Techniques Note - Rabbi
737-MAX_SRG.pdf student reference guides

Linear linklist search

  • 1. 100 21 INFO LINK 300 41 200 31 400 51 500 NULL 11 41 21 31 51 Add SRCHSL (INFO, LINK, START, ITEM, LOC) START=11 ITEM=300 LOC=?
  • 2. 100 21 INFO LINK 300 41 200 31 400 51 500 NULL 41 21 31 51 1. Set PTR:= START START=11 ITEM=300 LOC=? 11 Add PTR=
  • 3. 100 21 INFO LINK 300 41 200 31 400 51 500 NULL 41 21 31 51 2. Repeat Step 3 while PTR≠ NULL START=11 ITEM=300 LOC=? 11 Add PTR=
  • 4. 100 21 INFO LINK 300 41 200 31 400 51 500 NULL 41 21 31 51 3. If ITEM>INFO[PTR] START=11 ITEM=300 LOC=? 11 Add PTR= Means 300>100
  • 5. 100 21 INFO LINK 300 41 200 31 400 51 500 NULL 41 21 31 51 3. If ITEM>INFO[PTR] then Set PTR:= LINK[PTR] START=11 ITEM=300 LOC=? 11 Add PTR= Means 300>100
  • 6. 100 21 INFO LINK 300 41 200 31 400 51 500 NULL 41 21 31 51 3. If ITEM>INFO[PTR] then Set PTR:= LINK[PTR] START=11 ITEM=300 LOC=? 11 Add PTR= 300>300
  • 7. 100 21 INFO LINK 300 41 200 31 400 51 500 NULL 41 21 31 51 3. If ITEM>INFO[PTR] then Set PTR:= LINK[PTR] Else if ITEM=INFO[PTR] SET LOC=PTR and EXIT START=11 ITEM=300 LOC= 21 11 Add PTR= 300=300
  • 8. 100 21 INFO LINK 300 41 200 31 400 51 500 NULL 41 21 31 51 3. If ITEM>INFO[PTR] then Set PTR:= LINK[PTR] Else if ITEM=INFO[PTR] SET LOC=PTR and EXIT Else Set LOC:= NULL and Exit START=11 ITEM=300 LOC= 21 11 Add PTR= 300=300
  • 9. Else if if(ccondition) { Statement; } else if(condition 2) { Statement2; } else { Statement3 }
  • 10. 100 21 INFO LINK 300 41 200 31 400 51 500 NULL 41 21 31 51 1.[OVERFLOW?] IF AVAIL=NULL, the Write: OVERFLOW START=11 11 START AVAIL
  • 11. 100 21 INFO LINK 300 41 200 31 400 51 500 NULL 41 21 31 51 2. SET NEW:= AVAIL AND AVAIL:=LINK AVAIL START=11 11 START AVAIL LINK NEW
  • 12. 100 21 INFO LINK 300 41 200 31 400 51 500 NULL 41 21 31 51 4. SET LINK[NEW]=START START=11 11 NEW 23 11 START
  • 13. 100 21 INFO LINK 300 41 200 31 400 51 500 NULL 41 21 31 51 5. SET START=NEW START=11 11 NEW 23 11 START