Program to perform a Bubble Sort,
Program to change an expression in Infix notation to Postfix notation,
A program to perform an inserion sort.
Another main application of arrays is to represent matrices,
A program to perform matrix addition,
A program to perform matrix multiplication,
A program to display the transpose of a given matrix,
A sparse matrix is a matrix that contains mainly 0s,for instance,
1 0 0 0 0
0 0 0 0 1
0 0 1 0 0
0 0 0 0 0
0 0 0 0 0
is a sparse matrix.Representing all the elements of this matrix in memory is a waste of memory as almost all the elements are 0s.Therefore we just store the position of the non-zero elements as a matrix.A few programs for sparse matrices are shown below:
A program to store the non-zero elements of the sparse matrix as an array,
A program to obain the transpose of the array of non-zero elements and therefore obtain the transpose of the sparse matrix,
Arrays are also used to implement stacks and queues,heres how
A program to implement Queue using arrays,
A program to implement a Stack using arrays.
Click >> Here << for a detailed tutorial on arrays.