The goal of the program is to make a sparse matrix using circularly linked lists. basically its a matix what only has values at the locations entered, and the rest of the lactions are not defined. the question i have is the logic for the code. how would i go about traversing and adding elements to the list with out defining the elements i dont want to define, as well as linking it to the other horizontal/vertical components
jamesmadison43
0
Newbie Poster
Recommended Answers
Jump to PostFirst think about what a matrix is: an ordered series of rows. This may seem obvious, but it makes it simple to take those rows and make one very long row (you just have to remember that every 'x' values is a new row). This structure could easily be converted …
Jump to PostThe idea from jalpesh_007 is fine, but the idea from dmanw100 is better. The reason is that the idea of dmanw100 requires less space and time to traversal through the list. However, it also requires more caution in insertion/removal. For now, you may follow jalpesh_007 idea. For more advance (in …
All 6 Replies
dmanw100
36
Posting Whiz in Training
jalpesh_007
-3
Newbie Poster
JamesCherrill
commented:
Explains solution without spoon-feeding
+14
jamesmadison43
0
Newbie Poster
jalpesh_007
-3
Newbie Poster
Taywin
312
Posting Virtuoso
jalpesh_007
-3
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.