Monday, March 18, 2019
Artificial Intelligence Programming Assignment :: Essays Papers
Artificial Intelligence Programming identificationProblem StatementsEight-Queens PuzzleIs it possible to place eight Queens on a chessboard, so that none of the Queens occupy the same row, column, or diagonal?Binary SearchDepth-First & Breadth-First SearchNewtons modeTake a count whose square root is to be calculated, all dogmatic number.Take a mean at the numbers square root.Calculate the square root by improving on the original guess as indicatedNext guess = (number/ on-line(prenominal) guess + current guess)/ 2Repeat this process until the difference between the close guess and the current is within the accepted level of accuracy. The better your guess, the less the number of iterations needed to get the square root. A good first-class honours degree guess is typically half the number whose square root is to be calculated. The process is ten repeated until the sought after accuracy is achieved.Newton-Raphson Method peg down a root of the equation f(x) = x3-x2-9x+9 = 0 apply the Newton-Raphson method if the initial guess is x1 = 1.5.Gauss-Siedel Method Solve the following check off of linear simultaneous equations using the Gauss-Seidel method10x1 + 2x2 + 3x3 = 11 X1 + 5x2 + 2x3 = 20 3x1 + 2x2 + 6x3 = -12 a priori SolutionsEight-Queens Puzzle1.Pick a position for the Queen2.If legal, go to adjoining row.3.If illegal, pick the next position.4.If no legal position is found, back up to one row.If legal positions are found for all eight rows, the conundrum is solved.Binary SearchSearch the current node value to stop if it equals the search value.If the search value is smaller than the current value, make the current node the left(p) child node.Make the current node the reform child node.Depth-First & Breadth-First SearchDepth-First Search Searches as far down the left side of the binary tree.When it encounters, NULL, the search switches to the bottom-most right child and resumes.Breadth-First Search score a node from the que ue. This becomes the current node.Place all child nodes of the current node onto the queue.Newtons MethodGet a positive number whose square root is to be calculated from the user.Get the desired precision.While more numbers remain, calculate firs guess, x0.RepeatXn = 0.5 * (X (n-1) + Number/ X (n-1))Until abs (Xn - X (n 1)) *= Desired precisionGet a positive number whose square root is to be calculated from the user.Get the desired precision. depot whileNewton-Raphson Method1.Set number of iterations num_iter to zero.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment