{"docId":811,"paperId":811,"url":"https:\/\/lmcs.episciences.org\/811","doi":"10.2168\/LMCS-5(1:4)2009","journalName":"Logical Methods in Computer Science","issn":"","eissn":"1860-5974","volume":[{"vid":128,"name":"Volume 5, Issue 1"}],"section":[],"repositoryName":"arXiv","repositoryIdentifier":"0902.1179","repositoryVersion":2,"repositoryLink":"https:\/\/arxiv.org\/abs\/0902.1179v2","dateSubmitted":"2006-12-20 00:00:00","dateAccepted":"2015-06-25 11:43:09","datePublished":"2009-02-27 00:00:00","titles":["The Complexity of Datalog on Linear Orders"],"authors":["Grohe, Martin","Schwandtner, Goetz"],"abstracts":["We study the program complexity of datalog on both finite and infinite linear orders. Our main result states that on all linear orders with at least two elements, the nonemptiness problem for datalog is EXPTIME-complete. While containment of the nonemptiness problem in EXPTIME is known for finite linear orders and actually for arbitrary finite structures, it is not obvious for infinite linear orders. It sharply contrasts the situation on other infinite structures; for example, the datalog nonemptiness problem on an infinite successor structure is undecidable. We extend our upper bound results to infinite linear orders with constants. As an application, we show that the datalog nonemptiness problem on Allen's interval algebra is EXPTIME-complete.","Comment: 21 pages"],"keywords":["Computer Science - Logic in Computer Science","Computer Science - Computational Complexity","Computer Science - Databases","F.4.1","D.3.2","H.2.3"]}