Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed 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 direction

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

Probabilistic Databases

Authors: Dan Suciu, Dan Olteanu, Christopher Re, Christoph Koch

1st Edition

3031007514, 978-3031007514

More Books

Students also viewed these Databases questions