|
Algorithm 1 Health State Partitioning |
| 1: Input: HI_sequence, M,
|
| 2: Output: S (Final Segmentation) |
| 3: Initialize: |
| 4: , is a data point from HI_sequence. |
| 5: Q = Priority Queue of pairs for all adjacent pairs. |
| 6: = merge cost function
|
| 7: Iterative Merging:
|
| 8: while
and do |
| 9.
|
| 10:
{Merge segments} |
| 11: Update Queue:
|
| 12: Remove old pairs costs:
|
| 13: Insert new costs:
|
| 14: end while
|
| 15: Termination:
|
| 16: if
or then
|
| 17: Stop
|
| 18: end if
|
| 19: Output:. |