{"title":"一种新的自顶向下的树包含算法","authors":"Yangjun Chen, Yibin Chen","doi":"10.1109/CYBERC.2010.60","DOIUrl":null,"url":null,"abstract":"We consider the following tree-matching problem: Given labeled, ordered trees P and T, can P be obtained from T by deleting nodes? Deleting a node v entails removing all edges incident to v and, if v has a parent u, replacing the edges from u to v by edges from u to the children of v. This problem has a lot of applications in the computer engineering, such as XML tree pattern query evaluation, video content-based retrieval, as well as in computational biology, and data mining. The best known algorithm for this problem needs O(|T|Þ|leaves(P)|) time and O(|leaves(P)|Þmin{DT, |leaves(T)|} + |T| + |P|) space, where leaves(T) (resp. leaves(P)) stands for the number of the leaves of T (resp. P), and DT (resp. DP) for the height of T (resp. P). In this paper, we present a new algorithm that requires O(|T|Þmin{DP, |leaves(P)|}) time and O(|T| + |P|) space.","PeriodicalId":315132,"journal":{"name":"2010 International Conference on Cyber-Enabled Distributed Computing and Knowledge Discovery","volume":"3 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2010-10-10","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":"{\"title\":\"A New Top-Down Algorithm for Tree Inclusion\",\"authors\":\"Yangjun Chen, Yibin Chen\",\"doi\":\"10.1109/CYBERC.2010.60\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"We consider the following tree-matching problem: Given labeled, ordered trees P and T, can P be obtained from T by deleting nodes? Deleting a node v entails removing all edges incident to v and, if v has a parent u, replacing the edges from u to v by edges from u to the children of v. This problem has a lot of applications in the computer engineering, such as XML tree pattern query evaluation, video content-based retrieval, as well as in computational biology, and data mining. The best known algorithm for this problem needs O(|T|Þ|leaves(P)|) time and O(|leaves(P)|Þmin{DT, |leaves(T)|} + |T| + |P|) space, where leaves(T) (resp. leaves(P)) stands for the number of the leaves of T (resp. P), and DT (resp. DP) for the height of T (resp. P). In this paper, we present a new algorithm that requires O(|T|Þmin{DP, |leaves(P)|}) time and O(|T| + |P|) space.\",\"PeriodicalId\":315132,\"journal\":{\"name\":\"2010 International Conference on Cyber-Enabled Distributed Computing and Knowledge Discovery\",\"volume\":\"3 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2010-10-10\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"2\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2010 International Conference on Cyber-Enabled Distributed Computing and Knowledge Discovery\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/CYBERC.2010.60\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2010 International Conference on Cyber-Enabled Distributed Computing and Knowledge Discovery","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/CYBERC.2010.60","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
We consider the following tree-matching problem: Given labeled, ordered trees P and T, can P be obtained from T by deleting nodes? Deleting a node v entails removing all edges incident to v and, if v has a parent u, replacing the edges from u to v by edges from u to the children of v. This problem has a lot of applications in the computer engineering, such as XML tree pattern query evaluation, video content-based retrieval, as well as in computational biology, and data mining. The best known algorithm for this problem needs O(|T|Þ|leaves(P)|) time and O(|leaves(P)|Þmin{DT, |leaves(T)|} + |T| + |P|) space, where leaves(T) (resp. leaves(P)) stands for the number of the leaves of T (resp. P), and DT (resp. DP) for the height of T (resp. P). In this paper, we present a new algorithm that requires O(|T|Þmin{DP, |leaves(P)|}) time and O(|T| + |P|) space.