Research Article

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

Algorithm 1

Input: data to be written X
(1) begin
(2)  if A0 is not full
(3)    Insert data X at the top of |A0 in|
(4)  else if |A0 in| is full
(5)    Take out the bottom data Y of |A0 in|, and insert Y to the top of |A1 out|
(6)    if |A1 out| is full
(7)     Eliminate the data at the bottom of |A1 out|
(8)    endif
(9)    Insert X at the top of |A1 out|
(10)  endif
(11) end