Optimal Algorithms for Ranked Enumeration of Answers to Full Conjunctive Queries

We study ranked enumeration of join-query results according to very general orders defined by selective dioids. Our main contribution is a framework for ranked enumeration over a class of dynamic programming problems that generalizes seemingly different problems that had been studied in isolation. T...

Full description

Saved in:
Bibliographic Details
Published inProceedings of the VLDB Endowment Vol. 13; no. 9; p. 1582
Main Authors Tziavelis, Nikolaos, Ajwani, Deepak, Gatterbauer, Wolfgang, Riedewald, Mirek, Yang, Xiaofeng
Format Journal Article
LanguageEnglish
Published United States 01.05.2020
Online AccessGet more information
ISSN2150-8097
2150-8097
DOI10.14778/3397230.3397250

Cover

Loading…
Abstract We study ranked enumeration of join-query results according to very general orders defined by selective dioids. Our main contribution is a framework for ranked enumeration over a class of dynamic programming problems that generalizes seemingly different problems that had been studied in isolation. To this end, we extend classic algorithms that find the -shortest paths in a weighted graph. For full conjunctive queries, including cyclic ones, our approach is optimal in terms of the time to return the top result and the delay between results. These optimality properties are derived for the widely used notion of data complexity, which treats query size as a constant. By performing a careful cost analysis, we are able to uncover a previously unknown trade-off between two incomparable enumeration approaches: one has lower complexity when the number of returned results is small, the other when the number is very large. We theoretically and empirically demonstrate the superiority of our techniques over batch algorithms, which produce the full result and then sort it. Our technique is not only faster for returning the first few results, but on some inputs beats the batch algorithm even when all results are produced.
AbstractList We study ranked enumeration of join-query results according to very general orders defined by selective dioids. Our main contribution is a framework for ranked enumeration over a class of dynamic programming problems that generalizes seemingly different problems that had been studied in isolation. To this end, we extend classic algorithms that find the -shortest paths in a weighted graph. For full conjunctive queries, including cyclic ones, our approach is optimal in terms of the time to return the top result and the delay between results. These optimality properties are derived for the widely used notion of data complexity, which treats query size as a constant. By performing a careful cost analysis, we are able to uncover a previously unknown trade-off between two incomparable enumeration approaches: one has lower complexity when the number of returned results is small, the other when the number is very large. We theoretically and empirically demonstrate the superiority of our techniques over batch algorithms, which produce the full result and then sort it. Our technique is not only faster for returning the first few results, but on some inputs beats the batch algorithm even when all results are produced.
Author Ajwani, Deepak
Yang, Xiaofeng
Tziavelis, Nikolaos
Gatterbauer, Wolfgang
Riedewald, Mirek
Author_xml – sequence: 1
  givenname: Nikolaos
  orcidid: 0000-0001-8342-2177
  surname: Tziavelis
  fullname: Tziavelis, Nikolaos
  organization: Northeastern University, Boston, MA, USA
– sequence: 2
  givenname: Deepak
  orcidid: 0000-0001-7269-4150
  surname: Ajwani
  fullname: Ajwani, Deepak
  organization: University College Dublin, Dublin, Ireland
– sequence: 3
  givenname: Wolfgang
  orcidid: 0000-0002-9654-0504
  surname: Gatterbauer
  fullname: Gatterbauer, Wolfgang
  organization: Northeastern University, Boston, MA, USA
– sequence: 4
  givenname: Mirek
  orcidid: 0000-0002-6102-7472
  surname: Riedewald
  fullname: Riedewald, Mirek
  organization: Northeastern University, Boston, MA, USA
– sequence: 5
  givenname: Xiaofeng
  orcidid: 0000-0002-4364-3458
  surname: Yang
  fullname: Yang, Xiaofeng
  organization: VMware, Palo Alto, CA, USA
BackLink https://www.ncbi.nlm.nih.gov/pubmed/33717631$$D View this record in MEDLINE/PubMed
BookMark eNpNj8tKxDAYRoOMOBfdu5K8QMfcmqTLMsyoMDAquh7S5q92bJOSpIpv7-AFXHycb3XgzNHEeQcIXVKypEIpfc15oRgny2_m5ATNGM1JpkmhJv_-FM1jPBAitaT6DE05V1RJTmfofjektjcdLrsXH9r02kfc-IAfjXsDi9du7CGY1HqHfYNLFz8gRJw83oxdh1feHUZXp_Yd8MMIoYV4jk4b00W4-OUCPW_WT6vbbLu7uVuV26zmhUyZKKwlSjVgjBW0YhYKC5TlgjfC5FYbsKzKtaJSEksrfhxthKzqHIxgSrAFuvrxDmPVg90P4ZgRPvd_aewLNYxTSg
CitedBy_id crossref_primary_10_1145_3703922_3703924
crossref_primary_10_14778_3510397_3510401
crossref_primary_10_1145_3639294
crossref_primary_10_1145_3654971
crossref_primary_10_14778_3587136_3587151
crossref_primary_10_1145_3578517
crossref_primary_10_14778_3476249_3476306
crossref_primary_10_14778_3510397_3510407
crossref_primary_10_1145_3588915
ContentType Journal Article
DBID NPM
DOI 10.14778/3397230.3397250
DatabaseName PubMed
DatabaseTitle PubMed
DatabaseTitleList PubMed
Database_xml – sequence: 1
  dbid: NPM
  name: PubMed
  url: https://proxy.k.utb.cz/login?url=http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?db=PubMed
  sourceTypes: Index Database
