General Discussions

# Software Karma

Originally posted on PH Bytes:
“Exploring Completeness in the Incompleteness” We would never buy a car if it has the engine missing or another part per say. Even if the manufacturer promised us to deliver by next six months, we would feel crazy and would not agree to it.  We would never purchase anything which…

Ebooks

# Production and Consumption – Market

The market is driven by producers and consumers based on the demand and supply. There is a demand from a consumer and those demands are fulfilled by the producers and so how the ends meet. However, market is about finding that right balance between that production and consumption (that need not be essentially called so).… Continue reading Production and Consumption – Market

algorithms

# 2’s Complement – C Program

We can obtain 2’s complement in atleast two ways through a C program. If n is a number then -n will give the result. The next approach is to first flip all the bits (1’s complement) and then add 1. The bits can be flipped using ~ operator. The program below demonstrates both the approaches.

General Discussions

# That Day of Machines

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? The line is thin. The… Continue reading That Day of Machines

algorithms

# Bubble, Selection and Insertion Sorts – C

This post presents the C program of three basic sorting techniques. Bubble Sort: Selection Sort: Insertion Sort:

General Discussions

# Human Problem Solving

Originally posted on PH Bytes:
The Process Machine solving should not be like a magic making process. Along with result, it is equally important to know the process by which the results were obtained. The thinking process of the machine must be like the way we humans do. The way humans have patterns in their…

algorithms

# Check if Number is Odd Using Bitwise – C

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     (1) ———– AND 000… Continue reading Check if Number is Odd Using Bitwise – C