Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#11 Branch and Bound (BFS traversing) #17

Merged
merged 11 commits into from
Jun 1, 2023
Merged

#11 Branch and Bound (BFS traversing) #17

merged 11 commits into from
Jun 1, 2023

Conversation

jimin-kiim
Copy link
Owner

@jimin-kiim jimin-kiim commented Jun 1, 2023

Design Approaches

  1. Brute Force
  2. Divide and Conquer
  3. Dynamic Programming
  4. Greedy
  5. Backtracking (DFS)
  6. Branch and Bound (BFS)
  7. Approximation

Backtracking ? or Branch and Bound ?

  • if an effective h-value can be found, it's better to use Branch and Bound rather than Backtracking
  • since it can prune earlier near the root node
  • being proficient, using B&B would be much better so persistent practice is needed

Branch and Bound

  • Non-Optimization Problems
    • N-queens Problem, Subset Sum Problem
  • Optimization Problems
    • 0/1 KnapSack Problem, Traveling Salesman Problem
    • need bounding function (f = g + h) to find upper bound / lower bound

@jimin-kiim jimin-kiim merged commit e83476b into main Jun 1, 2023
@jimin-kiim jimin-kiim deleted the #11 branch June 1, 2023 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant