- Is a particular way to data organize in a computer to be used efficiently.
- Especially to management big data information as databases.
Is a sequence of elements in which the operation of insert (enqueue) is done at one end (back
) and the operation of extraction (dequeue) for the other (front
).
- Mode of access is FIFO -
First in, First out
- constructor
- enqueue
- dequeue
- getSize
- isEmpty
- peek
Is an ordered list of data which enables to save and get data
- Mode of access is LIFO -
Last in, First out
- constructor
- push
- pop
- getSize
- isEmpty
- peek
Is a linear collection
constituted by sequence of nodes
where they are stored data fields arbitrary and a reference of the next node.
- Node constructor
- LinkedList constructor
- add
- insertAt
- removeFrom
- removeElement
- isEmpty
- getSize
Is a structure of data, consisting of set of nodes sequentially linked
. Every node have two fields
, called links
, is reference of the next node
and previous node
- Node constructor
- LinkedList constructor
- addToHead
- addToTail
- insertAt
- removeFromHead
- removeFromTail
- removeData
- printReverse
- getSize
- isEmpty
The problem is to remove element of array, the array require passing indexation of all elements, and it is inefficient.
Copyright ยฉ 2017-present Oscar Amado ๐ง