0% found this document useful (0 votes)
14 views2 pages

Readme PDF

The document discusses how a Sudoku puzzle is divided into rows, columns, and 3x3 squares for solving. It explains that there are 27 threads, with 9 each checking the rows, columns, and squares for validity. The document provides instructions for running the code to solve a Sudoku puzzle from a file or default grid.

Uploaded by

SHREEKANTH A
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views2 pages

Readme PDF

The document discusses how a Sudoku puzzle is divided into rows, columns, and 3x3 squares for solving. It explains that there are 27 threads, with 9 each checking the rows, columns, and squares for validity. The document provides instructions for running the code to solve a Sudoku puzzle from a file or default grid.

Uploaded by

SHREEKANTH A
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

ReadMe

Shreekanth A
2017csb1110

Each Square is a 3x3 grid of the sudoku.

The above drawing illustrates how I have divided the array for rows and columns and squares ,
There are 27 threads , 9 for rows , 9 for columns , and 9 for each square. The threads will put a
1 in the array if the corresponding row / column / square is valid.

For input :
1. You can use the default sudoku grid initialized in the program , which is a correct
solution
2. Or you can input a 9x9 through input.txt file , if you enter a wrong solution it will tell which
row and column and square have problems.
Steps for running code :

1. Open the terminal and navigate to directory where 2017csb1110_lab5.c is present.


2. Type in : gcc -pthread 2017csb1110_lab5.c
3. Type in : ./a.out

You might also like