Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Assignment 3(Branch and Bound )

Jatin(2K18/CO/158)
Q1)

LC BRANCH AND BOUND FIFO BRANCH AND BOUND


• In LC branch and bound, the • The oldest node in the
first node we start exploring is queue is used to extend the
the one which promises us the branch. This leads to a
best solution at that moment., breadth-first search, where all
according to a given cost nodes at depth d are visited
function. The strategy of first, before any nodes at
traversing the search space is depth d+1 are visited.
therefore defined by the cost
function.
• For example, in 0/1 • In fifo branch and bound,
Knapsack Problem, using LC We start exploring nodes
Branch and Bound, the first starting from the first child
child node we will start node.
exploring will be the one
which offers the maximum
cost out of all.
2)

BACKTRACKING BRANCH AND BOUND


• An algorithm for finding all • An algorithm for discrete
solutions to some and combinatorial
computational problems, optimization problems and
notably constraint satisfaction mathematical optimization.
problems that incrementally
builds candidates to the
solutions.
• Finds the solution to the • Solves a given problem by
overall issue by finding a dividing it into at least two
solution to the first new restricted subproblems.
subproblem and then
recursively solving other
subproblems based on the
solution of the first issue.
• It traverse tree by DFS (Depth • It may traverse the tree in
First Search). any manner, DFS or BFS.
• It involves feasibility • It involves bounding function
function
• It searches the state space • It completely searches the
tree until it found a solution. state space tree to get
optimal solution.

You might also like