nelle martina

Greenhorn

Posts: 4

posted 7 months ago

I'm so sorry if this is in the wrong area!!!

Now I don't necessarily need the exact answer, but where I could possibly find help in getting an answer or understanding correctly. I kinda need or want to know how to use data structures to model/build complex sets of data.. basically in the beginners dumbest terms ever...

please don't judge! It's taking awhile to get my head around it and I overthink everything!

Thanks heaps

Now I don't necessarily need the exact answer, but where I could possibly find help in getting an answer or understanding correctly. I kinda need or want to know how to use data structures to model/build complex sets of data.. basically in the beginners dumbest terms ever...

please don't judge! It's taking awhile to get my head around it and I overthink everything!

Thanks heaps

posted 7 months ago

Welcome to the Ranch.

Your question is very general, so it's hard to give a specific and clear answer.

A place to start would be to learn about the standard Java collection classes (lists, maps and sets). Have a look at the Collections Trail in Oracle's Java Tutorials.

Your question is very general, so it's hard to give a specific and clear answer.

A place to start would be to learn about the standard Java collection classes (lists, maps and sets). Have a look at the Collections Trail in Oracle's Java Tutorials.

posted 7 months ago

I've found that when I need something like a data structure that doesn't fit into the List/Map/array mold, I use a class. However, you can build Lists of Lists or Maps of Maps, etc., easily.

Of course you can mix and match List, Map, and your own custom classes all you want.

Of course you can mix and match List, Map, and your own custom classes all you want.

All things are lawful, but not all things are profitable.

posted 7 months ago

As Jesper said, this is a very general question. I would even go further and guess this is probably based on a homework question that goes something like, "How do you use data structures to model/build complex sets of data?"

If I'm right about this being homework and the question being posed that way, I suggest you go back over your course notes, book(s), and/or lectures and look there for the answer your instructor is expecting you to give. Even if we give you reasonable answers here, there's a good chance they are not what your instructor expects, especially if they don't align with anything that was given in the course notes, books, and/or lectures. You might even fall under suspicion of trying to cheat if you get ideas for answers here that are perfectly reasonable but don't match what was taught to you in class.

nelle martina wrote:Now I don't necessarily need the exact answer, but where I could possibly find help in getting an answer or understanding correctly. I kinda need or want to know how to use data structures to model/build complex sets of data.. basically in the beginners dumbest terms ever...

As Jesper said, this is a very general question. I would even go further and guess this is probably based on a homework question that goes something like, "How do you use data structures to model/build complex sets of data?"

If I'm right about this being homework and the question being posed that way, I suggest you go back over your course notes, book(s), and/or lectures and look there for the answer your instructor is expecting you to give. Even if we give you reasonable answers here, there's a good chance they are not what your instructor expects, especially if they don't align with anything that was given in the course notes, books, and/or lectures. You might even fall under suspicion of trying to cheat if you get ideas for answers here that are perfectly reasonable but don't match what was taught to you in class.

*Practice only makes habit, only perfect practice makes perfect.
Practice mindfully by doing the right things and doing things right.*— Junilu

[How to Ask Questions] [How to Answer Questions]

nelle martina

Greenhorn

Posts: 4

posted 7 months ago

Often times, the answer doesn't just jump right out at you from your notes. The explicit things that are in your notes/books/lectures might simply suggest what the answer to the question is and you have to put two and two together, using critical thinking, to deduce or infer the answer your professor is expecting.

Can you at least tell us some of the main points you've learned so far about data structures and how they related to data? With that, maybe we can get a better idea of what you

Can you at least tell us some of the main points you've learned so far about data structures and how they related to data? With that, maybe we can get a better idea of what you

*have*gone over in class and in that way, see how we can help you find the answer you're expected to give.*Practice only makes habit, only perfect practice makes perfect.
Practice mindfully by doing the right things and doing things right.*— Junilu

[How to Ask Questions] [How to Answer Questions]

nelle martina

Greenhorn

Posts: 4

posted 7 months ago

It basically gives a list of data structures (5) and then on this project it tells us we need to research it and the example is Dijkstra's algorithm. So.. how you can use an advanced data structure to model dijkstra's algorithm.. For a beginner, it's confusing, but i'm sure as hell not giving up, yet! haha

So, I'll just keep researching, but thank you for answering me! I really appreciate it.

So, I'll just keep researching, but thank you for answering me! I really appreciate it.

Campbell Ritchie

Marshal

Posts: 56536

172

posted 7 months ago

I suggest you start by reading about those five data structures; Wikipedia might be good. You can download Wirth's algorithms book free of charge and that might help. There are lots of University department websites with such information on. The same technique will probably give you details of Dijkstra's algorithm; I have forgotten what it is. Once you have found the details of the data structures, draw diagrams representing their structure; I think that will help you envisage and understand them.