Algorithm

Difference between Preemptive and Non-Preemptive Scheduling in OS

Here you will learn about difference between preemptive and non-preemptive scheduling in os. Preemptive Scheduling Preemptive Scheduling means once a process started its execution, the currently running process can be paused for a short period of time to handle some other process of higher priority, it means we can preempt the control of CPU from …

Difference between Preemptive and Non-Preemptive Scheduling in OS Read More »

Hamming Code in C and C++

Here you will get program for hamming code in C and C++. Hamming code is a popular error detection and error correction method in data communication. Hamming code can only detect 2 bit error and correct a single bit error which means it is unable to correct burst errors if may occur while transmission of …

Hamming Code in C and C++ Read More »

Bucket Sort in C and C++

Here you will get program for bucket sort in C and C++. In bucket sort algorithm the array elements are distributed into a number of buckets. Then each bucket sorted individually either using any other sorting algorithm or by recursively applying bucket sort. Take example shown in below image. Elements are distributed among buckets Then, …

Bucket Sort in C and C++ Read More »

Checksum Program in C and C++

Here you will get checksum program in C and C++. A checksum is a error detection method in Data Communication. It is used for errors which may have been introduced during transmission or storage. It is usually applied to an installation file after it is received from the download server. The actual procedure which yields …

Checksum Program in C and C++ Read More »