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

  Draw the human encoding tree of these six characters

Show how to nd the maximum spanning tree of a graph, that is, the spanning tree of largest total weight.

  What is the time complexity

Design an algorithm for finding the closest two numbers in the input list - What is the time complexity? Is it probable to improve the algorithm if the input is a sorted list?

  Analyzing the use of database in an organization

Examine the use of databases in your company. Include what database applications are used. Conclude through proposing improvements.

  Computing entropy of plaintext message

Compute the entropy of the plaintext message?

  How to sort an array using insertion sort

How to sort an array using insertion sort and track teh number of swaps during the sorting - Can someone provide the answer with reference to data structure?

  Show result of inserting keys using quadratic probing

Show the result of inserting these keys by using linear probing, using quadratic probing with c1 = 1and c2 = 3, and using double hashing with h2(k) = 1 + (k mod (m-1)).

  Java program to find largest and smallest numbers

Create a Java program that will search a text document of strings representing numbers of type int and will write the largest and the smallest numbers to screen.

  What do these two indexes represent

What do these two indexes represent - what are the limits for each one of these indexes?

  Use process flow charts procedures and orpolicy statements

Draft a 2-4-page (350 words per page) section that will use process flow charts, procedures, orpolicy statements to articulate the business requirements in terms of specific process or business development needs

  Creating uml collaboration diagrams

Create UML collaboration diagrams using Microsoft Visio or another making tool capable of creating properly formatted UML collaboration diagrams.

  Determine the edge connectivity of an undirected multigraph

Give a polynomial-time algorithm for this decision problem - determine the edge connectivity of an undirected multigraph

  For what values of d is the tree t

For what values of d is the tree T of the previous exercise an order -d B-tree? HINT: The definition of an order- d  deals with the minimum and maximum number of children an internal node can have.

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