An Algorithm is any well-defined computational procedure that takes some value or set of values as input and produces a set of values or some value as output. Thus algorithm is a sequence of computational steps that transforms the input into the output.

Divide and Conquer is one of the best-known general algorithm design technique,Given a function to compute on ‗n‘ inputs the divide-and-conquer strategy suggests splitting the inputs into ‗k‘ distinct subsets, 1

The n-queens problem is to place n queens on an n × n chessboard so that no two queens attack each other by being in the same row or in the same column or on the same diagonal.