This
week the lectures was about the idea of linked lists and it uses. The idea of
linked lists are quite literal in which we can imagine an arrow. It consists of
a head and tail in which the tail represents the last list created and or
source, compared to the head in which it points to the next potential list in a
series of list. This series is called a linked list.
Linked
lists is used to provide an organized way to provide a logical list of variable
or collections, meaningful to the programmer. For example consider the addition
or subtraction of a polynomial, one might find it useful to separate the terms
through linked lists and then use the linked list structure to manipulate the terms
to perform the mathematical arithmetic.
Personally,
I don’t find linked lists particularly useful for organizing a series of data.
I find using binary trees to be easier and more efficient compared to linked
lists. So it is highly unlikely that I will make use of linked lists when
programming unless it is absolutely require for an assignment and or problem explicitly
calls for the need to implement linked lists.
No comments:
Post a Comment