If {HEAD ~ the benefit} for {TAIL ~ a given database} is larger than the recorded benefit in the shared memory, then the given database will replace the benefit data recorded in shared memory with its own benefit data , and that database then knows that it has the highest relative need for memory in the data processing system 
for
If { HEAD ~ the benefit } for { TAIL ~ a given database } is larger than the recorded benefit in the shared memory , then the given database will replace the benefit data recorded in shared memory with its own benefit data , and that database then knows that it has the highest relative need for memory in the data processing system
OTH HEAD HEAD HEAD HEAD HEAD HEAD REL TAIL TAIL TAIL TAIL TAIL TAIL TAIL OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH OTH