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
#2
(02-01-2021, 09:06 AM)Turkish Wrote: 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
Sorry, no help here.  You may have to just email and ask SDC.  I just wanted to let know people are reading your response.
Reply
#3
I haven't done this course yet, so I'm not sure what they want. You are allowed to revise the assignment and submit it again, if necessary.
In progress:
TESU - BA Computer Science; BSBA CIS; ASNSM Math & CS; ASBA

Completed:
Pierpont - AAS BOG
Sophia (so many), The Institutes (old), Study.com (5 courses)
ASU: Human Origins, Astronomy, Intro Health & Wellness, Western Civilization, Computer Appls & Info Technology, Intro Programming
Strayer: CIS175, CIS111, WRK100, MAT210
Reply
#4
You are overthinking it. Just copy your HashMap into a TreeMap. Use the TreeMap for the ‘game.’

They just want to see that you can build and manipulate a couple different structures. Commenting is key to getting maximum points. Explain everything.

I agree that the instructions are vague and confusing. Architecture is far worse.
[-] The following 2 users Like tallpilot's post:
  • BrianFallon, Turkish
Reply
#5
Thanks for the feedback everyone. I think tallpilot is right and I'm overthinking it. By using a TreeMap, which it tells you to do, you've already put it in a Red-Black Tree, which is a type of BST - so no second step. Just poorly worded. It also aligns with what celerius wrote here

Effectively "Display the content of the Map, then use the TreeMap class to sort the map while using a binary search tree for storage." should probably be written "Display the content of the Map, then use the TreeMap class to sort the map while using a binary search tree and for storage. " Those six words caused me a fair bit of frustration.


If I get it sent back as incorrect, I'll reply here with what needs to change, but it sounds like TreeMap is the only required step.
Reply
#6
(02-02-2021, 02:05 PM)Turkish Wrote: Thanks for the feedback everyone. I think tallpilot is right and I'm overthinking it. By using a TreeMap, which it tells you to do, you've already put it in a Red-Black Tree, which is a type of BST - so no second step. Just poorly worded. It also aligns with what celerius wrote here

Effectively "Display the content of the Map, then use the TreeMap class to sort the map while using a binary search tree for storage." should probably be written "Display the content of the Map, then use the TreeMap class to sort the map while using a binary search tree and for storage. " Those six words caused me a fair bit of frustration.


If I get it sent back as incorrect, I'll reply here with what needs to change, but it sounds like TreeMap is the only required step.

I can't remember my final score but it was somewhere between 97-100.  You have this one in the bag.  Keep going!
Reply
#7
I started Data Structures yesterday, I'm already done and ready to do the assignment today.

I still barely know Java, not enough to know what to do yet.  I was planning on trying to score around 90% on the assignment so I wouldn't have to worry about the final exam.  I will run the code to check if it works.

On the final exam from what I heard from other students is you only need to know the basics of what everything is, not specifically all the details of how everything works.  I need to find a super basic Quizlet to use.
Degrees: BA Computer Science, BS Business Administration with a concentration in CIS, AS Natural Science & Math, TESU. 4.0 GPA 2022.
Course Experience:  CLEP, Instantcert, Sophia.org, Study.com, Straighterline.com, Onlinedegree.org, Saylor.org, Csmlearn.com, and TEL Learning.
Certifications: W3Schools PHP, Google IT Support, Google Digital Marketing, Google Project Management
Reply
#8
(02-06-2021, 08:29 PM)LevelUP Wrote: I started Data Structures yesterday, I'm already done and ready to do the assignment today.

I still barely know Java, not enough to know what to do yet.  I was planning on trying to score around 90% on the assignment so I wouldn't have to worry about the final exam.  I will run the code to check if it works.

On the final exam from what I heard from other students is you only need to know the basics of what everything is, not specifically all the details of how everything works.  I need to find a super basic Quizlet to use.

I did the Java course. It gave me another CS credit for the certificate.  That helped, but you are correct, it isn’t necessary to be a Java expert to pass the exam. I believe I got an 82 without studying.
Reply
#9
Just coming back to confirm that the Red/Black tree is a BST for the assignment and I ended up with a 98. Similar to celerius' post I reference above, I received what I assume is the same message and link to an external site detailing that the BST could be expanded on.

Additionally, in reference to some of the above posters, I took the CS-115 Programming in Java from SDC the month before I took this as another poster had written that it made the course much easier. I'm envious that LevelUp was able to progress without it, but for me, I'm glad I went through that course because it eliminated any Java language and syntax issues and let me focus on the structure portion of the class. It also meant I started with a few classes already complete.

I'll echo what I have read from other posters, this is a very in-depth course and you can tell that several of the lesson authors have significant experience in the area. For a few of the lessons I ended up dropping to YouTube to get an additional explanation when it wasn't quite enough for me on the chapter lessons, but other than that, a much more difficult course than some of the others I've done.
In Progress:

Remaining:

Completed
TESU BSBA-CIS (Sept 2024 Grad)
TESU BA-COS (Sept 2024 Grad)
TESU ASNSM Mathematics (Sept 2024 Grad)


Reply
#10
(02-08-2021, 09:42 AM)Turkish Wrote: Just coming back to confirm that the Red/Black tree is a BST for the assignment

Does this mean that one should implement the BST as a nested class or something?
In progress:  TESU - BACS [116/122]
  Completed: Pierpont C&TC - Associate of Applied Science - BOG - Information Systems (May 2023)
      Dummy: ASU - Certificate in Applied Business Data Analytics (January 2023)
    Credits: ASU [72] | ALEKS [6] | CSMLearn [3] | InstantCert [3] | Sophia [57] | The Institutes [3] | SDC [30] | Coursera [18]
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Question Speedrunning SDC Data Structures and Computer Architecture advice? Randyb100 15 1,727 04-09-2024, 06:36 PM
Last Post: bjcheung77
  Study.com accounting 303 assignment 2 Pats20 0 709 06-14-2023, 05:23 PM
Last Post: Pats20
  Data structures and algorithms Pats20 9 2,571 07-08-2022, 02:03 PM
Last Post: LevelUP
  DATA STRUCTURES & ALGORITHMS gams007 17 3,490 03-14-2022, 04:20 PM
Last Post: jsd
  Udacity: Data Analyst NanoDegree review/material Seraphgrim 8 2,968 02-24-2022, 11:31 PM
Last Post: Seraphgrim
  SDC final exam and assignment Kab 1 885 02-01-2022, 01:48 PM
Last Post: rachel83az
  Question about COS 306 Computer Architecture Study.com Final assignment exxxius 17 4,329 12-19-2021, 01:23 PM
Last Post: AllThose299s
  study.com computer architecture assignment help maxxor6868 9 3,561 10-25-2021, 10:17 AM
Last Post: LevelUP
  Help on COS 306 Computer Architecture Study.com Final assignment StudentOLife 7 2,567 09-05-2021, 07:40 PM
Last Post: jsarles
  Computer Science 201 | Data Structures & Algorithms akr680 2 2,028 08-31-2021, 10:50 AM
Last Post: Pats20

Forum Jump:


Users browsing this thread: 2 Guest(s)