(1) GetHead((a,(b,c),d))=?[br][/br](2) GetTail((a,(b,c),d))=?[br][/br](3) GetHead(GetTail ((a,(b,c),d)))=?[br][/br](4) GetTail (GetHead ((a,(b,c),d)))=
举一反三
- 求下列广义表操作的结果(1) GetHead【(p,h,w)】;(2) GetTail【(b,k,p,h)】;(3) GetHead【((a,b),(c,d))】;(4)GetTail【((a,b),(c,d))】;(5)GetHead【GetTail【((a,b),(c,d))】】;(6)GetTail【GetHead【((a,b),(c,d))】】;(7)GetHead【GetTail【GetHead【((a,b),(c,d))】】】;(8)GetTail【GetHead【GetTail【((a,b),(c,d))】】】;注意:
- 已知广义表LS=((a,b,c),(d,e,f)),运用GetHead和GetTail函数取出LS中原子e的运算是()。 A: GetHead(GetTail(LS)) B: GetHead(GetTail(GetHead(GetTail(LS)))) C: GetTail(GetHead(LS)) D: GetHead(GetTail(GetTail(GetHead(LS))))
- 求下面各广义表的操作结果。 (1) GetHead((a,(b,c),d)) (2) GetTail((a,(b,c),d)) (3) GetHead(GetTail ((a,(b,c),d))) (4) GetTail (GetHead ((a,(b,c),d)))
- GetHead(GetTail(((a,b),(c,d))))=
- 广义表GetTail[GetHead[GetTail[((a,b),(c,d))]]]操作的结果为()