Data Structures Flashcards
is representation of the logical relationship existing between individual elements of data.
Data structure
is a way of organizing all data items that considers not only the elements stored but also their relationship to each other
Data structure
is a step by step procedure to solve
a particular function
algorithm
is a set of instructions written to carry out certain tasks & the data structure is the way of organizing the data with their logical relationship retained
algorithm
Data structure are normally divided into two broad categories
- Primitive Data Structure
- Non-Primitive Data Structure
What are examples of Primitive Data Structures?
Integer, Float, Character, Pointer
Two kinds of non-primitive Data Structures
Linear List, Non-Linear List
examples of Linear Lists include
Array, Link List, Stack, Queue
examples of Non-Linear Lists include
Graph, Trees
These are basic structures and directly operated upon by the machine instructions
Primitive Data Structure
derived from primitive structures, structured grouping of homogenous or heterogenous data items, sophisticated structuring and operations.
Non-primitive data structure
is generally a basic structure that is usually built into the language, such as an integer, a float
Primitive Data Structure
is built out of primitive data structures linked together in meaningful ways, such as a or a linked-list, binary search tree, AVL Tree, graph etc
Non-primitive data structure
Identify the Data Structure:
is defined as a set of finite number of
homogeneous elements or same data items, can contain one type of data only,
either all integer, all float-point number or all character
array
Identify the Data Structure:
the first element of this data structure has an index of [0] and its elemets are always stored consecutively in memory location
array