• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Quick question for a CS Major

CaptainKahuna

Platinum Member
My teacher asked us to think about between classes:

In what circumstances would you implement the List abstract data type using a.) linked lists or b.) cursors?

I can't seem to figure out what would be the difference. Would it be that linked lists take less memory?

Yes, this is homework, but it's not for a grade, I'd really like to at least understand this before class.
 
One makes photospectralized algorithms perform more efficiently, especially in the case of an unpointered matrix of null references.
 
Originally posted by: mercanucaribe
One makes photospectralized algorithms perform more efficiently, especially in the case of an unpointered matrix of null references.

Thanks for getting the obligatory rediculous answer out of the way.

Now maybe someone can give some real advice.
 
wouldn't cursors be preferable if you don't want to iterate through a list object to find something?

I mean cursors would be good for large data storage right, since it is just a flat file with a delimiter, while a list is an object which would take up a lot of virtual memory if it grew to the size of a flat file database.

**EDIT**
This is just a guess BTW. Both algorithmically iterate through a list, but a cursor is stored in a file, while the list is an object created by the application.
 
DaShen,

Thanks for the well thought out response, I appreciate it. I guess that does make sense, that a linked list would have to be created in memory in it's entirety at run time, whereas the cursor based list could be stored in a file and read from disk as needed (in portions).

Thanks!
 
Originally posted by: Cooler
I use link lists all the time they are my other array.

They definitely are good for applications and efficiency, but when storing large datasets, cursors are probably better.
 
Back
Top