Monday, January 15, 2018

case study: Depth first search base case

January 15, 2018

Introduction



It is another complaint from the mock interview on January 14, 2018. The peer complained that depth first search missing a base case. What I did is that I put a base case to check the matrix element is not one in four if statement, so the if statements are giant expression, but the base case is hidden.

Plan to look up the book of mathematics for computer science and look into how to solve this issue from better understanding of depth first search.

Code study



The C# code is here.

No comments:

Post a Comment