Linear Data Structures: Primitive vs. Non Primitive
Linear Data Structures: Primitive vs. Non Primitive
NON PRIMITIVE
Strings
Stack
Queue
Lists
LINKED LIST
Basic Operations
Following are the basic operations supported by a list.
Insertion − Adds an element at the beginning of
the list.
Deletion − Deletes an element at the beginning of
the list.
Display − Displays the complete list.
Search − Searches an element using the given
key.
Delete − Deletes an element using the given key.
Stack
- is a container of objects that are inserted and
removed according to the last-in-first-out (LIFO)
principle.
removing an item.
TRIE
A Trie is a special data structure used
to store strings that can be visualized
like a graph. It consists of nodes and
edges. Each node consists of at max 26
children and edges connect each parent
node to its children. ... Actually, Tries
are generally used on groups of strings,
rather than a single string.
Other Data Structures:
HashMap, Graph, Matrix