SlideShare a Scribd company logo
1 of 1
16# Task 2: Calculate T ( n ) (30pts). 17 # Print the time complexity T ( n ) of the entire
function. 18# ex answer code: print("P1: T ( n ) = 3 n + 1 ")

More Related Content

More from BorisJX7Mackaym

15- What is a reason for the increasing cost of reaching target audien.docx
15- What is a reason for the increasing cost of reaching target audien.docx15- What is a reason for the increasing cost of reaching target audien.docx
15- What is a reason for the increasing cost of reaching target audien.docxBorisJX7Mackaym
 
14- Copy the formula in cell M7 to the range M8-M15- and edit the copi.docx
14- Copy the formula in cell M7 to the range M8-M15- and edit the copi.docx14- Copy the formula in cell M7 to the range M8-M15- and edit the copi.docx
14- Copy the formula in cell M7 to the range M8-M15- and edit the copi.docxBorisJX7Mackaym
 
14- Although algae are aquatic organisms- one particular order of char.docx
14- Although algae are aquatic organisms- one particular order of char.docx14- Although algae are aquatic organisms- one particular order of char.docx
14- Although algae are aquatic organisms- one particular order of char.docxBorisJX7Mackaym
 
14) What is the number of authorized shares per the charter- 15) What.docx
14) What is the number of authorized shares per the charter- 15) What.docx14) What is the number of authorized shares per the charter- 15) What.docx
14) What is the number of authorized shares per the charter- 15) What.docxBorisJX7Mackaym
 
14) In Guinea pigs black hair (B) is dominant over white ( b)- rough c.docx
14) In Guinea pigs black hair (B) is dominant over white ( b)- rough c.docx14) In Guinea pigs black hair (B) is dominant over white ( b)- rough c.docx
14) In Guinea pigs black hair (B) is dominant over white ( b)- rough c.docxBorisJX7Mackaym
 
13- Many mammals exhibit variations in coat color- For example- weasel.docx
13- Many mammals exhibit variations in coat color- For example- weasel.docx13- Many mammals exhibit variations in coat color- For example- weasel.docx
13- Many mammals exhibit variations in coat color- For example- weasel.docxBorisJX7Mackaym
 
13- Which of the following sorting algorithms could be implemented on.docx
13- Which of the following sorting algorithms could be implemented on.docx13- Which of the following sorting algorithms could be implemented on.docx
13- Which of the following sorting algorithms could be implemented on.docxBorisJX7Mackaym
 
13- Identify three advantages of off-the-shelf soffware versus proprie.docx
13- Identify three advantages of off-the-shelf soffware versus proprie.docx13- Identify three advantages of off-the-shelf soffware versus proprie.docx
13- Identify three advantages of off-the-shelf soffware versus proprie.docxBorisJX7Mackaym
 
14-10 On December 1- the Weber Corporation plans to issue bonds with a.docx
14-10 On December 1- the Weber Corporation plans to issue bonds with a.docx14-10 On December 1- the Weber Corporation plans to issue bonds with a.docx
14-10 On December 1- the Weber Corporation plans to issue bonds with a.docxBorisJX7Mackaym
 
15- Assume that it is possible to co-infect E- coli with two separate.docx
15- Assume that it is possible to co-infect E- coli with two separate.docx15- Assume that it is possible to co-infect E- coli with two separate.docx
15- Assume that it is possible to co-infect E- coli with two separate.docxBorisJX7Mackaym
 
14 1 point Permeability of a weak base drug across plasma membrane inc.docx
14 1 point Permeability of a weak base drug across plasma membrane inc.docx14 1 point Permeability of a weak base drug across plasma membrane inc.docx
14 1 point Permeability of a weak base drug across plasma membrane inc.docxBorisJX7Mackaym
 
15 points Write a function that can swap the values of two variables-.docx
15 points Write a function that can swap the values of two variables-.docx15 points Write a function that can swap the values of two variables-.docx
15 points Write a function that can swap the values of two variables-.docxBorisJX7Mackaym
 
