コード例 #1
0
    } // Stack listesinde tekrar eden var ise pozisyonları tutuluyor

    DTList FindMin(List <DTW> _StackDTW, List <int> posL)
    {
        int minpos = posL[0];

        DTList _temp = new DTList();

        foreach (var pos in posL)
        {
            if (_StackDTW[pos].Weight < _StackDTW[minpos].Weight)
            {
                minpos = pos;
            }
        }

        _temp = new DTList(_StackDTW[minpos].Drone, _StackDTW[minpos].Target);
        return(_temp);
    } // Drone Target Listesinden hesaplama sonucu cıkan Min Yol Drone Target Listesi
コード例 #2
0
    DTList FindMin(List <DTW> _StackDTW, List <int> posL)
    {
        int minpos = posL[0];

        DTList _temp = new DTList();

        foreach (var pos in posL)
        {
            if (_StackDTW[pos].Weight < _StackDTW[minpos].Weight)
            {
                minpos = pos;
            }
        }

        _temp = new DTList(_StackDTW[minpos].Drone, _StackDTW[minpos].Target);
        return(_temp);
    }