Python Program to calculate the frequency of the character of the given string is given below. In this Program we used python dictionaries where key is the character of string and its value is the occurrence of that character in the given string.
First Come First Served (FCFS) is an Operating System process scheduling algorithm. It is non-preemptive in scheduling algorithm. Jobs are executed on first come, first serve basis. It is easy to understand and implement but poor in performance, as average wait time is high.
Breadth First Search (BFS) algorithm is used to traverse a graph in a breadth ward motion. BFS Algorithm use data structure queue to remember to get the next vertex to start the search and we will required an array to keep the track of vertex that it is visited or unvisited.
Python program for insertion node at any position in singly linked list is given below. In this program the class LinkedList contains a method insert which will insert the new element at the desired position the program along with output is given.
python program for the insertion and deletion operation at the beginning of singly linked list is given below. In this program we have two method. insert_at_beg() to insert the element in the beginning and delete_at_beg() to delete the element at the beginning of the linked list.