SlideShare uma empresa Scribd logo
1 de 1
Baixar para ler offline
Part 3: Algorithm Analysis Similarly to what we have done in class and in the labs, for each of
the problems below (1-4) provide the following: i. a description of the worst-cose input, i.e., the
input that would cause the largest running time ii. a summation used to calculate number of steps
for the worst case iii. an explanation of how the code relates to the summation a. (loops require
discussing number of iterations and steps per iteration) b. (recursion requires a diagram) iv. a
bound, that, is a function g(n) such that R(n)(g(n)) where n is a suitable measure of the problem
size and R(n) is the running time of the algorithm. Your summation should not be overly
pessimistic, even when it leads to the same g(n) as another summation. For example, for the code
for ( int i=0;i) tot = tot +a[j]; }

Mais conteúdo relacionado

Semelhante a Part 3 Algorithm Analysis Similarly to what we have done in class an.pdf

Aad introduction
Aad introductionAad introduction
Aad introductionMr SMAK
 
Unit i basic concepts of algorithms
Unit i basic concepts of algorithmsUnit i basic concepts of algorithms
Unit i basic concepts of algorithmssangeetha s
 
Module 1 notes of data warehousing and data
Module 1 notes of data warehousing and dataModule 1 notes of data warehousing and data
Module 1 notes of data warehousing and datavijipersonal2012
 
DAA-Unit1.pptx
DAA-Unit1.pptxDAA-Unit1.pptx
DAA-Unit1.pptxNishaS88
 
Time_Complexity.pptx
Time_Complexity.pptxTime_Complexity.pptx
Time_Complexity.pptxvivekcommon
 
VCE Unit 01 (2).pptx
VCE Unit 01 (2).pptxVCE Unit 01 (2).pptx
VCE Unit 01 (2).pptxskilljiolms
 
DSA Complexity.pptx What is Complexity Analysis? What is the need for Compl...
DSA Complexity.pptx   What is Complexity Analysis? What is the need for Compl...DSA Complexity.pptx   What is Complexity Analysis? What is the need for Compl...
DSA Complexity.pptx What is Complexity Analysis? What is the need for Compl...2022cspaawan12556
 
Algorithms : Introduction and Analysis
Algorithms : Introduction and AnalysisAlgorithms : Introduction and Analysis
Algorithms : Introduction and AnalysisDhrumil Patel
 
9 big o-notation
9 big o-notation9 big o-notation
9 big o-notationirdginfo
 
TIME EXECUTION OF DIFFERENT SORTED ALGORITHMS
TIME EXECUTION   OF  DIFFERENT SORTED ALGORITHMSTIME EXECUTION   OF  DIFFERENT SORTED ALGORITHMS
TIME EXECUTION OF DIFFERENT SORTED ALGORITHMSTanya Makkar
 
ASYMTOTIC NOTATIONS BIG O OEMGA THETE NOTATION.pptx
ASYMTOTIC NOTATIONS BIG O OEMGA THETE NOTATION.pptxASYMTOTIC NOTATIONS BIG O OEMGA THETE NOTATION.pptx
ASYMTOTIC NOTATIONS BIG O OEMGA THETE NOTATION.pptxsunitha1792
 
Asymptotic Analysis in Data Structure using C
Asymptotic Analysis in Data Structure using CAsymptotic Analysis in Data Structure using C
Asymptotic Analysis in Data Structure using CMeghaj Mallick
 
Data Structures - Lecture 8 - Study Notes
Data Structures - Lecture 8 - Study NotesData Structures - Lecture 8 - Study Notes
Data Structures - Lecture 8 - Study NotesHaitham El-Ghareeb
 
complexity analysis.pdf
complexity analysis.pdfcomplexity analysis.pdf
complexity analysis.pdfpasinduneshan
 
Ch24 efficient algorithms
Ch24 efficient algorithmsCh24 efficient algorithms
Ch24 efficient algorithmsrajatmay1992
 

Semelhante a Part 3 Algorithm Analysis Similarly to what we have done in class an.pdf (20)

