|
Algorithm 2 Top–Down Approach (TD) |
-
1:
Input: , , , ,
-
2:
Output:
-
3:
Select all |
-
4:
Select distinct from
-
5:
-
6:
while True do
-
7:
Select all as |
-
8:
if then
-
9:
| is the first of
-
10:
Select |>
-
11:
-
12:
-
13:
-
14:
else
-
15:
exit
-
16:
end if
-
17:
if then
-
18:
exit
-
19:
end if
-
20:
end while
|