-------------------- START CONTIGUOUS SIMULATION -------------------- Total Blocks: 40 File bob.txt ADDED to drive File second hand.txt ADDED to drive File third ADDED to drive File tooBig FAILED TO ADD to drive, insufficient space -------------------- Current Drive Contents -------------------- DIRECTORY: 1. bob.txt, BLOCKS: [0, 1, 2, 3, 4] 2. second hand.txt, BLOCKS: [5, 6, 7, 8, 9, 10, 11, 12, 13] 3. third, BLOCKS: [14, 15, 16, 17, 18, 19, 20] DETAILS: 1 1 1 1 1 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 * * * * * * * * * * * * * * * * * * * File bob.txt was READ successfully with 1 head move File second hand.txt was READ successfully with 1 head move File bob.txt was DELETED successfully File second hand.txt APPEND, doesn't fit in place, removing from existing memory location, add in new location Moving file of 9 blocks with as many head moves. File second hand.txt ADDED to drive -------------------- Current Drive Contents -------------------- DIRECTORY: 1. third, BLOCKS: [14, 15, 16, 17, 18, 19, 20] 2. second hand.txt, BLOCKS: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] DETAILS: 2 2 2 2 2 2 2 2 2 2 * * * * 1 1 1 1 1 1 1 * * * * * * * * * * * * * * * * * * * File fourth in line.dat ADDED to drive File fifth is big ADDED to drive File fourth in line.dat was READ successfully with 1 head move -------------------- Current Drive Contents -------------------- DIRECTORY: 1. third, BLOCKS: [14, 15, 16, 17, 18, 19, 20] 2. second hand.txt, BLOCKS: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] 3. fourth in line.dat, BLOCKS: [10] 4. fifth is big, BLOCKS: [21, 22, 23, 24, 25, 26, 27, 28, 29] DETAILS: 2 2 2 2 2 2 2 2 2 2 3 * * * 1 1 1 1 1 1 1 4 4 4 4 4 4 4 4 4 * * * * * * * * * * File third was DELETED successfully File size5 ADDED to drive File size1 ADDED to drive File fifth is big was READ successfully with 1 head move -------------------- Current Drive Contents -------------------- DIRECTORY: 1. second hand.txt, BLOCKS: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] 2. fourth in line.dat, BLOCKS: [10] 3. fifth is big, BLOCKS: [21, 22, 23, 24, 25, 26, 27, 28, 29] 4. size5, BLOCKS: [11, 12, 13, 14, 15] 5. size1, BLOCKS: [16] DETAILS: 1 1 1 1 1 1 1 1 1 1 2 4 4 4 4 4 5 * * * * 3 3 3 3 3 3 3 3 3 * * * * * * * * * * -------------------- STATS - Contiguous -------------------- Head Moves: 13 File(s) NOT added due to space constraints: 1 --------------------END OF CONTIGUOUS ANALYSIS-------------------- -------------------- START Indexed SIMULATION -------------------- Total Blocks: 40 File bob.txt ADDED to drive File second hand.txt ADDED to drive File third ADDED to drive File tooBig FAILED TO ADD to drive, insufficient space -------------------- Current Drive Contents -------------------- DIRECTORY: 1. bob.txt, BLOCKS: [0, 1, 2, 3, 4, 5] 2. second hand.txt, BLOCKS: [6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16] 3. third, BLOCKS: [17, 18, 19, 20, 21, 22, 23, 24] DETAILS: 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 * * * * * * * * * * * * * * * File bob.txt was READ successfully with 1 head move File second hand.txt was READ successfully with 1 head move File bob.txt was DELETED successfully File second hand.txt APPEND possible, attempting... APPEND succeeded with 0 extra head move(s) -------------------- Current Drive Contents -------------------- DIRECTORY: 1. second hand.txt, BLOCKS: [6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 0] 2. third, BLOCKS: [17, 18, 19, 20, 21, 22, 23, 24] DETAILS: 1 * * * * * 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 * * * * * * * * * * * * * * * File fourth in line.dat ADDED to drive File fifth is big ADDED to drive File fourth in line.dat was READ successfully with 1 head move -------------------- Current Drive Contents -------------------- DIRECTORY: 1. second hand.txt, BLOCKS: [6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 0] 2. third, BLOCKS: [17, 18, 19, 20, 21, 22, 23, 24] 3. fourth in line.dat, BLOCKS: [1, 2] 4. fifth is big, BLOCKS: [3, 4, 5, 25, 26, 27, 28, 29, 30, 31, 32] DETAILS: 1 3 3 4 4 4 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 4 4 4 4 4 4 4 4 * * * * * * * File third was DELETED successfully File size5 ADDED to drive File size1 ADDED to drive File fifth is big was READ successfully with 2 head moves -------------------- Current Drive Contents -------------------- DIRECTORY: 1. second hand.txt, BLOCKS: [6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 0] 2. fourth in line.dat, BLOCKS: [1, 2] 3. fifth is big, BLOCKS: [3, 4, 5, 25, 26, 27, 28, 29, 30, 31, 32] 4. size5, BLOCKS: [17, 18, 19, 20, 21, 22] 5. size1, BLOCKS: [23, 24] DETAILS: 1 2 2 3 3 3 1 1 1 1 1 1 1 1 1 1 1 4 4 4 4 4 4 5 5 3 3 3 3 3 3 3 3 * * * * * * * -------------------- STATS - Indexed -------------------- Head Moves: 5 File(s) NOT added due to space constraints: 1 --------------------END OF CONTIGUOUS ANALYSIS--------------------