題組內容

3. You have the relations COURSES and TAUGHT-BY shown below.

4. Show the content of stack SI and the value of variables x and y after the following algorithm segments is executed. (10%) Stack(Sl); push(S 1, 5); push(Sl, 3); push(S 1, 2); If (not empty(Sl)) pop(Sl, x); If(not empty(S 1)) pop(Sl, y); Push(Sl,6)