题目内容

What will be the result of running the burgler's algorithm with Metric 3?

A. The algorithm runs and returns the optimal solution.
B. The algorithm runs and returns a non-optimal solution.
C. The algorithm does not run.

查看答案
更多问题

Metric 3:def metric3(item): return item.getValue()Which heuristic does Metric 3 employ?

A. Choose the lightest object first.
B. Choose the most valuable object first.
Choose the item with the best value to weight ratio first.

What will be the result of running the burgler's algorithm with Metric 2?

A. The algorithm runs and returns the optimal solution.
B. The algorithm runs and returns a non-optimal solution.
C. The algorithm does not run.

Metric 2:def metric2(item): return -item.getWeight()Which heuristic does Metric 2 employ?

A. Choose the lightest object first.
B. Choose the most valuable object first.
Choose the item with the best value to weight ratio first.

What will be the result of running the burgler's algorithm with Metric 1?

A. The algorithm runs and returns the optimal solution.
B. The algorithm runs and returns a non-optimal solution.
C. The algorithm does not run.

答案查题题库