{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

final

# 5findbottleneckedges10points in a directed graph

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

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 eﬃcent algorithm to ﬁnd 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 ﬁnd 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, ﬁnd 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 deﬁne the neighbors as the letters having row diﬀerence of one or column diﬀerence 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 diﬀerent 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

• 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.

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

• 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.

Dana University of Pennsylvania ‘17, Course Hero Intern

• 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.

Jill Tulane University ‘16, Course Hero Intern