Due: See class webpage
Manku InputFile s ε or: jave Manku InputFile s ε |
The data file must conform to the following format:
v1 (data point 1) v2 (data point 2) v3 (data point 3) ...... vN (data point N)
D: (e1, f1, &Delta1) (e2, f2, &Delta2) ...
before the space reduction step.
Perform the space reduction step and print the new content of the data structure again. (You can learn a lot from this output).
(e1, f1, real1) (e2, f2, real2) (e3, f3, real3) ...
Before deletion D: (8, 1, 0) (7, 1, 0) (6, 2, 0) (4, 3, 0) (3, 1, 0) (2, 1, 0) (1, 1, 0) After deletion D: (6, 2, 0) (4, 3, 0) Before deletion D: (1, 1, 1) (2, 3, 1) (9, 1, 1) (7, 2, 1) (6, 3, 0) (4, 5, 0) After deletion D: (2, 3, 1) (7, 2, 1) (6, 3, 0) (4, 5, 0) Before deletion D: (8, 1, 2) (9, 1, 2) (1, 1, 2) (5, 1, 2) (2, 3, 1) (7, 4, 1) (6, 3, 0) (4, 9, 0) After deletion D: (2, 3, 1) (7, 4, 1) (4, 9, 0) Before deletion D: (9, 1, 3) (5, 1, 3) (1, 1, 3) (8, 4, 3) (2, 3, 1) (7, 4, 1) (4, 12, 0) After deletion D: (8, 4, 3) (7, 4, 1) (4, 12, 0) D structure at end of execution D: (8, 4, 3) (7, 4, 1) (4, 12, 0) Output: (8, 4, 6) (7, 4, 5) (4, 12, 12)
(999,798,798) (888,532,532) (777,531,531) (111,527,527)
/home/cs584000/turnin Makefile hw4(If you use Java, you still need a Makefile. Let me know if you don't know how to create a Makefile)
/home/cs584000/turnin Filename hw4-?where "?" is a number from 0 to 9.