BACKTRACKING 8 QUEENS
Design an algorithm for 8 queens problem using Backtracking.
Backtracking is a general algorithm for finding all solutions to some computational
problem. It is a important tool for
Unit - 2
2.1 EXCHANGING THE VALUES OF TWO VARIABLES
Design an algorithm to exchange the values of two given variables a and b.
Let us assume the initial values are a=20, b=10.
This means th
UNIT - III
Write an algorithm to find out square root of a given number n.
2*2 = 4
3*3 = 9
4*4 = 16
It shows that
m*m = n;
We dont know the value of square root of n. so
UNIT - IV
ARRAY ORDER REVERSAL
Design an algorithm to reverse the order of an array of numbers
Here we observe from our diagram is that the first element ends up in the last posi
PROBLEM SOLVING TECHNIQUES
Steps Involved in Computer Programming
What is Program?
A program is a set of instructions written by a programmer. The program contains detailed
instructions and complete procedures for perform