Write a function called maxsubsum that takes a matrix a

Assignment Help Data Structure & Algorithms
Reference no: EM13881103

Write a function called maxsubsum that takes a matrix A as an input, computes the sum of elements in each of its submatrices, and finds the submatrix that has the maximum sum. (For the purposes of this exercise, we define a submatrix as a matrix formed by a contiguous set of elements of the original matrix.) If there are more than one with the same maximum sum, the function can pick any one of them. Note that the entire matrix is considered to be a submatrix of itself, but because some elements of the matrix may be negative, it may not have the maximum sum. The function is defined like this:function [row,col,numrows,numcols,summa] = maxsubsum(A)where row and col specify the indexes of the top left corner of the submatrix with the maximum sum, numrows and numcols are its dimensions, and summa is the sum of its elements.

Reference no: EM13881103

Questions Cloud

Write a program that prompts the user to input a string : Write a program that prompts the user to input a string. The program then uses the function substr to remove all the vowels from the string.
Explain microloans and the management team : Explain microloans and the management team
Causation is fundamental to epidemiology : Demonstrate an understanding that causation is fundamental to epidemiologyExplain and apply criteria for considering causation, including temporal relation, plausibility, consistency, strength, dose-response relationship, reversibility, study design,..
Find and compare two state statutes : Several states in the United States, including Wisconsin, Vermont, and Minnesota, also have such legislation. Many states require certain persons to report speci?c kinds of crimes, most often child abuse. Find and compare two state statutes.
Write a function called maxsubsum that takes a matrix a : Write a function called maxsubsum that takes a matrix A as an input, computes the sum of elements in each of its submatrices, and finds the submatrix that has the maximum sum
What unique problems underlie cross-cultural communication : What unique problems underlie cross-cultural communication? What are some common barriers to effective communication
Find the maximum temperature in the wire : A copper wire, 5 mm in diameter and 15 ft long, has a voltage drop of 0.6 volts. Find the maximum temperature in the wire if the ambient air temperature is 25°C and the heat transfer coefficient h is 5.7 Btu/hr · ft2 · F.
First lincoln bank agreed to defer all payments : 1.At January 1, 2013, Rothschild Chair Company, Inc., was indebted to First Lincoln Bank under a $20 million, 10% unsecured note.
Determine the total budgeted cost for the project : Estimate the cost for each activity, using the schedule and schedule for web based reporting system project - Determine the total budgeted cost for the project.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Question about database administration

Should the data administrator really be on the same level as the DBA, generally somewhat low in corporate hierarchy or should this person have an elevated level of importance?

  Research two other sorting algorithms and describe how they

research two other sorting algorithms and describe how they work. describe how two different searching algorithms work.

  Features of a database view

Does a view occupy space in the database? In other words, does a view contain any data

  How implement both a push and pop instruction

A computer has 8 general purpose registers (R0 to R7) but does not have PUSH or POP instructions. The computer does have the register indirect with auto increment mode (post-inc) and register

  Design a linear algorithm

The Russian flag problem is to rearrange an array of characters R, W, and B so that R is the first character, R is followed by a W, W is followed by a B, B is followed by another R, and the pattern repeats. Design a linear algorithm (pseudo code)..

  Creating an access database

PLUS is a corporation that makes all types of visual aids for judicial proceedings. Customers are usually private law firms, although the District Attorney's office has occasionally contracted for its services.

  Write a function called halfsum that takes as input

Write a function called halfsum that takes as input an at most two-dimensional matrix A and computes the sum of the elements of A that are in the diagonal or are to the right of it.

  In the following problems you will need tobulldefine the

in the following problems you will need tobulldefine the problem by constructing a defining diagrambullcreate a

  Differences between the structured design methodology

differences between the structured design methodology

  How can the rights to the data structure be protected

How can the rights to the data structure be protected? Is a data structure the expression of an idea (like a poem) and therefore protected by copyright or do data structures fall through the same legal loopholes as algorithms? What about patent la..

  Articles available our csu library databases

The Article Critique is required to be a minimum of two pages to a maximum of four pages, double-spaced, APA style, from the journals and articles available in our CSU Library Databases. The article should deal with any of the material presented i..

  Difference between an index and a discrete logarithm

Find the prime factorization of 7007. Also describe and show how you find it in step by step -  What is the difference between an index and a discrete logarithm?

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