SlideShare a Scribd company logo
1 of 19
Muhammad
Aslam
Bs(Computer science)#2 Pathan
2k13/cse/26
 Is a functions which we use to
measure
Time,Space,and Check Efficiency of
the any Algorithms(Data Structure).
 There are three cases to measure the
algorithm in linear search
 Best case
 Average case
 Worst case
 Linear search is a technique in which
Items can be find sequentially or one by
one from data element.
 Find 55 number
x=n+1
Start
11 12 33 44 55 65
0 1 2 3 4 5 6 7
 The term best-case performance is used to
best case for a simple linear search on a
list occurs when the desired element is
the first element of the list.
 For example
 Find 11 c(n)=1
11 22 33 44 55 66 77 88
 Expected value of function
Find 76 c(n)=1/n
Start
Item not found
23 45 55 67 69 76 80 90
0 1 2 3 4 5 6 7
 Expected value of function
Find 76 c(n)=1/n
Start
Item not found
23 45 55 67 69 76 80 90
0 1 2 3 4 5 6 7
 Expected value of function
Find 76 c(n)=1/n
Start
Item not found
23 45 55 67 69 76 80 90
0 1 2 3 4 5 6 7
 Expected value of function
Find 76 c(n)=1/n
Start
Item not found
23 45 55 67 69 76 80 90
0 1 2 3 4 5 6 7
 Expected value of function
Find 76 c(n)=1/n
Start
Item not found
23 45 55 67 69 76 80 90
0 1 2 3 4 5 6 7
 Expected value of function
Find 76 c(n)=1/n
Start
Item found x={5}=76
23 45 55 67 69 76 80 90
0 1 2 3 4 5 6 7
 Binary search is a searching technique can be
search by the dividing the array of data
element from the Mid portion
 Formula= Mid int(Beg + End)/2
BEG MID END
0 1 2 3 4 5 6 7
10 11 12 23 24 35 36 45
 Find the number 37 from this array?
 X=37
Divided by Mid
Now formula=int (mid + end)/2
int (0+8)/2=4
0 1 2 3 4 5 6 7 8
10 37 12 23 24 35 36 45 88
 There are three cases to measure the
algorithm in linear search
 Best case
 Average case
 Worst case
0 1 2 3 4 5 6 7 8
5 12 17 23 38 44 77 84 90
Find(38)
0 8 4
Int = (BEG+END)/2
0 1 2 3 4 5 6 7 8
5 12 17 23 38 44 77 84 90
38<44 Low=Mid+1=5
Find(44)
0 8 4
Int = (BEG+END)/2
0 1 2 3 4 5 6 7 8
5 12 17 23 38 44 77 84 90
38<44 Low=Mid+1=5
Find(90)
0 8 4
Int = (BEG+END)/2
Thank You Very Much
Have
A Nice
Day

More Related Content

What's hot

Trigonometric, hyperbolic functions with invers and sum function
Trigonometric, hyperbolic functions with invers and sum functionTrigonometric, hyperbolic functions with invers and sum function
Trigonometric, hyperbolic functions with invers and sum function
DlearAhmad
 
Approximation and error
Approximation and errorApproximation and error
Approximation and error
rubenarismendi
 
Honor's portfolio graphic organizer
Honor's portfolio graphic organizerHonor's portfolio graphic organizer
Honor's portfolio graphic organizer
bbwilks
 

What's hot (19)

Quick sort demo
Quick sort demoQuick sort demo
Quick sort demo
 
Trigonometric, hyperbolic functions with invers and sum function
Trigonometric, hyperbolic functions with invers and sum functionTrigonometric, hyperbolic functions with invers and sum function
Trigonometric, hyperbolic functions with invers and sum function
 
Merge sort analysis and its real time applications
Merge sort analysis and its real time applicationsMerge sort analysis and its real time applications
Merge sort analysis and its real time applications
 
Error Finding in Numerical method
Error Finding in Numerical methodError Finding in Numerical method
Error Finding in Numerical method
 
General Mathematics - Intercepts of Rational Functions
General Mathematics - Intercepts of Rational FunctionsGeneral Mathematics - Intercepts of Rational Functions
General Mathematics - Intercepts of Rational Functions
 
Hprec2 1
Hprec2 1Hprec2 1
Hprec2 1
 
R time series analysis
R   time series analysisR   time series analysis
R time series analysis
 
