Blog Page 17

### C Program for Shortest Job First Scheduling Algorithm

Hey friends, today we gonna discuss how to write a C program for Shortest job first scheduling algorithm or Non Preemptive scheduling algorithm. The code you gonna see below takes number of processes and the process name,burst time and arrival time as input from  the user and then calculates the and then displays the Gantt chart for the same.   C...

### C Program to find palindrome of number

C Program to find palindrome of number : A palindrome is a word, phrase, number, or other sequence of units that may be read the same way in either direction. Let us consider some examples of palindrome strings or numbers, for example 12321, 1456541, hannah etc. Now let us see how we can write a C program to find palindrome...

### How to install Turbo C Compiler in Windows

Turbo C was an Integrated Development Environment and compiler for the C programming language from Borland. It was first introduced in 1987 and was noted for its integrated development environment, small size, extremely fast compile speed and comprehensive manuals.  Lets learn how to install turbo C compiler in windows In May 1990, Borland replaced Turbo C with Turbo C++. Here we...

### C program for Selection Sort Algorithm | C Code champs

C program for Selection Sort Algorithm: Selection sort basically determines the minimum (or maximum) of the list and swaps it with the element at the index where its supposed to be. The process is repeated such that the nth minimum (or maximum) element is swapped with the element at the n-1th index of the list. The below is an...

### C program of Bubble Sort Algorithm | C Code Champs

Bubble sorting is a simple sorting technique in sorting algorithm. In bubble sorting algorithm, we arrange the elements of the list by forming pairs of adjacent elements. It means we repeatedly step through the list which we want to sort, compare two items at a time and swap them if they are not in the right order. Another way...

### C code for Divisibility Algorithm using DFA | C code Champs

Deterministic Finite Automaton (DFA) can be used to check whether a number “num” is divisible by “k” or not. If the number is not divisible, remainder can also be obtained using DFA.  Lets  see how to write C code for Divisibility Algorithm using DFA. We consider the binary representation of ‘num’ and build a DFA with k states. The DFA...