Algorithm Class at KPHB (C, C++ Course Training Institute in KPHB, Kukatpall...
Algorithm Class at KPHB  (C, C++ Course Training Institute in KPHB, Kukatpall...Algorithm Class at KPHB  (C, C++ Course Training Institute in KPHB, Kukatpall...
Algorithm Class at KPHB (C, C++ Course Training Institute in KPHB, Kukatpall...
 
Algorithm Class at KPHB (C, C++ Course Training Institute in KPHB, Kukatpally...
Algorithm Class at KPHB (C, C++ Course Training Institute in KPHB, Kukatpally...Algorithm Class at KPHB (C, C++ Course Training Institute in KPHB, Kukatpally...
Algorithm Class at KPHB (C, C++ Course Training Institute in KPHB, Kukatpally...
 
Aad introduction
Aad introductionAad introduction
Aad introduction
 
Unit i basic concepts of algorithms
Unit i basic concepts of algorithmsUnit i basic concepts of algorithms
Unit i basic concepts of algorithms
 
Module 1 notes of data warehousing and data
Module 1 notes of data warehousing and dataModule 1 notes of data warehousing and data
Module 1 notes of data warehousing and data
 
DAA-Unit1.pptx
DAA-Unit1.pptxDAA-Unit1.pptx
DAA-Unit1.pptx
 
Time_Complexity.pptx
Time_Complexity.pptxTime_Complexity.pptx
Time_Complexity.pptx
 
VCE Unit 01 (2).pptx
VCE Unit 01 (2).pptxVCE Unit 01 (2).pptx
VCE Unit 01 (2).pptx
 
DSA Complexity.pptx What is Complexity Analysis? What is the need for Compl...
DSA Complexity.pptx   What is Complexity Analysis? What is the need for Compl...DSA Complexity.pptx   What is Complexity Analysis? What is the need for Compl...
DSA Complexity.pptx What is Complexity Analysis? What is the need for Compl...
 
Algorithms : Introduction and Analysis
Algorithms : Introduction and AnalysisAlgorithms : Introduction and Analysis
Algorithms : Introduction and Analysis
 
9 big o-notation
9 big o-notation9 big o-notation
9 big o-notation
 
Analysis of algorithms
Analysis of algorithmsAnalysis of algorithms
Analysis of algorithms
 
Unit ii algorithm
Unit   ii algorithmUnit   ii algorithm
Unit ii algorithm
 
TIME EXECUTION OF DIFFERENT SORTED ALGORITHMS
TIME EXECUTION   OF  DIFFERENT SORTED ALGORITHMSTIME EXECUTION   OF  DIFFERENT SORTED ALGORITHMS
TIME EXECUTION OF DIFFERENT SORTED ALGORITHMS
 
Cs2251 daa
Cs2251 daaCs2251 daa
Cs2251 daa
 
ASYMTOTIC NOTATIONS BIG O OEMGA THETE NOTATION.pptx
ASYMTOTIC NOTATIONS BIG O OEMGA THETE NOTATION.pptxASYMTOTIC NOTATIONS BIG O OEMGA THETE NOTATION.pptx
ASYMTOTIC NOTATIONS BIG O OEMGA THETE NOTATION.pptx
 
Asymptotic Analysis in Data Structure using C
Asymptotic Analysis in Data Structure using CAsymptotic Analysis in Data Structure using C
Asymptotic Analysis in Data Structure using C
 
Data Structures - Lecture 8 - Study Notes
Data Structures - Lecture 8 - Study NotesData Structures - Lecture 8 - Study Notes
Data Structures - Lecture 8 - Study Notes
 
complexity analysis.pdf
complexity analysis.pdfcomplexity analysis.pdf
complexity analysis.pdf
 
Ch24 efficient algorithms
Ch24 efficient algorithmsCh24 efficient algorithms
Ch24 efficient algorithms
 

Mais de ambritmobiles

Presented below are three receivable transactions. Journalize these u.pdf
 Presented below are three receivable transactions. Journalize these u.pdf Presented below are three receivable transactions. Journalize these u.pdf
Presented below are three receivable transactions. Journalize these u.pdfambritmobiles
 
Premium Fender uses a standard cost system and provide the tolowing h.pdf
 Premium Fender uses a standard cost system and provide the tolowing h.pdf Premium Fender uses a standard cost system and provide the tolowing h.pdf
Premium Fender uses a standard cost system and provide the tolowing h.pdfambritmobiles
 
Preparation 1. Find i(t) and Vc(t) ( calculate by hand ), R=6, C=0.12.pdf
 Preparation 1. Find i(t) and Vc(t) ( calculate by hand ), R=6, C=0.12.pdf Preparation 1. Find i(t) and Vc(t) ( calculate by hand ), R=6, C=0.12.pdf
Preparation 1. Find i(t) and Vc(t) ( calculate by hand ), R=6, C=0.12.pdfambritmobiles
 
Preguntas informativas de evaluaci�n de salud de ATI Harold Steven.pdf
 Preguntas informativas de evaluaci�n de salud de ATI Harold Steven.pdf Preguntas informativas de evaluaci�n de salud de ATI Harold Steven.pdf
Preguntas informativas de evaluaci�n de salud de ATI Harold Steven.pdfambritmobiles
 
Presanted beloware the firanoal statamonts of Whispering Winds Compan.pdf
 Presanted beloware the firanoal statamonts of Whispering Winds Compan.pdf Presanted beloware the firanoal statamonts of Whispering Winds Compan.pdf
Presanted beloware the firanoal statamonts of Whispering Winds Compan.pdfambritmobiles
 
Practice This cartilage is tough and functions to cushion and add st.pdf
 Practice This cartilage is tough and functions to cushion and add st.pdf Practice This cartilage is tough and functions to cushion and add st.pdf
Practice This cartilage is tough and functions to cushion and add st.pdfambritmobiles
 
Pre-Lab questions (to be turned in before a b begins) 1. Distinguish.pdf
 Pre-Lab questions (to be turned in before a b begins) 1. Distinguish.pdf Pre-Lab questions (to be turned in before a b begins) 1. Distinguish.pdf
Pre-Lab questions (to be turned in before a b begins) 1. Distinguish.pdfambritmobiles
 
Presented below are four segments that have been identified by Novak .pdf
 Presented below are four segments that have been identified by Novak .pdf Presented below are four segments that have been identified by Novak .pdf
Presented below are four segments that have been identified by Novak .pdfambritmobiles
 
PRE-LAB EXERCISES 161 Key Termm corend in fretab fermin ifi io.tim It.pdf
 PRE-LAB EXERCISES 161 Key Termm corend in fretab fermin ifi io.tim It.pdf PRE-LAB EXERCISES 161 Key Termm corend in fretab fermin ifi io.tim It.pdf
PRE-LAB EXERCISES 161 Key Termm corend in fretab fermin ifi io.tim It.pdfambritmobiles
 
Prepare the journal entries for Brandon Corp. for the following dat.pdf
 Prepare the journal entries for Brandon Corp. for the following dat.pdf Prepare the journal entries for Brandon Corp. for the following dat.pdf
Prepare the journal entries for Brandon Corp. for the following dat.pdfambritmobiles
 
Pregunta 1 1 pto Las firmas con las que una empresa se asocia p.pdf
 Pregunta 1 1 pto Las firmas con las que una empresa se asocia p.pdf Pregunta 1 1 pto Las firmas con las que una empresa se asocia p.pdf
Pregunta 1 1 pto Las firmas con las que una empresa se asocia p.pdfambritmobiles
 
Pregunta de lectura 2 (10 puntos) Lee el siguiente texto y con.pdf
 Pregunta de lectura 2 (10 puntos) Lee el siguiente texto y con.pdf Pregunta de lectura 2 (10 puntos) Lee el siguiente texto y con.pdf
Pregunta de lectura 2 (10 puntos) Lee el siguiente texto y con.pdfambritmobiles
 
PREGUNTA 1 Seleccione cinco de los siguientes casos y determin.pdf
 PREGUNTA 1 Seleccione cinco de los siguientes casos y determin.pdf PREGUNTA 1 Seleccione cinco de los siguientes casos y determin.pdf
PREGUNTA 1 Seleccione cinco de los siguientes casos y determin.pdfambritmobiles
 
Prepare the adjusting entry for each item assuming a December 31, 202.pdf
 Prepare the adjusting entry for each item assuming a December 31, 202.pdf Prepare the adjusting entry for each item assuming a December 31, 202.pdf
Prepare the adjusting entry for each item assuming a December 31, 202.pdfambritmobiles
 
Practice Map A 1. Label each contour line with the proper elevation u.pdf
 Practice Map A 1. Label each contour line with the proper elevation u.pdf Practice Map A 1. Label each contour line with the proper elevation u.pdf
Practice Map A 1. Label each contour line with the proper elevation u.pdfambritmobiles
 
Part I This part is worth 6 points. Create the following tables in yo.pdf
 Part I This part is worth 6 points. Create the following tables in yo.pdf Part I This part is worth 6 points. Create the following tables in yo.pdf
Part I This part is worth 6 points. Create the following tables in yo.pdfambritmobiles
 
Part BTying plutonic igneous textures to their ternary phase diagr.pdf
 Part BTying plutonic igneous textures to their ternary phase diagr.pdf Part BTying plutonic igneous textures to their ternary phase diagr.pdf
Part BTying plutonic igneous textures to their ternary phase diagr.pdfambritmobiles
 
Part A. Use data charity.RData, collected by Franses and Paap (2001),.pdf
 Part A. Use data charity.RData, collected by Franses and Paap (2001),.pdf Part A. Use data charity.RData, collected by Franses and Paap (2001),.pdf
Part A. Use data charity.RData, collected by Franses and Paap (2001),.pdfambritmobiles
 
PART A Tautologies, Contradictions, and Contingent Statements Use tr.pdf
 PART A Tautologies, Contradictions, and Contingent Statements Use tr.pdf PART A Tautologies, Contradictions, and Contingent Statements Use tr.pdf
PART A Tautologies, Contradictions, and Contingent Statements Use tr.pdfambritmobiles
 
Part 1. Pedigrees For the pedigrees below, look at each pedigree, cir.pdf
 Part 1. Pedigrees For the pedigrees below, look at each pedigree, cir.pdf Part 1. Pedigrees For the pedigrees below, look at each pedigree, cir.pdf
Part 1. Pedigrees For the pedigrees below, look at each pedigree, cir.pdfambritmobiles
 

Mais de ambritmobiles (20)

Presented below are three receivable transactions. Journalize these u.pdf
 Presented below are three receivable transactions. Journalize these u.pdf Presented below are three receivable transactions. Journalize these u.pdf
Presented below are three receivable transactions. Journalize these u.pdf
 
Premium Fender uses a standard cost system and provide the tolowing h.pdf
 Premium Fender uses a standard cost system and provide the tolowing h.pdf Premium Fender uses a standard cost system and provide the tolowing h.pdf
Premium Fender uses a standard cost system and provide the tolowing h.pdf
 
Preparation 1. Find i(t) and Vc(t) ( calculate by hand ), R=6, C=0.12.pdf
 Preparation 1. Find i(t) and Vc(t) ( calculate by hand ), R=6, C=0.12.pdf Preparation 1. Find i(t) and Vc(t) ( calculate by hand ), R=6, C=0.12.pdf
Preparation 1. Find i(t) and Vc(t) ( calculate by hand ), R=6, C=0.12.pdf
 
Preguntas informativas de evaluaci�n de salud de ATI Harold Steven.pdf
 Preguntas informativas de evaluaci�n de salud de ATI Harold Steven.pdf Preguntas informativas de evaluaci�n de salud de ATI Harold Steven.pdf
Preguntas informativas de evaluaci�n de salud de ATI Harold Steven.pdf
 
Presanted beloware the firanoal statamonts of Whispering Winds Compan.pdf
 Presanted beloware the firanoal statamonts of Whispering Winds Compan.pdf Presanted beloware the firanoal statamonts of Whispering Winds Compan.pdf
Presanted beloware the firanoal statamonts of Whispering Winds Compan.pdf
 
Practice This cartilage is tough and functions to cushion and add st.pdf
 Practice This cartilage is tough and functions to cushion and add st.pdf Practice This cartilage is tough and functions to cushion and add st.pdf
Practice This cartilage is tough and functions to cushion and add st.pdf
 
Pre-Lab questions (to be turned in before a b begins) 1. Distinguish.pdf
 Pre-Lab questions (to be turned in before a b begins) 1. Distinguish.pdf Pre-Lab questions (to be turned in before a b begins) 1. Distinguish.pdf
Pre-Lab questions (to be turned in before a b begins) 1. Distinguish.pdf
 
Presented below are four segments that have been identified by Novak .pdf
 Presented below are four segments that have been identified by Novak .pdf Presented below are four segments that have been identified by Novak .pdf
Presented below are four segments that have been identified by Novak .pdf
 
PRE-LAB EXERCISES 161 Key Termm corend in fretab fermin ifi io.tim It.pdf
 PRE-LAB EXERCISES 161 Key Termm corend in fretab fermin ifi io.tim It.pdf PRE-LAB EXERCISES 161 Key Termm corend in fretab fermin ifi io.tim It.pdf
PRE-LAB EXERCISES 161 Key Termm corend in fretab fermin ifi io.tim It.pdf
 
Prepare the journal entries for Brandon Corp. for the following dat.pdf
 Prepare the journal entries for Brandon Corp. for the following dat.pdf Prepare the journal entries for Brandon Corp. for the following dat.pdf
Prepare the journal entries for Brandon Corp. for the following dat.pdf
 
Pregunta 1 1 pto Las firmas con las que una empresa se asocia p.pdf
 Pregunta 1 1 pto Las firmas con las que una empresa se asocia p.pdf Pregunta 1 1 pto Las firmas con las que una empresa se asocia p.pdf
Pregunta 1 1 pto Las firmas con las que una empresa se asocia p.pdf
 
Pregunta de lectura 2 (10 puntos) Lee el siguiente texto y con.pdf
 Pregunta de lectura 2 (10 puntos) Lee el siguiente texto y con.pdf Pregunta de lectura 2 (10 puntos) Lee el siguiente texto y con.pdf
Pregunta de lectura 2 (10 puntos) Lee el siguiente texto y con.pdf
 
PREGUNTA 1 Seleccione cinco de los siguientes casos y determin.pdf
 PREGUNTA 1 Seleccione cinco de los siguientes casos y determin.pdf PREGUNTA 1 Seleccione cinco de los siguientes casos y determin.pdf
PREGUNTA 1 Seleccione cinco de los siguientes casos y determin.pdf
 
Prepare the adjusting entry for each item assuming a December 31, 202.pdf
 Prepare the adjusting entry for each item assuming a December 31, 202.pdf Prepare the adjusting entry for each item assuming a December 31, 202.pdf
Prepare the adjusting entry for each item assuming a December 31, 202.pdf
 
Practice Map A 1. Label each contour line with the proper elevation u.pdf
 Practice Map A 1. Label each contour line with the proper elevation u.pdf Practice Map A 1. Label each contour line with the proper elevation u.pdf
Practice Map A 1. Label each contour line with the proper elevation u.pdf
 
Part I This part is worth 6 points. Create the following tables in yo.pdf
 Part I This part is worth 6 points. Create the following tables in yo.pdf Part I This part is worth 6 points. Create the following tables in yo.pdf
Part I This part is worth 6 points. Create the following tables in yo.pdf
 
Part BTying plutonic igneous textures to their ternary phase diagr.pdf
 Part BTying plutonic igneous textures to their ternary phase diagr.pdf Part BTying plutonic igneous textures to their ternary phase diagr.pdf
Part BTying plutonic igneous textures to their ternary phase diagr.pdf
 
Part A. Use data charity.RData, collected by Franses and Paap (2001),.pdf
 Part A. Use data charity.RData, collected by Franses and Paap (2001),.pdf Part A. Use data charity.RData, collected by Franses and Paap (2001),.pdf
Part A. Use data charity.RData, collected by Franses and Paap (2001),.pdf
 
PART A Tautologies, Contradictions, and Contingent Statements Use tr.pdf
 PART A Tautologies, Contradictions, and Contingent Statements Use tr.pdf PART A Tautologies, Contradictions, and Contingent Statements Use tr.pdf
PART A Tautologies, Contradictions, and Contingent Statements Use tr.pdf
 
Part 1. Pedigrees For the pedigrees below, look at each pedigree, cir.pdf
 Part 1. Pedigrees For the pedigrees below, look at each pedigree, cir.pdf Part 1. Pedigrees For the pedigrees below, look at each pedigree, cir.pdf
Part 1. Pedigrees For the pedigrees below, look at each pedigree, cir.pdf
 

Último

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
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
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
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
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
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
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 

Último (20)

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
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
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
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
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
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
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
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
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 

Part 3 Algorithm Analysis Similarly to what we have done in class an.pdf

  • 1. Part 3: Algorithm Analysis Similarly to what we have done in class and in the labs, for each of the problems below (1-4) provide the following: i. a description of the worst-cose input, i.e., the input that would cause the largest running time ii. a summation used to calculate number of steps for the worst case iii. an explanation of how the code relates to the summation a. (loops require discussing number of iterations and steps per iteration) b. (recursion requires a diagram) iv. a bound, that, is a function g(n) such that R(n)(g(n)) where n is a suitable measure of the problem size and R(n) is the running time of the algorithm. Your summation should not be overly pessimistic, even when it leads to the same g(n) as another summation. For example, for the code for ( int i=0;i) tot = tot +a[j]; }