Linear and Bianry search
Linear and Bianry searchLinear and Bianry search
Linear and Bianry search
 
Greatest integer
Greatest integerGreatest integer
Greatest integer
 
Approximation and error
Approximation and errorApproximation and error
Approximation and error
 
L 14-ct1120
L 14-ct1120L 14-ct1120
L 14-ct1120
 
Linear and Binary Search
Linear and Binary SearchLinear and Binary Search
Linear and Binary Search
 
Chap08
Chap08Chap08
Chap08
 
Algorithm for Hungarian Method of Assignment
Algorithm for Hungarian Method of AssignmentAlgorithm for Hungarian Method of Assignment
Algorithm for Hungarian Method of Assignment
 
Unit 6 input modeling
Unit 6 input modeling Unit 6 input modeling
Unit 6 input modeling
 
Curve fitting
Curve fittingCurve fitting
Curve fitting
 
Application of Stack, Link list , and Queue in Programming .
Application of Stack, Link list , and Queue in Programming .Application of Stack, Link list , and Queue in Programming .
Application of Stack, Link list , and Queue in Programming .
 
Implementing Merge Sort
Implementing Merge SortImplementing Merge Sort
Implementing Merge Sort
 
Honor's portfolio graphic organizer
Honor's portfolio graphic organizerHonor's portfolio graphic organizer
Honor's portfolio graphic organizer
 

Viewers also liked

Evaluation Question 1
Evaluation Question 1Evaluation Question 1
Evaluation Question 1
sanj96
 
La gestion consular (2014)
La gestion consular (2014)La gestion consular (2014)
La gestion consular (2014)
Jorge Rivera
 
19 algorithms-and-complexity-110627100203-phpapp02
19 algorithms-and-complexity-110627100203-phpapp0219 algorithms-and-complexity-110627100203-phpapp02
19 algorithms-and-complexity-110627100203-phpapp02
Muhammad Aslam
 
diapositiva de creaciòn de un blog
diapositiva de creaciòn de un blogdiapositiva de creaciòn de un blog
diapositiva de creaciòn de un blog
Asury1993
 
Michael jackson
Michael jacksonMichael jackson
Michael jackson
sanj96
 
Audience research
Audience researchAudience research
Audience research
prav2405
 
新入社員へのメッセージ
新入社員へのメッセージ新入社員へのメッセージ
新入社員へのメッセージ
哲也 平嶋
 
Ap convention anahiem 2014 2
Ap convention anahiem 2014 2Ap convention anahiem 2014 2
Ap convention anahiem 2014 2
Jorge Rivera
 
Varying Sentence Structure
Varying Sentence StructureVarying Sentence Structure
Varying Sentence Structure
Connie Stan
 
Police Sytem in India: good or bad
Police Sytem in India: good or badPolice Sytem in India: good or bad
Police Sytem in India: good or bad
dev2avi
 

Viewers also liked (18)

Barátom a víz
Barátom a víz Barátom a víz
Barátom a víz
 
ACTIVIDAD 8
ACTIVIDAD 8ACTIVIDAD 8
ACTIVIDAD 8
 
Evaluation Question 1
Evaluation Question 1Evaluation Question 1
Evaluation Question 1
 
La gestion consular (2014)
La gestion consular (2014)La gestion consular (2014)
La gestion consular (2014)
 
Barátom a víz
Barátom a vízBarátom a víz
Barátom a víz
 
19 algorithms-and-complexity-110627100203-phpapp02
19 algorithms-and-complexity-110627100203-phpapp0219 algorithms-and-complexity-110627100203-phpapp02
19 algorithms-and-complexity-110627100203-phpapp02
 
diapositiva de creaciòn de un blog
diapositiva de creaciòn de un blogdiapositiva de creaciòn de un blog
diapositiva de creaciòn de un blog
 
Algebra bl 16-04-2014
Algebra bl 16-04-2014Algebra bl 16-04-2014
Algebra bl 16-04-2014
 
Michael jackson
Michael jacksonMichael jackson
Michael jackson
 
Audience research
Audience researchAudience research
Audience research
 
ugc
ugcugc
ugc
 
新入社員へのメッセージ
新入社員へのメッセージ新入社員へのメッセージ
新入社員へのメッセージ
 
