From b0a3a4dbb74c705dc3b52a67766476e423db38e4 Mon Sep 17 00:00:00 2001 From: Jorens Shtekels Date: Sun, 10 Mar 2024 16:21:45 +0200 Subject: [PATCH] remove file added by accident --- src/memoryCalculations.md | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 src/memoryCalculations.md diff --git a/src/memoryCalculations.md b/src/memoryCalculations.md deleted file mode 100644 index d5943b3..0000000 --- a/src/memoryCalculations.md +++ /dev/null @@ -1,31 +0,0 @@ -struct Muitnieks { - uint employeeAvailable ID 4b - uint timeToServe 4b -} - -struct Citizen { - uint timeArrived; 4b - uint timeFinish; 4b -} - - - -size for Employee: -Worker count: 99 -Citizen count: 4'000'000 - -99 * 8b + 4'000'000 * 8b = 792b + 32'000'000b = -= - - -How to determine the amount of time which can lie about -the queue? - -Maximum time of serving is 100'000 - -Lets say we start serving someone at x: -How can we be sure that no one would be faster? - -It must be 100001 lower than current time, -so if the time will be less by this time there will and -it will we in priority