SlideShare a Scribd company logo
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.pdf
haramaya university
 
Linear Search
Linear SearchLinear Search
Linear Search
SWATHIR72
 
Lec4
Lec4Lec4
Sortsearch
SortsearchSortsearch
Sortsearch
maverick2203
 
Binary Search - Design & Analysis of Algorithms
Binary Search - Design & Analysis of AlgorithmsBinary Search - Design & Analysis of Algorithms
Binary Search - Design & Analysis of Algorithms
Drishti Bhalla
 
Selection Sort and Insertion Sort
Selection Sort and Insertion SortSelection Sort and Insertion Sort
Selection Sort and Insertion Sort
tamayaoraquel
 
Selection sort and insertion sort
Selection sort and insertion sortSelection sort and insertion sort
Selection sort and insertion sort
May Ann Mendoza
 
Lec 03 - Sorting.pptx
Lec 03 - Sorting.pptxLec 03 - Sorting.pptx
Lec 03 - Sorting.pptx
Dr. Shaukat Wasi
 
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
MCCMOTOR
 
Sorting
SortingSorting
Sorting
Saharamily
 
Hashing
HashingHashing
Hashing
debolina13
 
L1803016468
L1803016468L1803016468
L1803016468
IOSR Journals
 
Sorting
SortingSorting
Sorting
BHARATH KUMAR
 
Insertion and Redix Sort
Insertion and Redix SortInsertion and Redix Sort
Insertion and Redix Sort
Sukhvinder Singh
 
Sorting techniques
Sorting techniquesSorting techniques
Sorting techniques
Sukhvinder Singh
 
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
Aravind NC
 
searching in data structure.pptx
searching in data structure.pptxsearching in data structure.pptx
searching in data structure.pptx
chouguleamruta24
 
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
SadiaSharmin40
 
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
info673628
 
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
anilgoelslg
 

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.pdf
annaelctronics
 
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
annaelctronics
 
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
annaelctronics
 
NHC(=O)CH3 NH2 OH .pdf
                     NHC(=O)CH3    NH2    OH                        .pdf                     NHC(=O)CH3    NH2    OH                        .pdf
NHC(=O)CH3 NH2 OH .pdf
annaelctronics
 
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
annaelctronics
 
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
annaelctronics
 
Intermolecular attractions are attractions betwee.pdf
                     Intermolecular attractions are attractions betwee.pdf                     Intermolecular attractions are attractions betwee.pdf
Intermolecular attractions are attractions betwee.pdf
annaelctronics
 
It is insoluble in water. .pdf
                     It is insoluble in water.                        .pdf                     It is insoluble in water.                        .pdf
It is insoluble in water. .pdf
annaelctronics
 
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
annaelctronics
 
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
annaelctronics
 
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
annaelctronics
 
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
annaelctronics
 
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
annaelctronics
 
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
annaelctronics
 
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
annaelctronics
 
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
annaelctronics
 
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
annaelctronics
 
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
annaelctronics
 
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
annaelctronics
 
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
annaelctronics
 

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

Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 

Recently uploaded (20)

Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 

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.