Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(string[] args)
- {
- List<float> i0 = new List<float>() { 30f, 30f, 30f, 10f };
- int packCount = i0.Count;
- string str = "Input: ";
- for (int i = 0; i < packCount; ++i)
- str += i0[i] + " ; ";
- str.Remove(str.Length - 3, 3);
- Console.WriteLine(str);
- int[] s0 = Backtracking.Compute(i0, 100f);
- string r0 = "Solution: ";
- int indexesCount = s0.Length;
- for (int i = 0; i < indexesCount; ++i)
- r0 += i0[s0[i]] + " ; ";
- r0.Remove(r0.Length - 3, 3);
- Console.WriteLine(s0);
- Console.ReadKey();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement