wiki_research

personal research wiki
git clone https://a3nm.net/git/wiki_research/
Log | Files | Refs

datalog_query_evaluation (1272B)


      1 # Datalog query evaluation
      2 
      3 [datalog_query_evaluation_algorithms]
      4 
      5 [computational_complexity] in [combined_complexity]:
      6 - [EXPTIME_complete], cf [gottlob2012datalog]
      7   - already [EXPTIME_hard] with
      8     - empty input [database]
      9     - one single [datalog_rule]
     10     - two-element universe
     11   - drops to [NP_complete] when the [arity] or the [signature] are fixed (nontrivially)
     12     - cf [mugnier2014introduction]
     13 - for [linear_datalog]:
     14   - [PSPACE_complete]
     15   - already [PSPACE_hard] with the following, cf [gottlob2023complexity]
     16     - empty input [database]
     17     - one single [datalog_rule]
     18     - two-element universe
     19 
     20 [computational_complexity] in [data_complexity]:
     21 - Datalog is [P_complete]
     22   - cf [kroetzsch2025modernb] Theorem 19
     23 - [linear_datalog] is [NL_Complete]
     24   - cf [calvanese2016regular]
     25 - [nonrecursive_datalog] is in [AC0]
     26 - some specific [datalog] programs are [L_complete]
     27   - for instance the one expressing [undirected_reachability]
     28 
     29 An important idea is to run the [CQs] of the [rule_bodies] efficiently: [conjunctive_query_optimization] / [optimal_joins]
     30 
     31 [zhang2023enhancing]: [query_evaluation] of [datalog] via [hypertreewidth]
     32 
     33 - [datalog_fine_grained]
     34 
     35 Up: [datalog], [query_evaluation]
     36 
     37 See also: [query_optimization]
     38 
     39 Aliases: datalog evaluation