General Discussions

A Programmatic Look Around

Look around. Look around for what you see. Look for the same in what you will do. Let’s dissect the parts for what we look and what we should look for. What we look is for the surrounding and what we should look for is for the programming languages. We see quite a variety of… Continue reading A Programmatic Look Around

General Discussions

Inventory DS

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 DS

General Discussions

Iteration and Recursion

Iteration is the act of repeating a process with the aim of approaching a desired result. The result of one iteration, mostly, goes as input to next iteration. It is repetition of block of statements in a computer program to carry out a task. Recursion can be defined by two properties: It has a simple… Continue reading Iteration and Recursion

C Codes

Printing 1 to N in Binary Using Queue

One of the popular interview question asked on queue data structure: Write a program to print the numbers from 1 to N in Binary Representation using QUEUE data structure. Example: Input: N = 3 Output: 1, 10, 11 Input: N= 5 Output: 1, 10, 11, 100, 101 Code will follow the following Logic: Initialize queue… Continue reading Printing 1 to N in Binary Using Queue

General Discussions

XEN – SEDF and Credit Schedulers

Originally posted on PH Bytes:
This post gives the brief of two schedulers present in Xen. Credit Scheduler Credit scheduler has three states: OVER – gone over the credit allocation UNDER – credits remaining BOOST – to achieve low I/O response latency When sum of the credits for all of the domains go negative all…

General Discussions

Storytelling and Programming

Story telling is an art. Essentially, every plot is a collection of emotions. Conflicts build curiosity. There are some constraints. Some factors, some environment, some of characters, all working towards the end goal, which in most case is – ‘happily ever after’. With programming now being and becoming a household thing, is no lesser than… Continue reading Storytelling and Programming