Cyber crime journal by central detective training school
Cyber crime journal by central detective training schoolCyber crime journal by central detective training school
Cyber crime journal by central detective training school
 
Ap convention anahiem 2014 2
Ap convention anahiem 2014 2Ap convention anahiem 2014 2
Ap convention anahiem 2014 2
 
Varying Sentence Structure
Varying Sentence StructureVarying Sentence Structure
Varying Sentence Structure
 
Pithanotites
PithanotitesPithanotites
Pithanotites
 
Police Sytem in India: good or bad
Police Sytem in India: good or badPolice Sytem in India: good or bad
Police Sytem in India: good or bad
 
Temperature homeostasis
Temperature homeostasisTemperature homeostasis
Temperature homeostasis
 

Similar to Aslam

CP PPT_Unit IV computer programming in c.pdf
CP PPT_Unit IV computer programming in c.pdfCP PPT_Unit IV computer programming in c.pdf
CP PPT_Unit IV computer programming in c.pdf
saneshgamerz
 

Similar to Aslam (20)

UNIT V.docx
UNIT V.docxUNIT V.docx
UNIT V.docx
 
UNIT IV -Data Structures.pdf
UNIT IV -Data Structures.pdfUNIT IV -Data Structures.pdf
UNIT IV -Data Structures.pdf
 
Searching
SearchingSearching
Searching
 
IRJET- A Survey on Different Searching Algorithms
IRJET- A Survey on Different Searching AlgorithmsIRJET- A Survey on Different Searching Algorithms
IRJET- A Survey on Different Searching Algorithms
 
Lecture3b searching
Lecture3b searchingLecture3b searching
Lecture3b searching
 
CP PPT_Unit IV computer programming in c.pdf
CP PPT_Unit IV computer programming in c.pdfCP PPT_Unit IV computer programming in c.pdf
CP PPT_Unit IV computer programming in c.pdf
 
Chapter 4: basic search algorithms data structure
Chapter 4: basic search algorithms data structureChapter 4: basic search algorithms data structure
Chapter 4: basic search algorithms data structure
 
Introduction to Algorithms
Introduction to AlgorithmsIntroduction to Algorithms
Introduction to Algorithms
 
Distance Sort
Distance SortDistance Sort
Distance Sort
 
Bs,qs,divide and conquer 1
Bs,qs,divide and conquer 1Bs,qs,divide and conquer 1
Bs,qs,divide and conquer 1
 
Lect-2.pptx
Lect-2.pptxLect-2.pptx
Lect-2.pptx
 
Cis435 week04
Cis435 week04Cis435 week04
Cis435 week04
 
Chapter 11 - Sorting and Searching
Chapter 11 - Sorting and SearchingChapter 11 - Sorting and Searching
Chapter 11 - Sorting and Searching
 
Unit 8 searching and hashing
Unit   8 searching and hashingUnit   8 searching and hashing
Unit 8 searching and hashing
 
UNEC__1683196273.pptx
UNEC__1683196273.pptxUNEC__1683196273.pptx
UNEC__1683196273.pptx
 
Sorting Methods.pptx
Sorting Methods.pptxSorting Methods.pptx
Sorting Methods.pptx
 
Algorithms Lecture 6: Searching Algorithms
Algorithms Lecture 6: Searching AlgorithmsAlgorithms Lecture 6: Searching Algorithms
Algorithms Lecture 6: Searching Algorithms
 
Chapter3.pptx
Chapter3.pptxChapter3.pptx
Chapter3.pptx
 
Lecture3a sorting
Lecture3a sortingLecture3a sorting
Lecture3a sorting
 
Unit ii divide and conquer -1
Unit ii divide and conquer -1Unit ii divide and conquer -1
Unit ii divide and conquer -1
 

Recently uploaded

Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...
Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...
Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...
gajnagarg
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
amitlee9823
 
