SlideShare a Scribd company logo
1 of 1
Download to read offline
Algorithmic efficiency can be measured in terms of 1)time 2)space
Time:How much amount of time it takes to complete the task
space:How much space required to store the data of given task.
A)To say a given number is even or odd---O(1) time is enough
B)To check whether given number is present in the list or not ---O(n) here n means no of
elements present in the list.We need to compare each element in the list with given number
whether those two or equal or not
C)To find smallest number in a list
2 cases:list with sorted elements---O(1) .just we return the first element of list
list with unsorted elements O(n) because we have to traverse all the way in the
list.
D)O(n2)---because we are checking each element of list1 is present in the list2 or not.for that for
each element we have to traverse whole list of list2.
Here we are writing two loops.each iterate upto length of list
E)O(n)---because elements are sorted.so,just we check the corresponding elements of list1 and
list.
Solution
Algorithmic efficiency can be measured in terms of 1)time 2)space
Time:How much amount of time it takes to complete the task
space:How much space required to store the data of given task.
A)To say a given number is even or odd---O(1) time is enough
B)To check whether given number is present in the list or not ---O(n) here n means no of
elements present in the list.We need to compare each element in the list with given number
whether those two or equal or not
C)To find smallest number in a list
2 cases:list with sorted elements---O(1) .just we return the first element of list
list with unsorted elements O(n) because we have to traverse all the way in the
list.
D)O(n2)---because we are checking each element of list1 is present in the list2 or not.for that for
each element we have to traverse whole list of list2.
Here we are writing two loops.each iterate upto length of list
E)O(n)---because elements are sorted.so,just we check the corresponding elements of list1 and
list.

More Related Content

Similar to Algorithmic efficiency can be measured in terms of 1)time 2)spaceT.pdf

advanced searching and sorting.pdf
advanced searching and sorting.pdfadvanced searching and sorting.pdf
advanced searching and sorting.pdfharamaya university
 
Linear Search
Linear SearchLinear Search
Linear SearchSWATHIR72
 
Binary Search - Design & Analysis of Algorithms
Binary Search - Design & Analysis of AlgorithmsBinary Search - Design & Analysis of Algorithms
Binary Search - Design & Analysis of AlgorithmsDrishti Bhalla
 
Selection Sort and Insertion Sort
Selection Sort and Insertion SortSelection Sort and Insertion Sort
Selection Sort and Insertion Sorttamayaoraquel
 
Selection sort and insertion sort
Selection sort and insertion sortSelection sort and insertion sort
Selection sort and insertion sortMay Ann Mendoza
 
Python Unit 5 Questions n Notes.pdf
Python Unit 5 Questions n Notes.pdfPython Unit 5 Questions n Notes.pdf
Python Unit 5 Questions n Notes.pdfMCCMOTOR
 
Master of Computer Application (MCA) – Semester 4 MC0080
Master of Computer Application (MCA) – Semester 4  MC0080Master of Computer Application (MCA) – Semester 4  MC0080
Master of Computer Application (MCA) – Semester 4 MC0080Aravind NC
 
searching in data structure.pptx
searching in data structure.pptxsearching in data structure.pptx
searching in data structure.pptxchouguleamruta24
 
MergeSort.ppt shows how merge sort is done
MergeSort.ppt shows how merge sort is doneMergeSort.ppt shows how merge sort is done
MergeSort.ppt shows how merge sort is doneSadiaSharmin40
 
Do the following two problems1. Any algorithm that solves the sea.pdf
Do the following two problems1. Any algorithm that solves the sea.pdfDo the following two problems1. Any algorithm that solves the sea.pdf
Do the following two problems1. Any algorithm that solves the sea.pdfinfo673628
 
Answersa) It is more efficient to delete the last node in an array.pdf
Answersa) It is more efficient to delete the last node in an array.pdfAnswersa) It is more efficient to delete the last node in an array.pdf
Answersa) It is more efficient to delete the last node in an array.pdfanilgoelslg
 

