-
Confused!may u tell me the difference?!
Hello everyone!!!
i just need someone to tell me wut is the cursor linked list implementation?
wut the use of it ? and wut does it differ from the normal static array and linked lists ?!?!?!?!?!? :( when is it better to be used ??
thanks a bunch:D
-
Can you explain more about what you are referring to as a "cursor linked list"? Is the "cursor" in the name just an indication that you use a cursor (like an iterator) to move through the linked list?
-
yea.. well we have to work on a project using cursor linked lists implemtation.. it is like a linked lists but without using pointers ?!?! and actually i didn't know wut the use of it wut is the mechanism of it!!?
-
The general benefit of a linked list is that you do not need to know the size of the linked list at declaration time, the way you do with an array. The linked list has just the amount of storage that you need - nothing wasted. Most importantly, it is easier to remove from or add elements to a list.
-
you can use a large array from *somewhere* (static array, pointer, vector, whatever) as your memory and poke your linked list nodes into this memory region. A vector is ideal as you can allocate more memory if you run out. The rest of the linked list remains the same. This does some things for you
1) your memory is sequential, so when you use the list, you have fewer page faults (these create sluggish program performance)
2) your list is more efficient because it is not creating/destroying memory all the time
3) you do not have the dangers of "pointers gone wrong" in your code (usually only a problem for novice programmers, but why add trouble spots when you do not need to?)
4) you can go behind the list's back for searching etc (use the base container's memory in a faster algorithm or loop instead of all the pointer hopping)
-
yeeep yeep i got it now:D.. thank u so much!
Similar Threads
-
By syedwna in forum ASP.NET
Replies: 0
Last Post: 02-05-2007, 01:03 AM
-
By Narto in forum VB Classic
Replies: 2
Last Post: 09-25-2001, 06:59 PM
-
By nmtechie in forum Java
Replies: 1
Last Post: 06-26-2001, 01:06 PM
-
Replies: 0
Last Post: 05-02-2001, 12:13 AM
-
Replies: 2
Last Post: 10-12-2000, 06:41 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks