Algorithm to find the frequency of each element of an array Input the array elements. Create another array to store the frequency of elements. Traverse the input array and update the count of the elements in the frequency array. Print the frequency array which displays the frequency of all the elements of the array.