Similar to Algorithmic efficiency can be measured in terms of 1)time 2)spaceT.pdf (20)

advanced searching and sorting.pdf
advanced searching and sorting.pdfadvanced searching and sorting.pdf
advanced searching and sorting.pdf
 
Linear Search
Linear SearchLinear Search
Linear Search
 
Lec4
Lec4Lec4
Lec4
 
Sortsearch
SortsearchSortsearch
Sortsearch
 
Binary Search - Design & Analysis of Algorithms
Binary Search - Design & Analysis of AlgorithmsBinary Search - Design & Analysis of Algorithms
Binary Search - Design & Analysis of Algorithms
 
Selection Sort and Insertion Sort
Selection Sort and Insertion SortSelection Sort and Insertion Sort
Selection Sort and Insertion Sort
 
Selection sort and insertion sort
Selection sort and insertion sortSelection sort and insertion sort
Selection sort and insertion sort
 
Lec 03 - Sorting.pptx
Lec 03 - Sorting.pptxLec 03 - Sorting.pptx
Lec 03 - Sorting.pptx
 
Python Unit 5 Questions n Notes.pdf
Python Unit 5 Questions n Notes.pdfPython Unit 5 Questions n Notes.pdf
Python Unit 5 Questions n Notes.pdf
 
Sorting
SortingSorting
Sorting
 
Hashing
HashingHashing
Hashing
 
L1803016468
L1803016468L1803016468
L1803016468
 
Sorting
SortingSorting
Sorting
 
Insertion and Redix Sort
Insertion and Redix SortInsertion and Redix Sort
Insertion and Redix Sort
 
Sorting techniques
Sorting techniquesSorting techniques
Sorting techniques
 
Master of Computer Application (MCA) – Semester 4 MC0080
Master of Computer Application (MCA) – Semester 4  MC0080Master of Computer Application (MCA) – Semester 4  MC0080
Master of Computer Application (MCA) – Semester 4 MC0080
 
searching in data structure.pptx
searching in data structure.pptxsearching in data structure.pptx
searching in data structure.pptx
 
MergeSort.ppt shows how merge sort is done
MergeSort.ppt shows how merge sort is doneMergeSort.ppt shows how merge sort is done
MergeSort.ppt shows how merge sort is done
 
Do the following two problems1. Any algorithm that solves the sea.pdf
Do the following two problems1. Any algorithm that solves the sea.pdfDo the following two problems1. Any algorithm that solves the sea.pdf
Do the following two problems1. Any algorithm that solves the sea.pdf
 
Answersa) It is more efficient to delete the last node in an array.pdf
Answersa) It is more efficient to delete the last node in an array.pdfAnswersa) It is more efficient to delete the last node in an array.pdf
Answersa) It is more efficient to delete the last node in an array.pdf
 

More from annaelctronics

two singals are expected. one is for CH3, the oth.pdf
                     two singals are expected. one is for CH3, the oth.pdf                     two singals are expected. one is for CH3, the oth.pdf
two singals are expected. one is for CH3, the oth.pdfannaelctronics
 
There is in fact a stronger problem, namely 2p C .pdf
                     There is in fact a stronger problem, namely 2p C .pdf                     There is in fact a stronger problem, namely 2p C .pdf
There is in fact a stronger problem, namely 2p C .pdfannaelctronics
 
The term Lewis acid refers to a definition of aci.pdf
                     The term Lewis acid refers to a definition of aci.pdf                     The term Lewis acid refers to a definition of aci.pdf
The term Lewis acid refers to a definition of aci.pdfannaelctronics
 
NHC(=O)CH3 NH2 OH .pdf
                     NHC(=O)CH3    NH2    OH                        .pdf                     NHC(=O)CH3    NH2    OH                        .pdf
NHC(=O)CH3 NH2 OH .pdfannaelctronics
 
