Research Article

Hadoop-Based Medical Image Storage and Access Method for Examination Series

Algorithm 2

Input: data to be read X
(1) begin
(2)  if X is in A2
(3)   Move X to the top of A2
(4)  else if X is in |A1 out|
(5)   Delete X from |A1 out| and move it to the top of A2
(6)  else if X is in |A1 in|
(7)   Do nothing
(8)  else//x is not in the cache
(9)   Request X to disk or network
(10)  end if
(11) end