For x and y, we have σ1(x) ≤ K < σ2(x), and We thus have
where is the contribution of moving x from position σ2(x) to σ2(x) + 1 to the overall distance. Notice that is also the contribution of moving y from position σ2(y) to σ2(y) – 1.
From formulas (11.10) and (11.11), we get
Get Context-Aware Computing now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.