General Discussions

Interesting ways to learn Programing

Originally posted on PH Bytes:
So the idea is to accumulate like a cumulative frequency. Put down the roots of programming and branch out with every new language while the trunk remains the same and strong! So, you have three parts. Root, Branches and Trunk. For the Roots part, I would suggest you to read…

General Discussions

Multiples of 8

Originally posted on PH Bytes:
To check if the number is multiple of 8, the bitwise way is that: first right shift by 3 and then left shift by 3. Multiple of 8 will remain the same as original number after this operation. Examples: 8:        1000 >> 3 :  0001 <<3  : …

General Discussions

Floyd’s Algorithm – C Implementation

All pair shortest path algorithm (Floyd) , C implementation is below. Also available in Github here.

General Discussions

Count Set Bits

Originally posted on PH Bytes:
C Program to count the set bits: #include int main() { int n = 15; int bits = 0; while(n) { bits = bits + 1; n = n & n-1; } printf(“The number of set bits are %dn”, bits); return 0; }

General Discussions

A Machine Message

Originally posted on PH Bytes:
PH Bytes View original post

Ebooks

The Web Circular – Ebook

It’s kind of a Notice. Like a note given to web and web enthusiasts. The book presents a very brief history of evolution and as well predicts a few things that could deliver an obligatory friendly web in the future. The book is divided into two parts. ‘Part A: The Evolution’ presents the history and… Continue reading The Web Circular – Ebook

General Discussions

That Day of Machines

Originally posted on PH Bytes:
The day stands ahead. That day, where it would be difficult to judge on who deceived us. Was it a machine or a man? Was it a machine who said it was a man and deceived us OR was it a man who behaved like a machine and deceived us?…