Just Call Vip call girls Erode Escorts ☎️9352988975 Two shot with one girl (E...
Just Call Vip call girls Erode Escorts ☎️9352988975 Two shot with one girl (E...Just Call Vip call girls Erode Escorts ☎️9352988975 Two shot with one girl (E...
Just Call Vip call girls Erode Escorts ☎️9352988975 Two shot with one girl (E...
gajnagarg
 
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
amitlee9823
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
amitlee9823
 
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Riyadh +966572737505 get cytotec
 
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
karishmasinghjnh
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
amitlee9823
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
amitlee9823
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
amitlee9823
 
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
amitlee9823
 

Recently uploaded (20)

Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
Thane Call Girls 7091864438 Call Girls in Thane Escort service book now -
 
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night StandCall Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Nandini Layout ☎ 7737669865 🥵 Book Your One night Stand
 
Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...
Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...
Just Call Vip call girls Bellary Escorts ☎️9352988975 Two shot with one girl ...
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
 
Just Call Vip call girls Erode Escorts ☎️9352988975 Two shot with one girl (E...
Just Call Vip call girls Erode Escorts ☎️9352988975 Two shot with one girl (E...Just Call Vip call girls Erode Escorts ☎️9352988975 Two shot with one girl (E...
Just Call Vip call girls Erode Escorts ☎️9352988975 Two shot with one girl (E...
 
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
 
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
 
Abortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get CytotecAbortion pills in Jeddah | +966572737505 | Get Cytotec
Abortion pills in Jeddah | +966572737505 | Get Cytotec
 
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
5CL-ADBA,5cladba, Chinese supplier, safety is guaranteed
 
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
 
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
(NEHA) Call Girls Katra Call Now 8617697112 Katra Escorts 24x7
 
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Marol Naka Call On 9920725232 With Body to body massage...
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
 
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Rabindra Nagar  (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Rabindra Nagar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24  Building Real-Time Pipelines With FLaNKDATA SUMMIT 24  Building Real-Time Pipelines With FLaNK
DATA SUMMIT 24 Building Real-Time Pipelines With FLaNK
 

Aslam

  • 2.
  • 3.  Is a functions which we use to measure Time,Space,and Check Efficiency of the any Algorithms(Data Structure).
  • 4.  There are three cases to measure the algorithm in linear search  Best case  Average case  Worst case
  • 5.  Linear search is a technique in which Items can be find sequentially or one by one from data element.  Find 55 number x=n+1 Start 11 12 33 44 55 65 0 1 2 3 4 5 6 7
  • 6.  The term best-case performance is used to best case for a simple linear search on a list occurs when the desired element is the first element of the list.  For example  Find 11 c(n)=1 11 22 33 44 55 66 77 88
  • 7.  Expected value of function Find 76 c(n)=1/n Start Item not found 23 45 55 67 69 76 80 90 0 1 2 3 4 5 6 7
  • 8.  Expected value of function Find 76 c(n)=1/n Start Item not found 23 45 55 67 69 76 80 90 0 1 2 3 4 5 6 7
  • 9.  Expected value of function Find 76 c(n)=1/n Start Item not found 23 45 55 67 69 76 80 90 0 1 2 3 4 5 6 7
  • 10.  Expected value of function Find 76 c(n)=1/n Start Item not found 23 45 55 67 69 76 80 90 0 1 2 3 4 5 6 7
  • 11.  Expected value of function Find 76 c(n)=1/n Start Item not found 23 45 55 67 69 76 80 90 0 1 2 3 4 5 6 7
  • 12.  Expected value of function Find 76 c(n)=1/n Start Item found x={5}=76 23 45 55 67 69 76 80 90 0 1 2 3 4 5 6 7
  • 13.  Binary search is a searching technique can be search by the dividing the array of data element from the Mid portion  Formula= Mid int(Beg + End)/2 BEG MID END 0 1 2 3 4 5 6 7 10 11 12 23 24 35 36 45
  • 14.  Find the number 37 from this array?  X=37 Divided by Mid Now formula=int (mid + end)/2 int (0+8)/2=4 0 1 2 3 4 5 6 7 8 10 37 12 23 24 35 36 45 88
  • 15.  There are three cases to measure the algorithm in linear search  Best case  Average case  Worst case
  • 16. 0 1 2 3 4 5 6 7 8 5 12 17 23 38 44 77 84 90 Find(38) 0 8 4 Int = (BEG+END)/2
  • 17. 0 1 2 3 4 5 6 7 8 5 12 17 23 38 44 77 84 90 38<44 Low=Mid+1=5 Find(44) 0 8 4 Int = (BEG+END)/2
  • 18. 0 1 2 3 4 5 6 7 8 5 12 17 23 38 44 77 84 90 38<44 Low=Mid+1=5 Find(90) 0 8 4 Int = (BEG+END)/2
  • 19. Thank You Very Much Have A Nice Day