Selection Sort Program in C

What is Selection Sort in C? Selection sort is a sorting algorithm in C that works by dividing an array into two parts: the sorted part and the unsorted part. Initially, the sorted part is empty, while the unsorted part contains all the elements. The algorithm repeatedly finds the smallest element from the unsorted part … Read more

advertisement

C Program to Sort an Array using Randomized Quick Sort Technique

This C program sorts a given array of integer numbers using randomized Quick sort technique. It is comparison sort which works on divide and conquer technique. It is in-place partitioning algorithm and one of the fastest sorting techniques available till date. Average Time Complexity of this algorithm is O(nlog(n)). Here is the source code of … Read more

advertisement

C program to Sort Integers using Quick Sort Technique

This C program sorts a given array of integer numbers using Quick Sort technique. It is comparison sort which works on divide and conquer technique. It is in-place partitioning algorithm and one of the fastest sorting techniques available till date. Average Time Complexity of this algorithm is O(nlog(n)). Increase the value of MAX to generate … Read more

advertisement

C Program to Implement Bubble Sort

What is Bubble Sort? Bubble Sort in C is a simple sorting algorithm that works by repeatedly stepping through the list to be sorted, comparing each pair of adjacent items, and swapping them if they are in the wrong order. Bubble sort technique is used to sort an array of values in increasing or decreasing … Read more

advertisement

Bucket Sort in C

Problem Description Write a program to implement Bucket Sort in C. What is Bucket Sort? In the bucket sort algorithm, we will create multiple small groups containing a range of elements (called buckets). Then these groups are back joined again and the sorted array is formed. This method is also known as the “scatter and … Read more

advertisement

C Program to Sort the String by Removing Whitespaces and Duplicates

This C Program sort string ignoring whitespaces and repeating characters only once. Here is source code of the C Program to sort string ignoring whitespaces and repeating characters only once. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C Program to sort string … Read more

advertisement

C Program to Perform Shell Sort without using Recursion

This C Program Performs Shell Sort without using Recursion. Here is source code of the C Program to Perform Shell Sort without using Recursion. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C Program to Perform Shell Sort without using Recursion */#include <stdio.h>#define size … Read more

advertisement

C Program to Implement BogoSort

This C Program Implements BogoSort in an Integer Array. Here is source code of the C Program to Implement BogoSort in an Integer Array. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C Program to Implement BogoSort in an Integer Array */#include <stdio.h>#include <stdlib.h> #define … Read more

advertisement

C Program to Sort Word in String

This C Program Sort Word in String. Here is source code of the C Program to Sort Word in String. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C Program to Sort Word in String */#include <stdio.h>#include <string.h> void main(){ int count = 0, c … Read more

advertisement

C Program to Implement Pancake Sort

This C Program Implements Pancake Sort on Array of Integers.Pancake sorting is a variation of the sorting problem in which the only allowed operation is to reverse the elements of some prefix of the sequence. Here is source code of the C Program to Implement Pancake Sort on Array of Integers. The C program is … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.