Posts: 79
Threads: 11
Likes Received: 21 in 16 posts
Likes Given: 22
Joined: Apr 2015
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.
•
Posts: 312
Threads: 32
Likes Received: 69 in 57 posts
Likes Given: 349
Joined: Sep 2020
(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.
•
Posts: 11,060
Threads: 153
Likes Received: 6,005 in 3,997 posts
Likes Given: 4,205
Joined: Mar 2018
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
•
Posts: 170
Threads: 3
Likes Received: 132 in 73 posts
Likes Given: 40
Joined: Jul 2020
02-01-2021, 09:34 PM
(This post was last modified: 02-01-2021, 09:35 PM by tallpilot.)
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.
Posts: 79
Threads: 11
Likes Received: 21 in 16 posts
Likes Given: 22
Joined: Apr 2015
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.
•
Posts: 170
Threads: 3
Likes Received: 132 in 73 posts
Likes Given: 40
Joined: Jul 2020
(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!
•
Posts: 4,223
Threads: 365
Likes Received: 2,347 in 1,545 posts
Likes Given: 1,347
Joined: Jun 2018
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
•
Posts: 170
Threads: 3
Likes Received: 132 in 73 posts
Likes Given: 40
Joined: Jul 2020
(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.
•
Posts: 79
Threads: 11
Likes Received: 21 in 16 posts
Likes Given: 22
Joined: Apr 2015
02-08-2021, 09:42 AM
(This post was last modified: 02-08-2021, 09:44 AM by Turkish.
Edit Reason: Typo
)
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)
•
Posts: 174
Threads: 17
Likes Received: 113 in 63 posts
Likes Given: 88
Joined: Aug 2019
02-08-2021, 11:01 AM
(This post was last modified: 02-08-2021, 11:02 AM by doom.)
(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]
•
|