Quantcast
Channel: Algorithm – The Crazy Programmer
Browsing all 56 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Depth First Search (DFS) Program in C

In this tutorial you will learn about Depth First Search (DFS) program in C with algorithm. Most of graph problems involve traversal of a graph. Traversal of a graph means visiting each node and...

View Article


Image may be NSFW.
Clik here to view.

C Program for Shortest Job First (SJF) Scheduling Algorithm

Here you will get C program for shortest job first (sjf) scheduling algorithm.   In shortest job first scheduling algorithm, the processor selects the waiting process with the smallest execution time...

View Article


Image may be NSFW.
Clik here to view.

Huffman Coding Algorithm With Example

Huffman coding algorithm was invented by David Huffman in 1952. It is an algorithm which works with integer length codes. A Huffman tree represents Huffman codes for the character that might appear in...

View Article

Image may be NSFW.
Clik here to view.

C/C++ Program for First Come First Served (FCFS) Scheduling Algorithm

Here you will get C/C++ program for first come first served (fcfs) scheduling algorithm. What is First Come First Served (FCFS) Scheduling Algorithm? First Come First Served (FCFS) is a Non-Preemptive...

View Article

Image may be NSFW.
Clik here to view.

C/C++ Program for Priority Scheduling Algorithm

Here you will get C and C++ program for priority scheduling algorithm. What is Priority Scheduling Algorithm? In priority scheduling algorithm each process has a priority associated with it and as...

View Article


Image may be NSFW.
Clik here to view.

Selection Sort in C & C++ – Program & Algorithm

In this tutorial I will explain about algorithm for selection sort in C and C++ using program example.    One of the simplest techniques is a selection sort. As the name suggests, selection sort is...

View Article

Image may be NSFW.
Clik here to view.

Insertion Sort in C & C++ – Program & Algorithm

In this tutorial I will explain about algorithm for insertion sort in C and C++ using program example. The insertion sort inserts each element in proper place. The strategy behind the insertion sort...

View Article

Image may be NSFW.
Clik here to view.

C Program for N Queens Problem Using Backtracking

N Queens Problem is a famous puzzle in which n-queens are to be placed on a nxn chess board such that no two queens are in the same row, column or diagonal. In this tutorial I am sharing the C program...

View Article


Image may be NSFW.
Clik here to view.

C Program for Longest Common Subsequence Problem

In this post I am sharing C program for Longest Common Subsequence Problem. LCS problem is a dynamic programming approach in which we find the longest subsequence which is common in between two given...

View Article


Image may be NSFW.
Clik here to view.

Round Robin Scheduling Program in C

In this tutorial you will learn about round robin scheduling program in C. Process scheduling is an important component for process management. In a multi-user and a time-sharing system, response time...

View Article

Image may be NSFW.
Clik here to view.

Banker’s Algorithm in C

Here you will get program for banker’s algorithm in C. The banker’s algorithm  which is also known as avoidance algorithm is a deadlock detection algorithm. It was developed by Edsger Dijkstra. It is...

View Article

Image may be NSFW.
Clik here to view.

Counting Sort in C

Here you will learn about counting sort in C   Counting sort algorithm is a sorting algorithm which do not involve comparison between elements of an array. In this tutorial I am sharing counting sort...

View Article

Image may be NSFW.
Clik here to view.

Producer Consumer Problem in C

Here you will learn about producer consumer problem in C. Producer consumer problem is also known as bounded buffer problem. In this problem we have two processes, producer and consumer, who share a...

View Article


LRU Page Replacement Algorithm in C

Here you will get program for lru page replacement algorithm in C. Least Recently Used (LRU) page replacement algorithm works on the concept that the pages that are heavily used in previous...

View Article

Optimal Page Replacement Algorithm in C

Here you will get program for optimal page replacement algorithm in C. Optimal page replacement algorithm says that if page fault occurs then that page should be removed that will not be used for...

View Article


Image may be NSFW.
Clik here to view.

Caesar Cipher in C and C++ [Encryption & Decryption]

Get program for caesar cipher in C and C++ for encryption and decryption. What is Caesar Cipher? It is one of the simplest encryption technique in which each character in plain text is replaced by a...

View Article

Image may be NSFW.
Clik here to view.

Best Fit Algorithm in C and C++

Here you will learn about best fit algorithm in C and C++ with program example. Memory Management is one of the services provided by OS which is needed for Optimized memory usage of the available...

View Article


Image may be NSFW.
Clik here to view.

First Fit Algorithm in C and C++

Here you will learn about first fit algorithm in C and C++ with program examples. There are various memory management schemes in operating system like first fit, best fit and worst fit. In this section...

View Article

Image may be NSFW.
Clik here to view.

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...

View Article

Image may be NSFW.
Clik here to view.

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...

View Article
Browsing all 56 articles
Browse latest View live