Skip to main content
. 2019 Sep 23;19(19):4121. doi: 10.3390/s19194121
Algorithm 2: IsCoreRule Function
Require: R, Set
Ensure: TrueorFalse
  for R R SET do
   if R[D ]=R[D] and R [DOM]=R[DOM] then
    provideFlagTrue, sharesFlagTrue
    if R [SHARES]= then
     sharesFlagFalse
     else
     for D R [SHARES] do
       if DR [SHARES] then
        SharesFlagFalse
     end if
    end for
   end if
   for S R [PROVIDES] do
     if SR [PROVIDES] then
      provideFlagFalse
     end if
    end for
    if provideFlag=True and sharesFlag=True then
     return False
   end if
  end if
end for
return True