DAA Problems
DAA Problems
7.Knapsack problem
1.Assignment problem
1.Prim’s algorithm
2.Huffman Trees
character A B C D _
1.Dijkstra’s algorithm:
2.Knapsack problem: W=10
1.Back tracking
*8-queens problem
*Hamiltonian cycle
3.Graph coloring
4.Branch and bound- assignment problem
Person a 9 2 7 8
Person b 6 4 3 7
Person c 5 8 1 8
Person d 7 6 9 4
1 4 40 10
2 7 42 6
3 5 25 5
4 3 12 4
1 10 60 6
2 20 100 5
3 30 120 4
4 15 60 4
2.Assignment problem:
Person a 10 19 8 15
Person b 10 18 7 17
Person c 13 16 9 14
Person d 12 19 8 18
*online algorithm
*offline algorithm
1 4 40 10
2 7 42 6
3 5 25 5
4 1 4 4