cst370 Week 3

 This week we continued with brute force techniques including an example involving string matching. This was a helpful illustration of how brute force algorithms work in practice and also showed that the worst case scenario for an algorithm is not always as obvious as it may initially seem. Lectures then covered several classic example problems like the traveling salesman problem, knapsack problem, and assignment problem which demonstrated how different types of problems often require different algorithmic approaches.

We also went into more depth on the graph traversal techniques depth first Search (DFS) and breadth first search (BFS). While these concepts were a review for me, the information was valuable because it introduced new perspectives on analyzing their time efficiency. Later in the lectures we covered the divide and conquer algorithms and the master theorem, including on how to identify the time complexity of recursive problems using this method. 

The week’s homework tied everything together me having to write an algorithm to search a graph using DFS and then later solve a traveling salesman problem using a brute force approach that required checking all permutations of a graph.

Comments

Popular posts from this blog

CST334 Week 2

CST334 Week 5

CST334 Week 6