{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

5findbottleneckedges10points in a directed graph

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ven an m • n matrix M in which each entry is a 0 or 1. A solid block is a rectangular subset of M in which each entry is 1. Give a correct efficent algorithm to find a solid block in M with maximum area. 5 Find bottleneck edges [10 points] In a directed graph, given a start node and an end node, design an algorithm to find the minimum number of edges that need to be removed so that the start node and end node are disconnected. 6 Find string in 2D pattern [10 points] Given a 2D array that contains letters, find a string in the array. If the string is not in the pattern, report it. The successive letters in the string should be neighbors in the array. Here we define the neighbors as the letters having row difference of one or column difference of one. For example, CSBC is in the following 2D array: 1 ABCDE FGSBL HJQCY IRMOK 7 Walking upstairs [10 points] Design a polynomial complexity algorithm to compute the number of different ways to climb up n‐step stairs if we can walk either one step or two steps each time. Analy...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern