Question
I need to code a program in C++ that creates a matrix (2D Array) of constant size and be able to search that array to
I need to code a program in C++ that creates a matrix (2D Array) of constant size and be able to search that array to find words (that I need to put in the array). We use the operators:
char ** build_matrix(int rows, int cols),
void fill_matrix(int rows, int cols, char **matrix),
void print_matrix(int rows, int cols, char **matrix),
void delete_matrix(int rows, char **matrix), and
void matrix_search(int sol[], string word, int rows, int cols, char **matrix)
I do not know how to put words into an array, that is where I am stuck. Let me know if more details are needed.
Assignment description Finding patterns in data, like text files, or arrays of pixel values, is the basis of many more advanced methods, for example, image recognition in Al, or text processing. This week, you will write a program to input and store a 2D matrix of data of user-defined size, and then find a segment of data in that matrix that matches a search key, regardless of its orientation or direction. Assignment description Finding patterns in data, like text files, or arrays of pixel values, is the basis of many more advanced methods, for example, image recognition in Al, or text processing. This week, you will write a program to input and store a 2D matrix of data of user-defined size, and then find a segment of data in that matrix that matches a search key, regardless of its orientation or directionStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started