SlideShare a Scribd company logo
1 of 1
1.3 Task 3: Allocate a Treeset and LinkedList both with size and fill both structures with the
range of numbers [ 0 , size). For times do the following: - Calculate a random number in the
range [ 0 , size) and time how long the . contains () method takes to find if the element exists in
the structure. Report the average time for each of the structures to find if the element exists.

More Related Content

More from ChristopherKNjAbraha

1-Open the following Cytoscape session files- 2- Create network views.docx
1-Open the following Cytoscape session files- 2- Create network views.docx1-Open the following Cytoscape session files- 2- Create network views.docx
1-Open the following Cytoscape session files- 2- Create network views.docxChristopherKNjAbraha
Β 
1-What are signs that you are delegating too little at work- 2-What ar.docx
1-What are signs that you are delegating too little at work- 2-What ar.docx1-What are signs that you are delegating too little at work- 2-What ar.docx
1-What are signs that you are delegating too little at work- 2-What ar.docxChristopherKNjAbraha
Β 
1-Reasons for various companies except- A) Setting rules concerning th.docx
1-Reasons for various companies except- A) Setting rules concerning th.docx1-Reasons for various companies except- A) Setting rules concerning th.docx
1-Reasons for various companies except- A) Setting rules concerning th.docxChristopherKNjAbraha
Β 
2- Explain what might matter is and how it relates to the neuron- Next.docx
2- Explain what might matter is and how it relates to the neuron- Next.docx2- Explain what might matter is and how it relates to the neuron- Next.docx
2- Explain what might matter is and how it relates to the neuron- Next.docxChristopherKNjAbraha
Β 
2- Create a multiwindow application as follows- A main window opens wh.docx
2- Create a multiwindow application as follows- A main window opens wh.docx2- Create a multiwindow application as follows- A main window opens wh.docx
2- Create a multiwindow application as follows- A main window opens wh.docxChristopherKNjAbraha
Β 
2- A- Explain how margins proteet investors against the possibility of.docx
2- A- Explain how margins proteet investors against the possibility of.docx2- A- Explain how margins proteet investors against the possibility of.docx
2- A- Explain how margins proteet investors against the possibility of.docxChristopherKNjAbraha
Β 
2) In order to act as a barrier against unregulated exchange between t.docx
2) In order to act as a barrier against unregulated exchange between t.docx2) In order to act as a barrier against unregulated exchange between t.docx
2) In order to act as a barrier against unregulated exchange between t.docxChristopherKNjAbraha
Β 
2- ( 5 pts) Assume that the four living box turtle species on the righ.docx
2- ( 5 pts) Assume that the four living box turtle species on the righ.docx2- ( 5 pts) Assume that the four living box turtle species on the righ.docx
2- ( 5 pts) Assume that the four living box turtle species on the righ.docxChristopherKNjAbraha
Β 
2 points The objective of a supply chain is to strike a balance betwee.docx
2 points The objective of a supply chain is to strike a balance betwee.docx2 points The objective of a supply chain is to strike a balance betwee.docx
2 points The objective of a supply chain is to strike a balance betwee.docxChristopherKNjAbraha
Β 
2 points Which of the following statements is true regarding the PE ra.docx
2 points Which of the following statements is true regarding the PE ra.docx2 points Which of the following statements is true regarding the PE ra.docx
2 points Which of the following statements is true regarding the PE ra.docxChristopherKNjAbraha
Β 
16- Risk-in asset management is (choose all the statements that are tr.docx
16- Risk-in asset management is (choose all the statements that are tr.docx16- Risk-in asset management is (choose all the statements that are tr.docx
16- Risk-in asset management is (choose all the statements that are tr.docxChristopherKNjAbraha
Β 
18) Various financial data fa-o Output- Inputs- 2013 follow- What is t.docx
18) Various financial data fa-o Output- Inputs- 2013 follow- What is t.docx18) Various financial data fa-o Output- Inputs- 2013 follow- What is t.docx
18) Various financial data fa-o Output- Inputs- 2013 follow- What is t.docxChristopherKNjAbraha
Β 
16) Delta Airlines uses Starbuck's coffee on its flights- This relatio.docx
16) Delta Airlines uses Starbuck's coffee on its flights- This relatio.docx16) Delta Airlines uses Starbuck's coffee on its flights- This relatio.docx
16) Delta Airlines uses Starbuck's coffee on its flights- This relatio.docxChristopherKNjAbraha
Β 
15- The parts of a Transferring knowledge and THe- FIRST- Creating and.docx
15- The parts of a Transferring knowledge and THe- FIRST- Creating and.docx15- The parts of a Transferring knowledge and THe- FIRST- Creating and.docx
15- The parts of a Transferring knowledge and THe- FIRST- Creating and.docxChristopherKNjAbraha
Β 
15- These proteins accept a pair of high-energy electrons from the ele.docx
15- These proteins accept a pair of high-energy electrons from the ele.docx15- These proteins accept a pair of high-energy electrons from the ele.docx
15- These proteins accept a pair of high-energy electrons from the ele.docxChristopherKNjAbraha
Β 
1- Which media (NA- EMB- and-or MSA) are selective- Explain how they a.docx
1- Which media (NA- EMB- and-or MSA) are selective- Explain how they a.docx1- Which media (NA- EMB- and-or MSA) are selective- Explain how they a.docx
1- Which media (NA- EMB- and-or MSA) are selective- Explain how they a.docxChristopherKNjAbraha
Β 
1- Write the following helper functions- void setupRandArray (int n- i.docx
1- Write the following helper functions- void setupRandArray (int n- i.docx1- Write the following helper functions- void setupRandArray (int n- i.docx
1- Write the following helper functions- void setupRandArray (int n- i.docxChristopherKNjAbraha
Β 
1- What is the area to the left of z-2-13 - 2- What is the area to the.docx
1- What is the area to the left of z-2-13 - 2- What is the area to the.docx1- What is the area to the left of z-2-13 - 2- What is the area to the.docx
1- What is the area to the left of z-2-13 - 2- What is the area to the.docxChristopherKNjAbraha
Β 
1- Who are the stakeholders implicated in these policies- and what is.docx
1- Who are the stakeholders implicated in these policies- and what is.docx1- Who are the stakeholders implicated in these policies- and what is.docx
1- Who are the stakeholders implicated in these policies- and what is.docxChristopherKNjAbraha
Β 
1-Outdoor research needs to rely on- O a- traffic pattern and pedestri.docx
1-Outdoor research needs to rely on- O a- traffic pattern and pedestri.docx1-Outdoor research needs to rely on- O a- traffic pattern and pedestri.docx
1-Outdoor research needs to rely on- O a- traffic pattern and pedestri.docxChristopherKNjAbraha
Β 

More from ChristopherKNjAbraha (20)

1-Open the following Cytoscape session files- 2- Create network views.docx
1-Open the following Cytoscape session files- 2- Create network views.docx1-Open the following Cytoscape session files- 2- Create network views.docx
1-Open the following Cytoscape session files- 2- Create network views.docx
Β 
1-What are signs that you are delegating too little at work- 2-What ar.docx
1-What are signs that you are delegating too little at work- 2-What ar.docx1-What are signs that you are delegating too little at work- 2-What ar.docx
1-What are signs that you are delegating too little at work- 2-What ar.docx
Β 
1-Reasons for various companies except- A) Setting rules concerning th.docx
1-Reasons for various companies except- A) Setting rules concerning th.docx1-Reasons for various companies except- A) Setting rules concerning th.docx
1-Reasons for various companies except- A) Setting rules concerning th.docx
Β 
2- Explain what might matter is and how it relates to the neuron- Next.docx
2- Explain what might matter is and how it relates to the neuron- Next.docx2- Explain what might matter is and how it relates to the neuron- Next.docx
2- Explain what might matter is and how it relates to the neuron- Next.docx
Β 
2- Create a multiwindow application as follows- A main window opens wh.docx
2- Create a multiwindow application as follows- A main window opens wh.docx2- Create a multiwindow application as follows- A main window opens wh.docx
2- Create a multiwindow application as follows- A main window opens wh.docx
Β 
2- A- Explain how margins proteet investors against the possibility of.docx
2- A- Explain how margins proteet investors against the possibility of.docx2- A- Explain how margins proteet investors against the possibility of.docx
2- A- Explain how margins proteet investors against the possibility of.docx
Β 
2) In order to act as a barrier against unregulated exchange between t.docx
2) In order to act as a barrier against unregulated exchange between t.docx2) In order to act as a barrier against unregulated exchange between t.docx
2) In order to act as a barrier against unregulated exchange between t.docx
Β 
2- ( 5 pts) Assume that the four living box turtle species on the righ.docx
2- ( 5 pts) Assume that the four living box turtle species on the righ.docx2- ( 5 pts) Assume that the four living box turtle species on the righ.docx
2- ( 5 pts) Assume that the four living box turtle species on the righ.docx
Β 
2 points The objective of a supply chain is to strike a balance betwee.docx
2 points The objective of a supply chain is to strike a balance betwee.docx2 points The objective of a supply chain is to strike a balance betwee.docx
2 points The objective of a supply chain is to strike a balance betwee.docx
Β 
2 points Which of the following statements is true regarding the PE ra.docx
2 points Which of the following statements is true regarding the PE ra.docx2 points Which of the following statements is true regarding the PE ra.docx
2 points Which of the following statements is true regarding the PE ra.docx
Β 
16- Risk-in asset management is (choose all the statements that are tr.docx
16- Risk-in asset management is (choose all the statements that are tr.docx16- Risk-in asset management is (choose all the statements that are tr.docx
16- Risk-in asset management is (choose all the statements that are tr.docx
Β 
18) Various financial data fa-o Output- Inputs- 2013 follow- What is t.docx
18) Various financial data fa-o Output- Inputs- 2013 follow- What is t.docx18) Various financial data fa-o Output- Inputs- 2013 follow- What is t.docx
18) Various financial data fa-o Output- Inputs- 2013 follow- What is t.docx
Β 
16) Delta Airlines uses Starbuck's coffee on its flights- This relatio.docx
16) Delta Airlines uses Starbuck's coffee on its flights- This relatio.docx16) Delta Airlines uses Starbuck's coffee on its flights- This relatio.docx
16) Delta Airlines uses Starbuck's coffee on its flights- This relatio.docx
Β 
15- The parts of a Transferring knowledge and THe- FIRST- Creating and.docx
15- The parts of a Transferring knowledge and THe- FIRST- Creating and.docx15- The parts of a Transferring knowledge and THe- FIRST- Creating and.docx
15- The parts of a Transferring knowledge and THe- FIRST- Creating and.docx
Β 
15- These proteins accept a pair of high-energy electrons from the ele.docx
15- These proteins accept a pair of high-energy electrons from the ele.docx15- These proteins accept a pair of high-energy electrons from the ele.docx
15- These proteins accept a pair of high-energy electrons from the ele.docx
Β 
1- Which media (NA- EMB- and-or MSA) are selective- Explain how they a.docx
1- Which media (NA- EMB- and-or MSA) are selective- Explain how they a.docx1- Which media (NA- EMB- and-or MSA) are selective- Explain how they a.docx
1- Which media (NA- EMB- and-or MSA) are selective- Explain how they a.docx
Β 
1- Write the following helper functions- void setupRandArray (int n- i.docx
1- Write the following helper functions- void setupRandArray (int n- i.docx1- Write the following helper functions- void setupRandArray (int n- i.docx
1- Write the following helper functions- void setupRandArray (int n- i.docx
Β 
1- What is the area to the left of z-2-13 - 2- What is the area to the.docx
1- What is the area to the left of z-2-13 - 2- What is the area to the.docx1- What is the area to the left of z-2-13 - 2- What is the area to the.docx
1- What is the area to the left of z-2-13 - 2- What is the area to the.docx
Β 
1- Who are the stakeholders implicated in these policies- and what is.docx
1- Who are the stakeholders implicated in these policies- and what is.docx1- Who are the stakeholders implicated in these policies- and what is.docx
1- Who are the stakeholders implicated in these policies- and what is.docx
Β 
1-Outdoor research needs to rely on- O a- traffic pattern and pedestri.docx
1-Outdoor research needs to rely on- O a- traffic pattern and pedestri.docx1-Outdoor research needs to rely on- O a- traffic pattern and pedestri.docx
1-Outdoor research needs to rely on- O a- traffic pattern and pedestri.docx
Β 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
Β 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
Β 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
Β 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
Β 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfstareducators107
Β 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
Β 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
Β 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answersdalebeck957
Β 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
Β 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
Β 
Call Girls in Uttam Nagar (delhi) call me [πŸ”9953056974πŸ”] escort service 24X7
Call Girls in  Uttam Nagar (delhi) call me [πŸ”9953056974πŸ”] escort service 24X7Call Girls in  Uttam Nagar (delhi) call me [πŸ”9953056974πŸ”] escort service 24X7
Call Girls in Uttam Nagar (delhi) call me [πŸ”9953056974πŸ”] escort service 24X79953056974 Low Rate Call Girls In Saket, Delhi NCR
Β 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
Β 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
Β 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
Β 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
Β 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17Celine George
Β 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
Β 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111GangaMaiya1
Β 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
Β 

Recently uploaded (20)

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
Β 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
Β 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
Β 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
Β 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
Β 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
Β 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
Β 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answers
Β 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
Β 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
Β 
Call Girls in Uttam Nagar (delhi) call me [πŸ”9953056974πŸ”] escort service 24X7
Call Girls in  Uttam Nagar (delhi) call me [πŸ”9953056974πŸ”] escort service 24X7Call Girls in  Uttam Nagar (delhi) call me [πŸ”9953056974πŸ”] escort service 24X7
Call Girls in Uttam Nagar (delhi) call me [πŸ”9953056974πŸ”] escort service 24X7
Β 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
Β 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
Β 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
Β 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
Β 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
Β 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
Β 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
Β 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
Β 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
Β 

1-3 Task 3- Allocate a Treeset and LinkedList both with size and fill.docx

  • 1. 1.3 Task 3: Allocate a Treeset and LinkedList both with size and fill both structures with the range of numbers [ 0 , size). For times do the following: - Calculate a random number in the range [ 0 , size) and time how long the . contains () method takes to find if the element exists in the structure. Report the average time for each of the structures to find if the element exists.