Ebooks

Structures and C – Ebook

Understanding ‘structures’ has given stunning buildings and architectural wonders. Understanding ‘structures’ has explained us how to visualize the universe and the planetary system. Understanding ‘structures’ has given out patterns and designs. Structures have made the study easy and involving. Understanding ‘structures’ will also make you a better programmer. Though we are referring to different structures… Continue reading Structures and C – Ebook

Ebooks

Design of a Programmer – Ebook

There are rules. There sure are rules. But no one is going to tell you those! They aren’t told because everyone makes their own and its one of its kind. The question is how do I make my own rules to be a better programmer? Is it possible? The answer is yes and hence is… Continue reading Design of a Programmer – Ebook

General Discussions

Keylink Data Structure

We often encounter projects and experiments where keywords are associated to the web links. For each of those keywords present in the list, one or more links are collected to gather and process the data related to it. Keylink data structure maintains a web link to every keyword present in the list. The number of… Continue reading Keylink Data Structure

General Discussions

Inventory Data Structure

Inventory data structure is a makeover of a matrix data structure. Often we encounter tasks where we have keywords and their associated properties. Consider like we have 5 items and each item has associated 10 properties, we want to put them in a table and then perform some operations on it.  A matrix is too… Continue reading Inventory Data Structure

General Discussions

Generate Permutations – Decrease and Conquer

Originally posted on PH Bytes:
Uses the definition of n! to generate the permutations. Idea: Remove each item from the given n items one at a time and append it to remaining (n-1)! permutations. Efficiency: O(n!) and as well we have expensive swaps Strategy used: Decrease and Conquer(decrease by 1) #include #include // Global n…

General Discussions

Check if Number is Odd Using Bitwise – C

Originally posted on PH Bytes:
An odd number always has the LSB set to 1. If we AND the given number with 1, the even number will always turn out to be zero. We can using this to check if the number is odd or even. Examples: 1) n = 4 100     (4) 001 …

General Discussions

Life and Technology

Originally posted on Its PH:
This post is written for the Indispire Edition Number 118. Here is the supplied prompt: Three significant and immensely necessary skillful values you want to impart to your kids or the next generation to sustain in this world. #Values Here are the three Skillful values for the kids of upcoming…

C Codes

Generate Permutations – Decrease and Conquer

Uses the definition of n! to generate the permutations. Idea: Remove each item from the given n items one at a time and append it to remaining (n-1)! permutations. Efficiency: O(n!) and as well we have expensive swaps Strategy used: Decrease and Conquer(decrease by 1)