problems (1,286)


math - Solving a linear equation

math - Solving a linear equation

I need to programmatically solve a system of linear equations in C, Objective C, or(if needed) C++. Here's an example of the equations:-44.3940=a*50.0+b*37.0+tx-45.3049=a*43.0+b*39.0+tx-44.9594=a*52.0…


algorithm - Big O, how do you calculate/approximate it?

Most people with a degree in CS will certainly know what Big O stands for.It helps us to measure how(in)efficient an algorithm really is and if you know in what category the problem you are trying to…


math - What does the term “BODMAS” mean?

What is BODMAS and why is it useful in programming?…


Unit tests for deep cloning

Let's say I have a complex.NET class, with lots of arrays and other class object members. I need to be able to generate a deep clone of this object-so I write a Clone() method, and implement it w…


sql - Good Resources for Relational Database Design

I'm looking for a book/site/tutorial on best practices for relational database design, tuning for performance etc. It turns out this kind of resource is a bit difficult to find; there's a lot of "her…


Can you share your secrets or best practices for Problem Solving?

I heard that Kent Beck who leads XP used so many color pencils to stimulate his brain when he needed to solve the problem. I tried Kent's method and it really worked for me. I don't know why. Do you…


windows vista - Which Vista edition is the best for developer machine?

Microsoft says that Visual Studio 2008 can be installed on any version of Vista(excluding started edition). But I am not sure, if Home Editions cause not problems with debugging, virtual machines, I…


Are foreign keys really necessary in a database design?

As far as I know, foreign keys(FK) are used to aid the programmer to manipulate data in the correct way. Suppose a programmer is actually doing this in the right manner already, then do we really need…


performance - Is there some way to speed up recursion by remembering child nodes?

For example, Look at the code that calculates the n-th Fibonacci number: fib(int n){if(n==0 || n==1) return 1; return fib(n-1)+fib(n-2);}The problem with this code is that it w…


c# - How costly is.NET reflection?

I constantly hear how bad reflection is to use. While I generally avoid reflection and rarely find situations where it is impossible to solve my problem without it, I was wondering... For those who ha…





how and with example java for not practice examples pdf