MnO2 may act as a catalyst.in the other reaction .pdf
                     MnO2 may act as a catalyst.in the other reaction .pdf                     MnO2 may act as a catalyst.in the other reaction .pdf
MnO2 may act as a catalyst.in the other reaction .pdfannaelctronics
 
What are P and R hereSolutionWhat are P and R here.pdf
What are P and R hereSolutionWhat are P and R here.pdfWhat are P and R hereSolutionWhat are P and R here.pdf
What are P and R hereSolutionWhat are P and R here.pdfannaelctronics
 
Intermolecular attractions are attractions betwee.pdf
                     Intermolecular attractions are attractions betwee.pdf                     Intermolecular attractions are attractions betwee.pdf
Intermolecular attractions are attractions betwee.pdfannaelctronics
 
It is insoluble in water. .pdf
                     It is insoluble in water.                        .pdf                     It is insoluble in water.                        .pdf
It is insoluble in water. .pdfannaelctronics
 
Write it using the ^ symbol. For example 1.34 10^6Solutio.pdf
Write it using the ^ symbol. For example 1.34  10^6Solutio.pdfWrite it using the ^ symbol. For example 1.34  10^6Solutio.pdf
Write it using the ^ symbol. For example 1.34 10^6Solutio.pdfannaelctronics
 
Xenodiagnosis is the method used to document presesnce of a microorg.pdf
Xenodiagnosis is the method used to document presesnce of a microorg.pdfXenodiagnosis is the method used to document presesnce of a microorg.pdf
Xenodiagnosis is the method used to document presesnce of a microorg.pdfannaelctronics
 
u(x)= ( -4x)Solutionu(x)= ( -4x).pdf
u(x)= ( -4x)Solutionu(x)= ( -4x).pdfu(x)= ( -4x)Solutionu(x)= ( -4x).pdf
u(x)= ( -4x)Solutionu(x)= ( -4x).pdfannaelctronics
 
There are many more conditions than just the norms of the culture th.pdf
There are many more conditions than just the norms of the culture th.pdfThere are many more conditions than just the norms of the culture th.pdf
There are many more conditions than just the norms of the culture th.pdfannaelctronics
 
The three layers of smooth muscle that includes mucosa. innermost tu.pdf
The three layers of smooth muscle that includes mucosa. innermost tu.pdfThe three layers of smooth muscle that includes mucosa. innermost tu.pdf
The three layers of smooth muscle that includes mucosa. innermost tu.pdfannaelctronics
 
The independent variable is the one which changes in each plant. Thi.pdf
The independent variable is the one which changes in each plant. Thi.pdfThe independent variable is the one which changes in each plant. Thi.pdf
The independent variable is the one which changes in each plant. Thi.pdfannaelctronics
 
Species diversity is more in near island as rate of immigration is m.pdf
Species diversity is more in near island as rate of immigration is m.pdfSpecies diversity is more in near island as rate of immigration is m.pdf
Species diversity is more in near island as rate of immigration is m.pdfannaelctronics
 
Solution Flies do not have teeth for chewing food.So,like human f.pdf
Solution Flies do not have teeth for chewing food.So,like human f.pdfSolution Flies do not have teeth for chewing food.So,like human f.pdf
Solution Flies do not have teeth for chewing food.So,like human f.pdfannaelctronics
 
Program To change this license header, choose License Heade.pdf
Program  To change this license header, choose License Heade.pdfProgram  To change this license header, choose License Heade.pdf
Program To change this license header, choose License Heade.pdfannaelctronics
 
plexusFormed from anterioe rani o these spinal nervesMajor nerve.pdf
plexusFormed from anterioe rani o these spinal nervesMajor nerve.pdfplexusFormed from anterioe rani o these spinal nervesMajor nerve.pdf
plexusFormed from anterioe rani o these spinal nervesMajor nerve.pdfannaelctronics
 
