✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
Consider Sum of Subset Problem having n distinct positive numbers represented by w for 1 ≤ i ≤ n and the total sum m. Let the solution is represented by x ∈ {0,1} for 1≤ i ≤ n. One of the two modified bounding functions for Sum of Subset Problem at level k using backtracking is