C# Miscellaneous

Consider the following problem. You are given the maze figure below and asked to find a way to the exit with a minimum number of decisions to make (a decision is required whenever there is at least one available direction to go). At the right …

What is a graph ? The name may suggest something that has to do with graphics, which in a way is true but graphs are generally more than that. Their main use is at describing relationships between various entities in the real world. For example …

So you have just finished your program and you would like to see it at work. Usually you press a combination of keys to compile and run it. But what actually happens when you press those keys ? The compilation process translates your code from …

This article is a small game using graphics in c++ (DOS Based). I programmed this game and all of the graphics design are the creations of my friend Amit Mehta. “This is a simple game for new programmers. It will help them to get a …

I had the below problem with the Math.Round() function: Problem :   When I use the Math.Round Function it uses the Bankers Method. (ie., Round(5.5) = 5 and Round(5.50001) = 6). But when I use the Format String  “{0:F0}” it uses the proper Mathematical Method.(ie. …

Motivation Sometimes, while writing programs, we can get into situations when we need to measure execution times of various tasks. Each programming language provides some mechanism to retrieve the current time from the system. If we read and store the system time at various moments, …