Prolog sudoku

Assignment Help Basic Computer Science
Reference no: EM13766994

prolog sudoku

Write a Prolog program to solve the 6 by 6 Sudoku puzzle distributed in class. Do not use a solution downloaded from the Internet or elsewhere. Write your own. It should be designed along these lines: Label the squares X1, X2, ..., X36 as discussed in class. The X1,..., X36 represent the 36 squares in the Sudoku puzzle (row by row). Set the known values of the X's and then generate needed permutations and test for compliance with problem constraints. Your query should be
sudoku (X1,X2,X3,X4,X5,X6,X7,X8,X9,X,X11,X12,X13,X14, X15,X16,X17,X18,X19,X20,X21,X22, X23,X24,X25,X26,X27,X28,X29,X30,X31,X32,X33,X34,X35,X36).

The result will be values for X1, ... , X36 that solve the problem. Find all possible solutions. Your program should be general, in the sense that it could be easily modified to handle another 6 by 6 Sudoku problem.

Reference no: EM13766994

Questions Cloud

Compute the cost allocation rate : Compute the cost allocation rate for each activity. Use the activity-based cost allocation rates to compute the activity costs of the commercial containers and the travel packs. (Hint: First compute the total activity costs allocated to each produ..
Profitability and influence of cricket as a sport : While sports such as soccer actively promote global expansion, other sports such as cricket have stepped back, by excluding "minnow" countries from future ICC Cricket World Cups. Will actions such as this threaten the profitability and influence o..
Explain role capitalism plays in corporate decision-making : Explain the role capitalism plays in corporate decision-making. Discuss if you believe it is possible for a company to cater to both its best interest
Find the future values of these ordinary annuities : Find the future values of these ordinary annuities. Compounding occurs once a year.Rework previous parts assuming that they are annuities due. Round your answers to the nearest cent.
Prolog sudoku : Write a Prolog program to solve the 6 by 6 Sudoku puzzle distributed in class. Do not use a solution downloaded from the Internet or elsewhere. Write your own. It should be designed along these lines
Develop a product-positioning map for mcdonald : Develop a product-positioning map for McDonald's, Wendy's, Burger King, and Hardee's and diagram your product-positioning map.
The constant dividend growth model : The constant dividend growth model is:
What interest rate did she obtain on her investment : A woman made ten annual end-of-the-year purchases of $1000 of common stock. At the end of the tenth year, she sold all the stock for $12000.  What interest rate did she obtain on her investment?
Annual return mean and standard deviation : DW Co. stock has an annual return mean and standard deviation of 12 percent and 33 percent, respectively. What is the smallest expected loss in the coming year with a probability of 5 percent? A stock has an annual return of 11.8 percent and a standa..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Create the following for bet charts

The Banking e-Teller system allows bank customers to perform ATM transactions from their cell or smart phones. BET will allow customers to check balances, make remote photo capture check deposits, and perform balance transfers to their checking or..

  Categorize each of them into the area

During the Sarbanes-Oxley audit of a financial services company, you note the following issues. Categorize each of them into the area to which they belong: IT change management, logical access to data, and IT operations.

  Determine the equivalent units of production for the month

Micro Labs uses a processing costing system. The following data are available for the mixing department for October. The department started 175,000 gallons into production during the month.

  Executing critical section in mutual exclusion protocol

In Lamport's mutual exclusion protocol, if process i is implementing critical section.

  The query output to only in-active members

Modify the query to limit the query output to only in-active members, and then run the query. Convert the query to a make table query. Name the new table In-Active Members, and then run the query. Open the In-Active Members table and observe t..

  Write a class that maintains the top 10 scores

but use a singly linked list instead of an array Part 2: Implement the stack and queue with a single class interfaces with a unique class that is derived from class LinkedDeque (Code Fragment 5.21)

  Difference between cyber crimes and cyber-related crimes.

Summarize the difference between cyber crimes and cyber-related crimes. On cyber crimes, define cyber trespass, cyber privacy and cyber vandalism. On cyber-related crimes explain the difference between cyber-assisted and cyber-enhanced crimes.

  Identify and correct the errors

Identify and correct the erros in the following program. void nPrintln(string message, int n){int n=1;for (int i=0; i int main (){nPrintln(5, "Welcome to C++!");}

  Using a pld, develop an i/o port decoder

Using a PLD, develop an I/O port decoder that generates the following high-bank I/O strobes: 300DH, 300BH, 00B6H, and 00EEH.

  Explain roles and influences of computers

Topic is "The Global Economy" . You will be writing the term paper replying to the following questions? Explain the roles and influences of computers and communications technology in increase of trans-border economic activity.

  Access and control of personal information

In debates regarding access and control of personal information, it is sometimes argued that an appropriate balance needs to be struck between individuals and organizations

  Write an iterative function power1 ,power2,power3

This problem considers several ways to compute xn for some n >= 0. (a) Write an iterative function power1 to compute xn for n >= 0.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd