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

  Write down a program that prompts the user to input

Write the program that prompts the user to input the x-y coordinate of a point in a Cartesian plane. The program should then output a message indicating whether the point is the orgin, is located on the x (or y) axis, or appears in a particular qu..

  What happen if you did not break

When using Case statements, what would happen if you did not "Break?" Please give an example and explain. Where, in your everyday life, would you use all of the looping techniques.

  Investigating a social engineering attack

Investigate a social engineering attack describing what has made this attack more successful and the information which was observed from this attack is sure to involve how could this attack be avoided.

  Recoginizing the error in given code

Identify the problem in the above code, If ( toupper( response[ 0 ] ) == 'Y' )

  How to suggest a solution for the scenario of warehouse

How to Suggest a solution for the scenario of warehouse? Assume that the company has accumulated 20TB of data and that 20 percent per year growth is expected in size of Data Warehouse. Suggest a solution for this scenario with respect to software,..

  Boolean functions

Simplify the following Boolean functions, using 3-variable maps: F (x,y,z) = Σ(0,2,6,7)

  Write down the values of total1 and total2

Write down a program that asks the user to enter two positive floating point numbers and after checking their validity it prints them in fixed point notation with the width of ten and with two digits to the right of the decimal point.

  Explain the difference between object-oriented programming

define the difference between object-oriented programming and procedural (or structural or processual) programming. What, if anything, does the OO model bring to the table and improve upon what was out there pre-OO.

  What is an information system

What is an information system and why are they important? Can u please give me some examples. I am totally clueless on this subject. Is it possible to use information technology to gain a competitive advantage.

  Make functionwill add one to each element in array of size

Write down the following C++ routines using pointers only. Do not use any [] 's in your code.

  Determining occurance as incident or disaster

Categorize the following occurrences as an incident or disaster. If an occurrence is a disaster, find whether or not business continuity plans would be called into play.

  Define function which may be present in program

One of the functions in C program is special - this is the main() function. What is so special about it? What differs main() from any other function which could be present in your program?

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