Ismaeel
Ismaeel
SCIENCE
b) If T = 150 and C = 12, determine whether the tasks can be evenly divided
among the servers. If not, find the remainder and suggest a strategy for
distributing the remaining tasks.
Case Study 2:
Case Study 3:
Case Study 4:
A social media platform uses a hashing function to manage its user data
efficiently. When users upload their profile pictures, the platform creates a
unique hash value for each image file. This allows the platform to quickly
retrieve or compare files by their hash values rather than processing the entire
image. Recently, the platform encountered an issue where two different
profile pictures generated the same hash value, leading to data corruption.
CASE STUDY 1:
150 mod12=6
And since there is a remainder of 6, it means that when the tasks are
divided by 12, 6 tasks would remain undistributed after assigning the tasks
equally
One strategy to distribute the remaining tasks could involve assigning the
extra tasks to any of the server, ensuring an even distribution of workload for
example you can allocate 1 extra task to 6 of the servers leaving (78mod
(5+1)) =13 tasks each while the remaining servers handle the remaining 72
tasks.
Case study 2
V3=83=512
(V3+5) =512+5=517
Then 517mod11=4
To minimize collisions;
Case study 4
h(x)=(5x+3) mod 19
For x=11
58mod19=1
For x=24
123mod=9
No because by comparing the hash values, x=11 and x=24 do not produce
the same hash value which does not indicate any collision
c) Hash functions are crucial in computing for data integrity and security
They ensure that data remains unchanged and can be verified quickly.
END