using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static ProjectKnapsack.classes.KnapsackParameters; namespace ProjectKnapsack.classes; public class KnapsackState { public List Items { get; } public double CurrentWeight { get; } public double CurrentValue { get; } public int CurrentIndex { get; } public int Capacity { get; set; } public KnapsackState(List items, double currentWeight, double currentValue, int currentIndex, int capacity) { Items = new List(items); CurrentWeight = currentWeight; CurrentValue = currentValue; CurrentIndex = currentIndex; Capacity = capacity; } }