This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

link list

Hello everyone,
I am studying link list in c
I have a project in which I have lookup table of rpm (clocks used to load the timer used for motor).
This rpm table, I am taking in an array
Now I want to implement a link list which will access the rpm from table and load it to timer of clock used for running the motor
Is it possible
Because as I am studying the link list, in that it is mentioned that link list is used instead of array
Is it possible to access an array elements using link list ?
If yes, then pls suggest me some link for it
Correct me if I am wrong
Thank u all

Parents
  • But my point: "Efficient for finding random data" does mean efficient for the processor.

    But my point: "Efficient for finding spatially related data" does mean efficient for the processor.

    But my point: "Efficient for inserting data" does mean efficient for the processor.

    But my point: "Efficient for removing data" does mean efficient for the processor.

    But my point: "Efficient memory usage" does mean efficient for the processor.

    But my point: "Efficient to sort" does mean efficient for the processor.

    all correct IF a linked list is the right choice to what the OP is doing". What you mention can, when using the '51 architecture in many cases be done much more effcient with an array of pointers. Since we do not know what the OP is dealing with, I include a part of my previous post
    By the way, this brings up a different issue, where so many posts fail to state "what for".

    so, we are discussing different approaches - which is fine - however which is the best depend on the (OPs) application.

    Erik

Reply
  • But my point: "Efficient for finding random data" does mean efficient for the processor.

    But my point: "Efficient for finding spatially related data" does mean efficient for the processor.

    But my point: "Efficient for inserting data" does mean efficient for the processor.

    But my point: "Efficient for removing data" does mean efficient for the processor.

    But my point: "Efficient memory usage" does mean efficient for the processor.

    But my point: "Efficient to sort" does mean efficient for the processor.

    all correct IF a linked list is the right choice to what the OP is doing". What you mention can, when using the '51 architecture in many cases be done much more effcient with an array of pointers. Since we do not know what the OP is dealing with, I include a part of my previous post
    By the way, this brings up a different issue, where so many posts fail to state "what for".

    so, we are discussing different approaches - which is fine - however which is the best depend on the (OPs) application.

    Erik

Children
No data