Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Task 9: Describe a method for setting values to be blank characters in the elements of the output of MAKESO- LUTION. You can describe the

image text in transcribedimage text in transcribed

Task 9: Describe a method for setting values to be blank characters in the elements of the output of MAKESO- LUTION. You can describe the method in words, use pseudocode, or use a flowchart. The method should take the number n as an input parameter and set n values to be blank characters. You do not need to go into great detail as long as the method makes sense. Maximum word count for the whole task (excluding diagrams): 200 words. [4 marks] Analysing the algorithm In the next task, the goal is to analyse the algorithm in this assignment. The algorithm to generate Pseudoku puzzles outlined here might not produce all possibly valid Pseudoku puzzles. Remember that, generally speaking, the algorithm works by cyclically permuting several rows of a vector until the Pseudoku conditions are satisfied. In the next task you should aim to identify all of the weaknesses you can think of in this algorithm. Task 10: Describe and very briefly explain the limitations of the algorithm in this assignment. Maximum word count for the whole task: 400 words (excluding figures). [6 marks] The puzzle format As mentioned earlier, we will start with a completed puzzle stored in a four-element vector called puzzle where every element is itself a four-element vector, such as 2 41 3 1 3 2 4 3 2 4 1 4 1 3 2 Each row of the puzzle will correspond to an element of a vector, e.g. the first row of the Pseudoku puzzle will be stored as a four-element vector, which itself is an element of a four-element vector. Therefore, this completed Pseudoku puzzle is represented by the following vector: Element1 Element 2 Elements Element 4 We could make this vector by initiating a four-element vector, with each element being empty, and then assign a vector to each element. The goal of the algorithm in this coursework is to generate an unsolved Pseudoku puzzle from a row of four numbers. The first step in the process is to make all four elements of a four-element vector to be the same, and this element will be a four-element vector. For example, given a four-element vector with the numbers 2, 4, 1, 3, we produce the following vector: Element1 Element 2 Element 3 Element 3 Your first task is to write a function in pseudocode that will carry out this process

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

Essential SQLAlchemy Mapping Python To Databases

Authors: Myers, Jason Myers

2nd Edition

1491916567, 9781491916568

More Books

Students also viewed these Databases questions

Question

How is IMC involved in creating social meaning for a brand?

Answered: 1 week ago

Question

1. What is Ebola ? 2.Heart is a muscle? 3. Artificial lighting?

Answered: 1 week ago