Ok, so the number of double bond equivalents in the compound is [C4H.pdf
Ok, so the number of double bond equivalents in the compound is [C4H.pdfOk, so the number of double bond equivalents in the compound is [C4H.pdf
Ok, so the number of double bond equivalents in the compound is [C4H.pdfannaelctronics
 
order of overlap of atomic orbitals from highest extent of overlap t.pdf
order of overlap of atomic orbitals from highest extent of overlap t.pdforder of overlap of atomic orbitals from highest extent of overlap t.pdf
order of overlap of atomic orbitals from highest extent of overlap t.pdfannaelctronics
 

More from annaelctronics (20)

two singals are expected. one is for CH3, the oth.pdf
                     two singals are expected. one is for CH3, the oth.pdf                     two singals are expected. one is for CH3, the oth.pdf
two singals are expected. one is for CH3, the oth.pdf
 
There is in fact a stronger problem, namely 2p C .pdf
                     There is in fact a stronger problem, namely 2p C .pdf                     There is in fact a stronger problem, namely 2p C .pdf
There is in fact a stronger problem, namely 2p C .pdf
 
The term Lewis acid refers to a definition of aci.pdf
                     The term Lewis acid refers to a definition of aci.pdf                     The term Lewis acid refers to a definition of aci.pdf
The term Lewis acid refers to a definition of aci.pdf
 
NHC(=O)CH3 NH2 OH .pdf
                     NHC(=O)CH3    NH2    OH                        .pdf                     NHC(=O)CH3    NH2    OH                        .pdf
NHC(=O)CH3 NH2 OH .pdf
 
MnO2 may act as a catalyst.in the other reaction .pdf
                     MnO2 may act as a catalyst.in the other reaction .pdf                     MnO2 may act as a catalyst.in the other reaction .pdf
MnO2 may act as a catalyst.in the other reaction .pdf
 
What are P and R hereSolutionWhat are P and R here.pdf
What are P and R hereSolutionWhat are P and R here.pdfWhat are P and R hereSolutionWhat are P and R here.pdf
What are P and R hereSolutionWhat are P and R here.pdf
 
Intermolecular attractions are attractions betwee.pdf
                     Intermolecular attractions are attractions betwee.pdf                     Intermolecular attractions are attractions betwee.pdf
Intermolecular attractions are attractions betwee.pdf
 
It is insoluble in water. .pdf
                     It is insoluble in water.                        .pdf                     It is insoluble in water.                        .pdf
It is insoluble in water. .pdf
 
Write it using the ^ symbol. For example 1.34 10^6Solutio.pdf
Write it using the ^ symbol. For example 1.34  10^6Solutio.pdfWrite it using the ^ symbol. For example 1.34  10^6Solutio.pdf
Write it using the ^ symbol. For example 1.34 10^6Solutio.pdf
 
Xenodiagnosis is the method used to document presesnce of a microorg.pdf
Xenodiagnosis is the method used to document presesnce of a microorg.pdfXenodiagnosis is the method used to document presesnce of a microorg.pdf
Xenodiagnosis is the method used to document presesnce of a microorg.pdf
 
u(x)= ( -4x)Solutionu(x)= ( -4x).pdf
u(x)= ( -4x)Solutionu(x)= ( -4x).pdfu(x)= ( -4x)Solutionu(x)= ( -4x).pdf
u(x)= ( -4x)Solutionu(x)= ( -4x).pdf
 
There are many more conditions than just the norms of the culture th.pdf
There are many more conditions than just the norms of the culture th.pdfThere are many more conditions than just the norms of the culture th.pdf
There are many more conditions than just the norms of the culture th.pdf
 
The three layers of smooth muscle that includes mucosa. innermost tu.pdf
The three layers of smooth muscle that includes mucosa. innermost tu.pdfThe three layers of smooth muscle that includes mucosa. innermost tu.pdf
The three layers of smooth muscle that includes mucosa. innermost tu.pdf
 
The independent variable is the one which changes in each plant. Thi.pdf
The independent variable is the one which changes in each plant. Thi.pdfThe independent variable is the one which changes in each plant. Thi.pdf
The independent variable is the one which changes in each plant. Thi.pdf
 
Species diversity is more in near island as rate of immigration is m.pdf
Species diversity is more in near island as rate of immigration is m.pdfSpecies diversity is more in near island as rate of immigration is m.pdf
Species diversity is more in near island as rate of immigration is m.pdf
 
Solution Flies do not have teeth for chewing food.So,like human f.pdf
Solution Flies do not have teeth for chewing food.So,like human f.pdfSolution Flies do not have teeth for chewing food.So,like human f.pdf
Solution Flies do not have teeth for chewing food.So,like human f.pdf
 
Program To change this license header, choose License Heade.pdf
Program  To change this license header, choose License Heade.pdfProgram  To change this license header, choose License Heade.pdf
Program To change this license header, choose License Heade.pdf
 
plexusFormed from anterioe rani o these spinal nervesMajor nerve.pdf
plexusFormed from anterioe rani o these spinal nervesMajor nerve.pdfplexusFormed from anterioe rani o these spinal nervesMajor nerve.pdf
plexusFormed from anterioe rani o these spinal nervesMajor nerve.pdf
 
Ok, so the number of double bond equivalents in the compound is [C4H.pdf
Ok, so the number of double bond equivalents in the compound is [C4H.pdfOk, so the number of double bond equivalents in the compound is [C4H.pdf
Ok, so the number of double bond equivalents in the compound is [C4H.pdf
 
order of overlap of atomic orbitals from highest extent of overlap t.pdf
order of overlap of atomic orbitals from highest extent of overlap t.pdforder of overlap of atomic orbitals from highest extent of overlap t.pdf
order of overlap of atomic orbitals from highest extent of overlap t.pdf
 

Recently uploaded

TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSAnaAcapella
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfPondicherry University
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxLimon Prince
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjMohammed Sikander
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesPooky Knightsmith
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSean M. Fox
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsSandeep D Chaudhary
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxAdelaideRefugio
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaEADTU
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17Celine George
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppCeline George
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....Ritu480198
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...Gary Wood
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismDabee Kamal
 

Recently uploaded (20)

TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
Trauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical PrinciplesTrauma-Informed Leadership - Five Practical Principles
Trauma-Informed Leadership - Five Practical Principles
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 

Algorithmic efficiency can be measured in terms of 1)time 2)spaceT.pdf

  • 1. Algorithmic efficiency can be measured in terms of 1)time 2)space Time:How much amount of time it takes to complete the task space:How much space required to store the data of given task. A)To say a given number is even or odd---O(1) time is enough B)To check whether given number is present in the list or not ---O(n) here n means no of elements present in the list.We need to compare each element in the list with given number whether those two or equal or not C)To find smallest number in a list 2 cases:list with sorted elements---O(1) .just we return the first element of list list with unsorted elements O(n) because we have to traverse all the way in the list. D)O(n2)---because we are checking each element of list1 is present in the list2 or not.for that for each element we have to traverse whole list of list2. Here we are writing two loops.each iterate upto length of list E)O(n)---because elements are sorted.so,just we check the corresponding elements of list1 and list. Solution Algorithmic efficiency can be measured in terms of 1)time 2)space Time:How much amount of time it takes to complete the task space:How much space required to store the data of given task. A)To say a given number is even or odd---O(1) time is enough B)To check whether given number is present in the list or not ---O(n) here n means no of elements present in the list.We need to compare each element in the list with given number whether those two or equal or not C)To find smallest number in a list 2 cases:list with sorted elements---O(1) .just we return the first element of list list with unsorted elements O(n) because we have to traverse all the way in the list. D)O(n2)---because we are checking each element of list1 is present in the list2 or not.for that for each element we have to traverse whole list of list2. Here we are writing two loops.each iterate upto length of list E)O(n)---because elements are sorted.so,just we check the corresponding elements of list1 and list.