Skip to content

Instantly share code, notes, and snippets.

@hrchu
Created June 8, 2018 07:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hrchu/979d23176cf7f0a9c3c3b82a8bb22eb0 to your computer and use it in GitHub Desktop.
Save hrchu/979d23176cf7f0a9c3c3b82a8bb22eb0 to your computer and use it in GitHub Desktop.
Given max locate time is 102s and available size per wrap is 57.7GB, define the following formulas:
g(x) = 1 - x/57.7
f(x) = {
(1 - ⌊x⌋ - x) * 102, if ⌊x⌋ = 2k + 1
(⌊x⌋ - x) * 102, if ⌊x⌋ = 2k
}
Estimated locate time is (f ∘ g)(x) where x is the used size in the tape and k is integer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment