Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please Look at the previous tasks for a better understanding. Thank you Putting everything together We now have all the ingredients to generate a solved

Please Look at the previous tasks for a better understanding. Thank you

image text in transcribed

Putting everything together We now have all the ingredients to generate a solved puzzle given a row vector called row. The next task will involve generating the initial four-element vector called puzzle from row using MAKEVECTOR(row),tryingallcyclic permutations (using PERMUTERow (puzzle, x,y,z ) for all combinations of x,y and z ) to see if the returned vector returns TRUE for both CHECKGriDS and COLCHECKS. Task 8: Complete the following function template: function MAKESOLUTION(row) end function This function will take the four-element vector row as input, which is the same input for the function MAKEVECTOR. The function should return a solved Pseudoku puzzle such that all column and sub-grid Pseudoku conditions are satisfied. The function will generate a vector using MAKEVECTOR(row),thentrycyclicpermutationsonthis vector using PERMUTERow (puzzle, x,y,z) until a set of permutations is found such that all Pseudoku conditions are satisfied (checked using GridS and COL). To be able to get full marks you should call the functions MaKeVector, PERMUTERoW, CheCKGrids and CoLCheCK

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 1 Lncs 13426

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124227, 978-3031124228

More Books

Students also viewed these Databases questions

Question

Summarize what it takes to become a successful manager today.

Answered: 1 week ago