12- Seth purchased a variable annuity with a premium deposit of $30-00.docx
12- Seth purchased a variable annuity with a premium deposit of $30-00.docx12- Seth purchased a variable annuity with a premium deposit of $30-00.docx
12- Seth purchased a variable annuity with a premium deposit of $30-00.docxBorisJX7Mackaym
 
14- State four key advantages of the software as a service model- 15.docx
14- State four key advantages of the software as a service model-   15.docx14- State four key advantages of the software as a service model-   15.docx
14- State four key advantages of the software as a service model- 15.docxBorisJX7Mackaym
 
14- Users of government financial statements should be interested in i.docx
14- Users of government financial statements should be interested in i.docx14- Users of government financial statements should be interested in i.docx
14- Users of government financial statements should be interested in i.docxBorisJX7Mackaym
 
14- Taxpayer- age 68- files a 2022 federal income tax return as head o.docx
14- Taxpayer- age 68- files a 2022 federal income tax return as head o.docx14- Taxpayer- age 68- files a 2022 federal income tax return as head o.docx
14- Taxpayer- age 68- files a 2022 federal income tax return as head o.docxBorisJX7Mackaym
 
13- Epstein Barr virus (EBV) infects endothelial cells and B cells- Ab.docx
13- Epstein Barr virus (EBV) infects endothelial cells and B cells- Ab.docx13- Epstein Barr virus (EBV) infects endothelial cells and B cells- Ab.docx
13- Epstein Barr virus (EBV) infects endothelial cells and B cells- Ab.docxBorisJX7Mackaym
 
12- The ability for an advertiser to present large amounts of informat.docx
12- The ability for an advertiser to present large amounts of informat.docx12- The ability for an advertiser to present large amounts of informat.docx
12- The ability for an advertiser to present large amounts of informat.docxBorisJX7Mackaym
 
12- The Consumer Price Index is a simple aggregate index- Answer- 13-.docx
12- The Consumer Price Index is a simple aggregate index- Answer- 13-.docx12- The Consumer Price Index is a simple aggregate index- Answer- 13-.docx
12- The Consumer Price Index is a simple aggregate index- Answer- 13-.docxBorisJX7Mackaym
 

More from BorisJX7Mackaym (20)

15- What is a reason for the increasing cost of reaching target audien.docx
15- What is a reason for the increasing cost of reaching target audien.docx15- What is a reason for the increasing cost of reaching target audien.docx
15- What is a reason for the increasing cost of reaching target audien.docx
 
14- Copy the formula in cell M7 to the range M8-M15- and edit the copi.docx
14- Copy the formula in cell M7 to the range M8-M15- and edit the copi.docx14- Copy the formula in cell M7 to the range M8-M15- and edit the copi.docx
14- Copy the formula in cell M7 to the range M8-M15- and edit the copi.docx
 
14- Although algae are aquatic organisms- one particular order of char.docx
14- Although algae are aquatic organisms- one particular order of char.docx14- Although algae are aquatic organisms- one particular order of char.docx
14- Although algae are aquatic organisms- one particular order of char.docx
 
14) What is the number of authorized shares per the charter- 15) What.docx
14) What is the number of authorized shares per the charter- 15) What.docx14) What is the number of authorized shares per the charter- 15) What.docx
14) What is the number of authorized shares per the charter- 15) What.docx
 
14) In Guinea pigs black hair (B) is dominant over white ( b)- rough c.docx
14) In Guinea pigs black hair (B) is dominant over white ( b)- rough c.docx14) In Guinea pigs black hair (B) is dominant over white ( b)- rough c.docx
14) In Guinea pigs black hair (B) is dominant over white ( b)- rough c.docx
 
13- Many mammals exhibit variations in coat color- For example- weasel.docx
13- Many mammals exhibit variations in coat color- For example- weasel.docx13- Many mammals exhibit variations in coat color- For example- weasel.docx
13- Many mammals exhibit variations in coat color- For example- weasel.docx
 
13- Which of the following sorting algorithms could be implemented on.docx
13- Which of the following sorting algorithms could be implemented on.docx13- Which of the following sorting algorithms could be implemented on.docx
13- Which of the following sorting algorithms could be implemented on.docx
 
