C Program to Generate All Possible Subsets using Binary Counting Method

This is a C Program to implement binary counting method to generate subset of a set. This program generates all subsets of given set of numbers using binary counting method Here is source code of the C Program to Implement the Binary Counting Method to Generate Subsets of a Set. The C program is successfully … Read more

advertisement

C program to display all possible permutations of numbers from 1 to n using Alexander Bogomolyn’s unordered permutation algorithm

This C program implements Alexander Bogomolyn’s unordered permutation algorithm to find all permutations of numbers from 1 to n. Here is the source code of the C program to display all possible permutations of numbers from 1 to n using Alexander Bogomolyn’s unordered permutation algorithm. The C program is successfully compiled and run on a … Read more

advertisement

C Program to Generate Random Partition from Given Set

This is a C Program to perform partitioning at random index and generate two sets for given set of numbers or characters Here is source code of the C Program to Generate Random Partition out of a Given Set of Numbers or Characters. The C program is successfully compiled and run on a Linux system. … Read more

advertisement

C Program to Generate All Possible Subsets using Lexicographic Order

This is a C Program to generate all subsets of a given set in the Lexico Graphic Order. This program generates all permutation of n elements in lexicographic order, where n = 5. Here is source code of the C Program to Generate All Subsets of a Given Set in the Lexico Graphic Order. The … Read more

advertisement

C Program to Find kth Smallest Element in Array using Partitioning

This is a C Program to find kth smallest element by method of partitioning. The same partitioning function which is used for Quicksort algorithm can be used. Here is source code of the C Program to Find kth Smallest Element by the Method of Partitioning the Array. The C program is successfully compiled and run … Read more

advertisement

C Program to Generate All Possible Subsets

This is a C Program to generate all possible subsets with exactly K elements in each subset. Generate a permutation and include only k elements in subset. Here is source code of the C Program to Generate All Possible Subsets with Exactly k Elements in Each Subset. The C program is successfully compiled and run … Read more

advertisement

C Program to Find the Mode of a Data Set

This is a C Program to find the mode in a data set. The mode in statistics returns the highest frequency appearing element. If two or more values are same as the highest appearing, the set can be said to be bimodal or multimodal. Here is source code of the C Program to Find the … Read more

advertisement

C Program to Find the Number of Ways to Write a Number as the Sum of Numbers Smaller than Itself

This is a C Program to find the number of ways to write a number as the sum of numbers smaller than itself. We print all partition in sorted order and numbers within a partition are also printed in sorted order (as shown in the above examples). The idea is to get next partition using … Read more

advertisement

C Program to Generate All Possible Subsets using Gray Code Order

This is a C Program to generate all subsets of given set of numbers using gray code order. The reflected binary code, also known as Gray code after Frank Gray, is a binary numeral system where two successive values differ in only one bit (binary digit). The reflected binary code was originally designed to prevent … Read more

advertisement

C Program to Perform Integer Partition for a Specific Case

This C program perform integer partition for a specific case. This algorithm partitions an integer into numbers which sum up to form the original number. Here is the source code of the C program to perform integer partition. The C program is successfully compiled and run on a Linux system. The program output is also … 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 & technical discussions at Telegram SanfoundryClasses.