The next task in the assignment is to design a concrete data structure for implementing the puzzle vectors representing Pseudoku puzzles; importantly, each element of the concrete data structure can only store a number or a pointer. Therefore, you could try an implementation based on arrays or linked lists, or a hybrid of both. Task 7: Consider the following puzzle vector: Element 1 Element 2 Element 3 Element 4 2 Design and explain a concrete data structure that implements this puzzle vector. The data structure must only consist of elements that can store an integer or a pointer to another element or null - elements can be indexed if they are contiguous in memory as with an array. You can draw the data structure and explain how the allowed operations of vectors are implemented on this concrete data structure - additional pointers can be created to traverse lists. One approach could be to use arrays, or linked lists, or another approach completely.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter18: Stacks And Queues
Section: Chapter Questions
Problem 16PE: The implementation of a queue in an array, as given in this chapter, uses the variable count to...
icon
Related questions
Question
Please answer in Pseudocode
The next task in the assignment is to design a concrete data structure for implementing the
puzzle vectors representing Pseudoku puzzles; importantly, each element of the concrete data
structure can only store a number or a pointer. Therefore, you could try an implementation
based on arrays or linked lists, or a hybrid of both.
Task 7: Consider the following puzzle vector:
Element 1
Element 2
Element 3
Element 4
2
1
3
4
3
2
1
2
4
3
Design and explain a concrete data structure that implements this puzzle vector. The data
structure must only consist of elements that can store an integer or a pointer to another
element or null - elements can be indexed if they are contiguous in memory as with an array.
You can draw the data structure and explain how the allowed operations of vectors are
implemented on this concrete data structure - additional pointers can be created to traverse
lists. One approach could be to use arrays, or linked lists, or another approach completely.
[6 marks]
Please answer in Pseudocode
Transcribed Image Text:Please answer in Pseudocode The next task in the assignment is to design a concrete data structure for implementing the puzzle vectors representing Pseudoku puzzles; importantly, each element of the concrete data structure can only store a number or a pointer. Therefore, you could try an implementation based on arrays or linked lists, or a hybrid of both. Task 7: Consider the following puzzle vector: Element 1 Element 2 Element 3 Element 4 2 1 3 4 3 2 1 2 4 3 Design and explain a concrete data structure that implements this puzzle vector. The data structure must only consist of elements that can store an integer or a pointer to another element or null - elements can be indexed if they are contiguous in memory as with an array. You can draw the data structure and explain how the allowed operations of vectors are implemented on this concrete data structure - additional pointers can be created to traverse lists. One approach could be to use arrays, or linked lists, or another approach completely. [6 marks] Please answer in Pseudocode
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Randomized Select Algorithm
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning