|
Algorithm 1 Algorithm |
| 01: Initialize , , and other parameters. |
| 02: Initialize an empty tree with the root node as
|
| 03: for to do
|
| 04:
|
| 05:
|
| 06:
|
| 07:
|
| 08:
|
| 09: If then
|
| 10:
|
| 11:
|
| 12: If then
|
| 13:
|
| 14: else
|
| 15:
|
| 16:
|
| 17: end if
|
| 18:
|
| 19:
|
| 20:
|
| 21:
|
| 22:
|
| 23:
|
| 24: end if
|
| 25: if then
|
| 26: return
|
| 27: end if
|
| 28: end for
|
| 29: return
|