作业帮 > 英语 > 作业

给出一棵树的逻辑结构T=(K,R),其中

来源:学生作业帮 编辑:神马作文网作业帮 分类:英语作业 时间:2024/10/04 17:18:37
给出一棵树的逻辑结构T=(K,R),其中
K={A,B,C,D,E,F,G,H,I,J}
R={r}
r={(A,B),(B,E),(B,F),(F,G),(F,H),(A,C),(C,I),(C,J),(J,K),(A,D)}
Given a logical structure of a tree,T=(K,R),and K={A,B,C,D,E,F,G,H,I,J},R={r},r={(A,B),(B,E),(B,F),(F,G),(F,H),(A,C),(C,I),(C,J),(J,K),(A,D)}
试回答下列问题:
Please answer these questions:
(1)\x09哪个是根结点?which is the root node?
(2)\x09哪些是F的孩子?which are the child nodes of Node
(3)\x09结点K的层次是多少?
给出一棵树的逻辑结构T=(K,R),其中
1、A是根2、G和H3、如果根的层次为1,则K的层次为4