Skip to main content
. 2021 Oct 13;21(20):6815. doi: 10.3390/s21206815
Algorithm 2. The algorithm of conditional compatibility detection.
  Input: Comparable constraint item conij, i ∈ {s, o, e}, j ∈ {j|1 ≤ jn}
  Output: Conditional intersection (false) or exclusion (true)
     result = false; // The result is initialized to conditional intersection
     for each i ∈ {s, o, e}, do
        for j = 1:n do
         for k = j + 1:n do
             if conij.type = conik.type then
              if conijconik ≠ Ø then
              result=true;    //  Conditional exclusion
              end if
             end if
         end for
        end for
       end for
    end for
    return result