SlideShare ist ein Scribd-Unternehmen logo
1 von 2
A HashMap with a perfect hash function can search for an item in time 0(n^2) 0(n) O(logn)
0(tau) If hm is declared as: HashMap hm = new HashMap(); the statement hm.put("1234",new
lnteger(1234)); associates the String "1234" as a key with an Integer object having a value of
1234. associates the Integer 1234 as a key with an Integer object having a value of 1234.
associates the String "1234" as a value with an Integer object having a value of 1234. associates
the Integer 1234 as a value with an String object having a value of "1234". If the following
values are put into a HashMap as follows: french.put("cat,"chat");
french.put("water","eau"); french.put("moon","lune"); the keys will come out in the order:
cat, water, moon cat, moon, water water, moon, cat the order is unknown If the following values
are put into a TreeMap as follows: french.put("cat","chat"); french.put("water","e3u");
french.put("moon","lune"); the keys will come out in the order: cat, water, moon cat, moon,
water water, moon, cat the order is unknown the following values are put into a TreeMap as
follow: french.put("cat,"chat"); french.put("water","eau"); french.put("moon","lune"); the
keys will come out in the order: Cat, water, moon cat, moon, water water, moon, cat the order is
unknown
Solution
6. D
7. A
8.D
9.B
You did not mentioned what i have to answer anyway the options of the above questions are
here..Thankyou
A HashMap with a perfect hash function can search for an item in time.docx

Weitere ähnliche Inhalte

Mehr von ljohn878

Computing an average mark for four tests Design the algorithm and the.docx
Computing an average mark for four tests  Design the algorithm and the.docxComputing an average mark for four tests  Design the algorithm and the.docx
Computing an average mark for four tests Design the algorithm and the.docx
ljohn878
 
Computer Networks- Write either True or False 1- In LTE- a mobile devi.docx
Computer Networks- Write either True or False 1- In LTE- a mobile devi.docxComputer Networks- Write either True or False 1- In LTE- a mobile devi.docx
Computer Networks- Write either True or False 1- In LTE- a mobile devi.docx
ljohn878
 
Completely classify liquid FeFe- Pure Substance Compound Mixture Eleme.docx
Completely classify liquid FeFe- Pure Substance Compound Mixture Eleme.docxCompletely classify liquid FeFe- Pure Substance Compound Mixture Eleme.docx
Completely classify liquid FeFe- Pure Substance Compound Mixture Eleme.docx
ljohn878
 
Complete the following table by calculating the missing entries and in.docx
Complete the following table by calculating the missing entries and in.docxComplete the following table by calculating the missing entries and in.docx
Complete the following table by calculating the missing entries and in.docx
ljohn878
 
Compare the models and information found with NonakaSolutiondeveloped.docx
Compare the models and information found with NonakaSolutiondeveloped.docxCompare the models and information found with NonakaSolutiondeveloped.docx
Compare the models and information found with NonakaSolutiondeveloped.docx
ljohn878
 
Compare the models and information found with NonakaSolutiondeveloped (2).docx
Compare the models and information found with NonakaSolutiondeveloped (2).docxCompare the models and information found with NonakaSolutiondeveloped (2).docx
Compare the models and information found with NonakaSolutiondeveloped (2).docx
ljohn878
 
Compare the models and information found with NonakaSolutiondeveloped (1).docx
Compare the models and information found with NonakaSolutiondeveloped (1).docxCompare the models and information found with NonakaSolutiondeveloped (1).docx
Compare the models and information found with NonakaSolutiondeveloped (1).docx
ljohn878
 
Compare the models and information found with NonakaSolutiondeveloped (3).docx
Compare the models and information found with NonakaSolutiondeveloped (3).docxCompare the models and information found with NonakaSolutiondeveloped (3).docx
Compare the models and information found with NonakaSolutiondeveloped (3).docx
ljohn878
 

Mehr von ljohn878 (14)

Computing an average mark for four tests Design the algorithm and the.docx
Computing an average mark for four tests  Design the algorithm and the.docxComputing an average mark for four tests  Design the algorithm and the.docx
Computing an average mark for four tests Design the algorithm and the.docx
 
Computer Networks- Write either True or False 1- In LTE- a mobile devi.docx
Computer Networks- Write either True or False 1- In LTE- a mobile devi.docxComputer Networks- Write either True or False 1- In LTE- a mobile devi.docx
Computer Networks- Write either True or False 1- In LTE- a mobile devi.docx
 
Computation of weighted average shares outstanding during the year- J.docx
Computation of weighted average shares outstanding during the year-  J.docxComputation of weighted average shares outstanding during the year-  J.docx
Computation of weighted average shares outstanding during the year- J.docx
 
Comprehensive Problem 5 (Part Level Submission) On December 1- 2014- J.docx
Comprehensive Problem 5 (Part Level Submission) On December 1- 2014- J.docxComprehensive Problem 5 (Part Level Submission) On December 1- 2014- J.docx
Comprehensive Problem 5 (Part Level Submission) On December 1- 2014- J.docx
 
Completely classify liquid FeFe- Pure Substance Compound Mixture Eleme.docx
Completely classify liquid FeFe- Pure Substance Compound Mixture Eleme.docxCompletely classify liquid FeFe- Pure Substance Compound Mixture Eleme.docx
Completely classify liquid FeFe- Pure Substance Compound Mixture Eleme.docx
 
Complete the following table by calculating the missing entries and in.docx
Complete the following table by calculating the missing entries and in.docxComplete the following table by calculating the missing entries and in.docx
Complete the following table by calculating the missing entries and in.docx
 
Compare the models and information found with NonakaSolutiondeveloped.docx
Compare the models and information found with NonakaSolutiondeveloped.docxCompare the models and information found with NonakaSolutiondeveloped.docx
Compare the models and information found with NonakaSolutiondeveloped.docx
 
Compare the models and information found with NonakaSolutiondeveloped (2).docx
Compare the models and information found with NonakaSolutiondeveloped (2).docxCompare the models and information found with NonakaSolutiondeveloped (2).docx
Compare the models and information found with NonakaSolutiondeveloped (2).docx
 
Complete the following Java code such that it opens a file named Fruit.docx
Complete the following Java code such that it opens a file named Fruit.docxComplete the following Java code such that it opens a file named Fruit.docx
Complete the following Java code such that it opens a file named Fruit.docx
 
Compare the models and information found with NonakaSolutiondeveloped (1).docx
Compare the models and information found with NonakaSolutiondeveloped (1).docxCompare the models and information found with NonakaSolutiondeveloped (1).docx
Compare the models and information found with NonakaSolutiondeveloped (1).docx
 
Compare the models and information found with NonakaSolutiondeveloped (3).docx
Compare the models and information found with NonakaSolutiondeveloped (3).docxCompare the models and information found with NonakaSolutiondeveloped (3).docx
Compare the models and information found with NonakaSolutiondeveloped (3).docx
 
Compare and contrast the Internal Rate of Return (IRR)- the Net Presen.docx
Compare and contrast the Internal Rate of Return (IRR)- the Net Presen.docxCompare and contrast the Internal Rate of Return (IRR)- the Net Presen.docx
Compare and contrast the Internal Rate of Return (IRR)- the Net Presen.docx
 
Consider a system consisting of processes P1- P2- --- - P11- each of w.docx
Consider a system consisting of processes P1- P2- --- - P11- each of w.docxConsider a system consisting of processes P1- P2- --- - P11- each of w.docx
Consider a system consisting of processes P1- P2- --- - P11- each of w.docx
 
Consider a healthcare organization that you are familiar with and pres.docx
Consider a healthcare organization that you are familiar with and pres.docxConsider a healthcare organization that you are familiar with and pres.docx
Consider a healthcare organization that you are familiar with and pres.docx
 

Kürzlich hochgeladen

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
QucHHunhnh
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
fonyou31
 

Kürzlich hochgeladen (20)

Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
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
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
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
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
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
 
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
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
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
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 

A HashMap with a perfect hash function can search for an item in time.docx

  • 1. A HashMap with a perfect hash function can search for an item in time 0(n^2) 0(n) O(logn) 0(tau) If hm is declared as: HashMap hm = new HashMap(); the statement hm.put("1234",new lnteger(1234)); associates the String "1234" as a key with an Integer object having a value of 1234. associates the Integer 1234 as a key with an Integer object having a value of 1234. associates the String "1234" as a value with an Integer object having a value of 1234. associates the Integer 1234 as a value with an String object having a value of "1234". If the following values are put into a HashMap as follows: french.put("cat,"chat"); french.put("water","eau"); french.put("moon","lune"); the keys will come out in the order: cat, water, moon cat, moon, water water, moon, cat the order is unknown If the following values are put into a TreeMap as follows: french.put("cat","chat"); french.put("water","e3u"); french.put("moon","lune"); the keys will come out in the order: cat, water, moon cat, moon, water water, moon, cat the order is unknown the following values are put into a TreeMap as follow: french.put("cat,"chat"); french.put("water","eau"); french.put("moon","lune"); the keys will come out in the order: Cat, water, moon cat, moon, water water, moon, cat the order is unknown Solution 6. D 7. A 8.D 9.B You did not mentioned what i have to answer anyway the options of the above questions are here..Thankyou