13- Identify three advantages of off-the-shelf soffware versus proprie.docx
13- Identify three advantages of off-the-shelf soffware versus proprie.docx13- Identify three advantages of off-the-shelf soffware versus proprie.docx
13- Identify three advantages of off-the-shelf soffware versus proprie.docx
 
12x2+4xdx.docx
12x2+4xdx.docx12x2+4xdx.docx
12x2+4xdx.docx
 
14-10 On December 1- the Weber Corporation plans to issue bonds with a.docx
14-10 On December 1- the Weber Corporation plans to issue bonds with a.docx14-10 On December 1- the Weber Corporation plans to issue bonds with a.docx
14-10 On December 1- the Weber Corporation plans to issue bonds with a.docx
 
15- Assume that it is possible to co-infect E- coli with two separate.docx
15- Assume that it is possible to co-infect E- coli with two separate.docx15- Assume that it is possible to co-infect E- coli with two separate.docx
15- Assume that it is possible to co-infect E- coli with two separate.docx
 
14 1 point Permeability of a weak base drug across plasma membrane inc.docx
14 1 point Permeability of a weak base drug across plasma membrane inc.docx14 1 point Permeability of a weak base drug across plasma membrane inc.docx
14 1 point Permeability of a weak base drug across plasma membrane inc.docx
 
15 points Write a function that can swap the values of two variables-.docx
15 points Write a function that can swap the values of two variables-.docx15 points Write a function that can swap the values of two variables-.docx
15 points Write a function that can swap the values of two variables-.docx
 
12- Seth purchased a variable annuity with a premium deposit of $30-00.docx
12- Seth purchased a variable annuity with a premium deposit of $30-00.docx12- Seth purchased a variable annuity with a premium deposit of $30-00.docx
12- Seth purchased a variable annuity with a premium deposit of $30-00.docx
 
14- State four key advantages of the software as a service model- 15.docx
14- State four key advantages of the software as a service model-   15.docx14- State four key advantages of the software as a service model-   15.docx
14- State four key advantages of the software as a service model- 15.docx
 
14- Users of government financial statements should be interested in i.docx
14- Users of government financial statements should be interested in i.docx14- Users of government financial statements should be interested in i.docx
14- Users of government financial statements should be interested in i.docx
 
14- Taxpayer- age 68- files a 2022 federal income tax return as head o.docx
14- Taxpayer- age 68- files a 2022 federal income tax return as head o.docx14- Taxpayer- age 68- files a 2022 federal income tax return as head o.docx
14- Taxpayer- age 68- files a 2022 federal income tax return as head o.docx
 
13- Epstein Barr virus (EBV) infects endothelial cells and B cells- Ab.docx
13- Epstein Barr virus (EBV) infects endothelial cells and B cells- Ab.docx13- Epstein Barr virus (EBV) infects endothelial cells and B cells- Ab.docx
13- Epstein Barr virus (EBV) infects endothelial cells and B cells- Ab.docx
 
12- The ability for an advertiser to present large amounts of informat.docx
12- The ability for an advertiser to present large amounts of informat.docx12- The ability for an advertiser to present large amounts of informat.docx
12- The ability for an advertiser to present large amounts of informat.docx
 
12- The Consumer Price Index is a simple aggregate index- Answer- 13-.docx
12- The Consumer Price Index is a simple aggregate index- Answer- 13-.docx12- The Consumer Price Index is a simple aggregate index- Answer- 13-.docx
12- The Consumer Price Index is a simple aggregate index- Answer- 13-.docx
 

Recently uploaded

Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
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
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
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
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
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
 
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
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
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
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
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
 

Recently uploaded (20)

Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
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
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
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
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
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
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
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
 
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
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
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
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.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
 

16# Task 2- Calculate T(n) (30pts)- 17 -# Print the time complexity T(.docx

  • 1. 16# Task 2: Calculate T ( n ) (30pts). 17 # Print the time complexity T ( n ) of the entire function. 18# ex answer code: print("P1: T ( n ) = 3 n + 1 ")