邏輯函數的簡化

我們有 5 種簡化邏輯函數的方法。

  1. Simplification.SimpleInner : 刪除相似的邏輯項。
  2. Simplification.SimpleCover : 向前刪除全部或部分覆蓋的邏輯術語。
  3. Simplification.MultiCover : 向後刪除被多個邏輯項覆蓋的邏輯項。
  4. Simplification.Full : 一種生成內部邏輯項並去除覆蓋邏輯項的方法。
  5. Simplification.Shannon : 一種方法搜索分解邏輯函數的最快路徑。

前3種方法用於內部計算以減少邏輯項

其中,後兩種方法是實現階段的準優化簡化方法。

[ f ] = AndOr()
{
    1,-2,3,-4,-5,-6 ;
    -1,-2,3,4,-5,6 ;
    -1,2,3,-4,-5,6 ;
    1,-2,3,4,5,6 ;
    -1,-2,-3,4,-5,6 ;
    1,2,-3,4,5,6 ;
    1,2,-3,-4,-5,6 ;
    1,2,-3,-4,5,6 ;
    1,2,-3,4,5,6 ;
    -1,2,-3,-4,5,6 ;
}

// [ g ] = Simplification.Full(f);
[ g ] = Simplification.Shannon(f);

Print("result:", g);

/*
結果應該是 :
g = AndOr()
{
  1,2,-3,-4,6;
  1,2,-3,5,6;
  -1,-2,4,-5,6;
  2,-3,-4,5,6;
  1,-2,3,4,5,6;
  1,-2,3,-4,-5,-6;
  -1,2,3,-4,-5,6;
}
*/



IsCovering IsLinearFunction IsThresholdFunction IsZeroFunction ToBinary StringToBinaryNumber ToDualFunction ToTruthTable DigitalSystem Dimacs Eq Nor NumberSystem MostSignificantDigit PositiveNumberToMantissa object() OrAnd To2LayerOrAnd ShortestInputsForDistinguishTwoStates Canonical MultiCover StateDeviceName StateTransition TruthTable GetDontCareLogicFunction GetNegativeLogicFunction Utility ComputeDONTCARE var() Zero

搜索本網站 :

 
Buy website traffic cheap