Design c++ program to accept an n*m matrix

Assignment Help Computer Engineering
Reference no: EM1331884

Write a C++ program to accept an n*m matrix containing only 0 and 1 values, and then find it's biggest zero submatrix i.e. the biggest submatrix in which all the values are 0.

INPUT

First line contains two numbers n, m (n,m<=300),
then n lines, each having m 0/1 digits.

OUTPUT

One number, which represent the number of zeros inside the biggest zero submatrix.

SAMPLE INPUT

6 5
0 0 0 0 0
0 1 1 1 0
0 1 0 1 0
0 1 1 1 0
0 0 0 0 0
0 0 0 0 0

SAMPLE OUTPUT

10

Reference no: EM1331884

Questions Cloud

Identify a company that affected by financial risks : Identify a company that affected by financial risks and explain how it responded to the effects of the event.
Managing the emergency scence : Discuss how you would assess and manage an emergency scene.
Program outputs messages for matching grouping symbols : create  a C++ program that outputs appropriate messages for matching grouping symbols, such as parentheses and braces, in the input arithmetic expression.
Responding to an explosive attack : Explain how to recognize and respond to an explosive attack.
Design c++ program to accept an n*m matrix : Write down a C++ program to accept an n*m matrix containing only 0 and 1 values, and then find it's biggest zero submatrix i.e. the biggest submatrix in which all the values are 0.
Explain researching for e-commerce : Explain researching for e-commerce
Impact of government regulations on small business : Please explain the impact of government regulations on small business.
Analyze and assess fedex''s current strategic type : Analyze and assess FedEx's current strategic type and how would you make recommendations for improvement.
Positive outcome of organisation negotiating internationally : In what ways can disputes lead to positive or negative outcomes for an organisation that is negotiating internationally?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Explain the modified scorecard approach

express the Value Based Management approach of demonstrating business value. Explain the Modified scorecard approach to measuring IT value. What is the benefit of this approach? Describe the concept of  balanced score card.

  Find out whether the list is empty

Write down the functions (in C++) to perform these basic operations on Linked List.

  How to create a javascript program

Create a JavaScript program that declares and prints an array that contains at least 20 of your favorite songs. For each song, determine the best means for storing the year it was published.

  Make an assignment to read rfc

Make an assignment to read RFC

  Define why a company or organization would migrate

define why a company or organization would migrate to a relational database architecture from a network or hierarchical architecture.

  Give a variable whose value is a letter grade

suppose that grade is a variable whose value is a letter grade-- any one of the following letters: 'A', 'B', 'C', 'D', 'E', 'F', 'W', 'I'. Assume further that there are the following int variables, declared and already initialized: acount, bcount,..

  The address assigned to one device is 7ca416

The address bus of a computer has 16 address lines, A15_0 If the address assigned to one device is 7CA416 and the address decoder for that device ignores lines A8 and A9, what are all the addresses to that the device will respond.

  Fetching and executing instructions

Explain the format for this instruction and then formulate a procedure for fetching and executing the instructions for this computer.

  Implementing gcd in assembly language

Implement this function in the assembly language and write down a test program which calls function many times, passing it several values. Show all results on screen and include screen shots of the outputs.

  Implementing the c++ code

Write down a C++ code in order to. implement the following application. Make sure to describe all the variables which you will use.

  Determine the value of p and q in program

Write the output of the following program. #include using namespace std; int fun ( int*& p, int* q) { *p = 12;

  Define the type of input data used

express the type of input data used for a business related function.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd