Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SDC Data Structures Assignment
#1
Hoping someone here can help me out with this. I've sent questions into SDC a while ago, but so far no response.

In Part 2 of the assignment for this course where you're storing States and their respective Capitals, there's a section that reads "Now revise the code to store the pairs of each state and its capital in a Map using the HashMap function. Display the content of the Map, then use the TreeMap class to sort the map while using a binary search tree for storage."

First sentence is easy enough, but it's the second on that's throwing me and I'm just not clear on what is being asked and maybe I'm overthinking this. The way I'm reading it is it appears to be asking for the State/Capitals to be moved from a HashMap, sorted with TreeMap, but saved into a Binary Search Tree. I'm not sure how you'd leverage TreeMap without creating an instance of it and storing inside it, but I'm not clear if it's asking for the data to go HashMap->BST or HashMap->TreeMap->BST. It's the 'sort' and 'storage' parts that are throwing me off.

I just want to confirm it's asking for moving the data into a HashMap, then stored into a TreeMap for sorting purposes, then into a Binary Search Tree for user search.
Reply


Messages In This Thread
SDC Data Structures Assignment - by Turkish - 02-01-2021, 09:06 AM
RE: SDC Data Structures Assignment - by Dorothy44 - 02-01-2021, 04:56 PM
RE: SDC Data Structures Assignment - by tallpilot - 02-01-2021, 09:34 PM
RE: SDC Data Structures Assignment - by Turkish - 02-02-2021, 02:05 PM
RE: SDC Data Structures Assignment - by tallpilot - 02-03-2021, 01:23 PM
RE: SDC Data Structures Assignment - by LevelUP - 02-06-2021, 08:29 PM
RE: SDC Data Structures Assignment - by tallpilot - 02-07-2021, 01:23 PM
RE: SDC Data Structures Assignment - by Turkish - 02-08-2021, 09:42 AM
RE: SDC Data Structures Assignment - by doom - 02-08-2021, 11:01 AM
RE: SDC Data Structures Assignment - by LevelUP - 02-08-2021, 08:07 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  New Sophia Course Business Data Analytics Jonathan Whatley 28 9,608 10-18-2025, 08:58 AM
Last Post: Mint Berry Crunch
Question Speedrunning SDC Data Structures and Computer Architecture advice? Randyb100 15 3,762 04-09-2024, 06:36 PM
Last Post: bjcheung77
  Study.com accounting 303 assignment 2 Pats20 0 1,049 06-14-2023, 05:23 PM
Last Post: Pats20
  Data structures and algorithms Pats20 9 3,438 07-08-2022, 02:03 PM
Last Post: LevelUP
  DATA STRUCTURES & ALGORITHMS gams007 17 5,045 03-14-2022, 04:20 PM
Last Post: jsd
  Udacity: Data Analyst NanoDegree review/material Seraphgrim 8 7,779 02-24-2022, 11:31 PM
Last Post: Seraphgrim
  SDC final exam and assignment Kab 1 1,235 02-01-2022, 01:48 PM
Last Post: rachel83az
  Question about COS 306 Computer Architecture Study.com Final assignment exxxius 17 6,080 12-19-2021, 01:23 PM
Last Post: AllThose299s
  study.com computer architecture assignment help maxxor6868 9 4,750 10-25-2021, 10:17 AM
Last Post: LevelUP
  Help on COS 306 Computer Architecture Study.com Final assignment StudentOLife 7 3,442 09-05-2021, 07:40 PM
Last Post: jsarles

Forum Jump:


Users browsing this thread: 1 Guest(s)