Skip to main content

Table 3 Different conditions based on \(s, \acute {d}\) and \(\hat {r}\)

From: An efficient privacy-preserving comparison protocol in smart metering systems

Condition

\(\acute {d}>\hat {r}\)

s

\(\acute {d}_{i}\)

\(\hat {r}_{i}\)

S i+1

\({c_{i}^{E}}\)

\({c_{i}^{I}}\)

1

True

1

0

1

0

Nonzero

Nonzero

2

True

1

1

0

−2

Nonzero

Nonzero

3

True

−1

0

1

2

Zero

Nonzero

4

True

−1

1

0

0

Zero

Zero

5

False

1

0

1

0

Zero

Zero

6

False

1

1

0

−2

Zero

Nonzero

7

False

−1

0

1

2

Nonzero

Nonzero

8

False

−1

1

0

0

Nonzero

Nonzero