DeliveryMethod no_fulltext_linktorsrc
Discipline Computer Science
EISSN 2150-8097
ExternalDocumentID 33717631
Genre Journal Article
GrantInformation_xml – fundername: NINDS NIH HHS
  grantid: R01 NS091421
GroupedDBID 5VS
AAKMM
AALFJ
AAWTV
AAYFX
ACM
ADL
AEBYY
AEFXT
AEJOY
AENSD
AFWIH
AFWXC
AIKLT
AKRVB
ALMA_UNASSIGNED_HOLDINGS
ASPBG
AVWKF
BDXCO
CCLIF
EBS
FEDTE
GUFHI
HGAVV
I07
LHSKQ
NPM
ID FETCH-LOGICAL-c396t-49dd077feaad41b2de9de12543f4a5d8aed2b5871660d1b3d1b1f46bc5ea42742
ISSN 2150-8097
IngestDate Mon Jul 21 06:01:56 EDT 2025
IsDoiOpenAccess false
IsOpenAccess true
IsPeerReviewed true
IsScholarly true
Issue 9
Language English
LinkModel OpenURL
MergedId FETCHMERGED-LOGICAL-c396t-49dd077feaad41b2de9de12543f4a5d8aed2b5871660d1b3d1b1f46bc5ea42742
ORCID 0000-0002-6102-7472
0000-0001-7269-4150
0000-0002-4364-3458
0000-0002-9654-0504
0000-0001-8342-2177
OpenAccessLink https://www.ncbi.nlm.nih.gov/pmc/articles/7955775
PMID 33717631
ParticipantIDs pubmed_primary_33717631
PublicationCentury 2000
PublicationDate 2020-May
PublicationDateYYYYMMDD 2020-05-01
PublicationDate_xml – month: 05
  year: 2020
  text: 2020-May
PublicationDecade 2020
PublicationPlace United States
PublicationPlace_xml – name: United States
PublicationTitle Proceedings of the VLDB Endowment
PublicationTitleAlternate Proceedings VLDB Endowment
PublicationYear 2020
SSID ssj0068618
Score 2.3709915
Snippet We study ranked enumeration of join-query results according to very general orders defined by selective dioids. Our main contribution is a framework for ranked...
SourceID pubmed
SourceType Index Database
StartPage 1582
Title Optimal Algorithms for Ranked Enumeration of Answers to Full Conjunctive Queries
URI https://www.ncbi.nlm.nih.gov/pubmed/33717631
Volume 13
hasFullText
inHoldings 1
isFullTextHit
isPrint
link http://utb.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwnV1bb9MwFLY6kNBeuDPu8gNvKCWpHad-LNtgQjAG6mBvkxPbY-uWTGpLpf2a_dSdYzupVQYCHppWthSlPp_P-Y5zLoS8UsYKbassAaqdJ5xxk6iqqhItSw5bS2VSuyjfXbGzzz8c5Ae93mUUtTSflf3q4tq8kv-RKoyBXDFL9h8k290UBuA3yBeuIGG4_pWMP8N-P8M1Pj1qwMn_4YsrvP6q6gnwyO0acys7Sjiqp9gQDckm-p2Y63cCRs2FDn2ZY73jacxU9zrLNm3jCL593HoLd9XNIg6XGV8cq58mtFXfPZ6Ar9x0RH10svBNo0CxgeHr0oLeu7KepZp7xHxvTu2RCkbUldQ22izCofUn0MqT-HRikC5jAb0SA0aRghX0Mbh9c81Yq4VZhDYZqdQs992JftH1vCgwgYExbJyW9t23L2Ibif78zMmeMXBbhbc3f55dqb7dTq2RNfBDsLEqngZ5Sy-Gwp0fd_8nvAbHB3uz8ljr5FZ7qxUHxhGZ8V1yO3ggdOThdI_0TH2f3Gm7e9Cg7B-QvYAuukQXBXRRjy4aoYs2lgZ00VlDEV00QhcN6HpI9t9tjzd3ktB_I6mYFLOES63TorBGKc2zcqCN1CbD6gmWq1wPldGDMkePW6Q6Kxl8MstFWeVGcQwBeERu1E1tHhOqgBZLowrgzxXnEkiqVlYMB1bKPGdm-IRs-DU5PPdFVg7b1Xr625lnZH2JuOfkpoVdbV4ARZyVL52crgB5oGUK
linkProvider National Library of Medicine
openUrl ctx_ver=Z39.88-2004&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rfr_id=info%3Asid%2Fsummon.serialssolutions.com&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.atitle=Optimal+Algorithms+for+Ranked+Enumeration+of+Answers+to+Full+Conjunctive+Queries&rft.jtitle=Proceedings+of+the+VLDB+Endowment&rft.au=Tziavelis%2C+Nikolaos&rft.au=Ajwani%2C+Deepak&rft.au=Gatterbauer%2C+Wolfgang&rft.au=Riedewald%2C+Mirek&rft.date=2020-05-01&rft.issn=2150-8097&rft.eissn=2150-8097&rft.volume=13&rft.issue=9&rft.spage=1582&rft_id=info:doi/10.14778%2F3397230.3397250&rft_id=info%3Apmid%2F33717631&rft_id=info%3Apmid%2F33717631&rft.externalDocID=33717631
thumbnail_l http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=/lc.gif&issn=2150-8097&client=summon
thumbnail_m http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=/mc.gif&issn=2150-8097&client=summon
thumbnail_s http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=/sc.gif&issn=2150-8097&client=summon