{"title":"布尔矩阵逻辑编程","authors":"Lun Ai, Stephen H. Muggleton","doi":"arxiv-2408.10369","DOIUrl":null,"url":null,"abstract":"We describe a datalog query evaluation approach based on efficient and\ncomposable boolean matrix manipulation modules. We first define an overarching\nproblem, Boolean Matrix Logic Programming (BMLP), which uses boolean matrices\nas an alternative computation to evaluate datalog programs. We develop two\nnovel BMLP modules for bottom-up inferences on linear dyadic recursive datalog\nprograms, and show how additional modules can extend this capability to compute\nboth linear and non-linear recursive datalog programs of arity two. Our\nempirical results demonstrate that these modules outperform general-purpose and\nspecialised systems by factors of 30x and 9x, respectively, when evaluating\nlarge programs with millions of facts. This boolean matrix approach\nsignificantly enhances the efficiency of datalog querying to support logic\nprogramming techniques.","PeriodicalId":501033,"journal":{"name":"arXiv - CS - Symbolic Computation","volume":"7 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-08-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Boolean Matrix Logic Programming\",\"authors\":\"Lun Ai, Stephen H. Muggleton\",\"doi\":\"arxiv-2408.10369\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"We describe a datalog query evaluation approach based on efficient and\\ncomposable boolean matrix manipulation modules. We first define an overarching\\nproblem, Boolean Matrix Logic Programming (BMLP), which uses boolean matrices\\nas an alternative computation to evaluate datalog programs. We develop two\\nnovel BMLP modules for bottom-up inferences on linear dyadic recursive datalog\\nprograms, and show how additional modules can extend this capability to compute\\nboth linear and non-linear recursive datalog programs of arity two. Our\\nempirical results demonstrate that these modules outperform general-purpose and\\nspecialised systems by factors of 30x and 9x, respectively, when evaluating\\nlarge programs with millions of facts. This boolean matrix approach\\nsignificantly enhances the efficiency of datalog querying to support logic\\nprogramming techniques.\",\"PeriodicalId\":501033,\"journal\":{\"name\":\"arXiv - CS - Symbolic Computation\",\"volume\":\"7 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-08-19\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - CS - Symbolic Computation\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2408.10369\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - CS - Symbolic Computation","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2408.10369","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
We describe a datalog query evaluation approach based on efficient and
composable boolean matrix manipulation modules. We first define an overarching
problem, Boolean Matrix Logic Programming (BMLP), which uses boolean matrices
as an alternative computation to evaluate datalog programs. We develop two
novel BMLP modules for bottom-up inferences on linear dyadic recursive datalog
programs, and show how additional modules can extend this capability to compute
both linear and non-linear recursive datalog programs of arity two. Our
empirical results demonstrate that these modules outperform general-purpose and
specialised systems by factors of 30x and 9x, respectively, when evaluating
large programs with millions of facts. This boolean matrix approach
significantly enhances the efficiency of datalog querying to support logic
programming techniques.